/* Clinic Booking Pro - Frontend Styles (RTL) */

:root {
    --cbp-primary: #1F5C63;
    --cbp-secondary: #6F8F72;
    --cbp-background: #F7F5EF;
    --cbp-surface: #FFFFFF;
    --cbp-text: #263238;
    --cbp-danger: #C62828;
    --cbp-success: #2E7D32;
    --cbp-border-radius: 12px;
    --cbp-box-shadow: 0 4px 24px rgba(31, 92, 99, 0.08);
}

body.rtl .cbp-container {
    direction: rtl;
    text-align: right;
    font-family: 'IRANSans', 'Vazir', 'Tahoma', sans-serif;
}

.cbp-wrapper {
    max-width: 860px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: var(--cbp-background);
    border-radius: var(--cbp-border-radius);
}

.cbp-card {
    background: var(--cbp-surface);
    border-radius: var(--cbp-border-radius);
    box-shadow: var(--cbp-box-shadow);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

.cbp-card:hover {
    box-shadow: 0 8px 32px rgba(31, 92, 99, 0.12);
}

.cbp-step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cbp-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--cbp-background);
}

.cbp-label {
    display: block;
    font-weight: 500;
    color: var(--cbp-text);
    margin-bottom: 0.5rem;
}

.cbp-input,
.cbp-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
    background: var(--cbp-surface);
    transition: border-color 0.2s;
}

.cbp-input:focus,
.cbp-select:focus {
    border-color: var(--cbp-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 92, 99, 0.15);
}

.cbp-btn-primary {
    background: var(--cbp-primary);
    color: #fff;
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.cbp-btn-primary:hover {
    background: #154a4f;
}

.cbp-btn-secondary {
    background: var(--cbp-secondary);
    color: #fff;
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
}

.cbp-therapist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 200px));
    justify-content: start;
    gap: 1rem;
    margin: 1rem 0;
}

.cbp-therapist-card {
    border: 1.5px solid #E0E0E0;
    border-radius: 12px;
    padding: 1rem 0.75rem;
    text-align: center;
    cursor: pointer;
    background: var(--cbp-surface);
    transition: all 0.15s;
    max-width: 200px;
    width: 100%;
    box-sizing: border-box;
}

.cbp-therapist-card:hover {
    border-color: var(--cbp-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cbp-therapist-card.cbp-selected {
    border-color: var(--cbp-primary);
    background: #f0f7f8;
    box-shadow: 0 0 0 2px var(--cbp-primary);
}

.cbp-therapist-photo {
    width: 72px;
    height: 72px;
    margin: 0 auto 0.6rem;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cbp-therapist-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cbp-therapist-photo-placeholder {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--cbp-primary);
}

.cbp-therapist-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.cbp-therapist-specialty {
    font-size: 0.8rem;
    color: #777;
}

.cbp-therapist-bio {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.4rem;
    line-height: 1.5;
}

.cbp-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cbp-calendar-nav-btn {
    background: var(--cbp-surface);
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    cursor: pointer;
}

.cbp-calendar-nav-btn:hover {
    background: var(--cbp-primary);
    color: #fff;
}

.cbp-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}

.cbp-calendar-day {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--cbp-surface);
    border: 1px solid #E0E0E0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s;
}

.cbp-calendar-day:hover:not(.cbp-disabled) {
    background: var(--cbp-primary);
    color: #fff;
}

.cbp-calendar-day.cbp-selected {
    background: var(--cbp-primary);
    color: #fff;
    border-color: var(--cbp-primary);
}

.cbp-calendar-day.cbp-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.cbp-calendar-day.cbp-available {
    border-color: var(--cbp-secondary);
}

.cbp-time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
}

.cbp-time-slot {
    padding: 0.5rem 1.2rem;
    border: 1.5px solid #D0D0D0;
    border-radius: 8px;
    cursor: pointer;
    background: var(--cbp-surface);
    transition: all 0.15s;
}

.cbp-time-slot:hover:not(.cbp-disabled) {
    border-color: var(--cbp-primary);
    background: #f0f7f8;
}

.cbp-time-slot.cbp-selected {
    background: var(--cbp-primary);
    color: #fff;
    border-color: var(--cbp-primary);
}

.cbp-time-slot.cbp-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cbp-loading {
    background: url('../images/loading.gif') center no-repeat;
    min-height: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .cbp-wrapper {
        padding: 1rem;
    }
    .cbp-card {
        padding: 1.2rem;
    }
    .cbp-calendar-grid {
        gap: 0.3rem;
    }
    .cbp-time-slots {
        gap: 0.5rem;
    }
}

/* Persian (Jalali) calendar customization */
.cbp-persian-month {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cbp-text);
    text-align: center;
    margin: 0.5rem 0;
}