/* ═══════════════════════════════════════════════════════════════
   سالن زیبایی اپرا — Booking Page CSS (رزرو نوبت ۴ مرحله‌ای)
   ═══════════════════════════════════════════════════════════════ */

.booking-page {
    display: flex;
    min-height: 100vh;
    background: rgba(5, 5, 5, .55);
}

/* ─── Sidebar ──────────────────────────────────────────────────── */
.booking-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--glass-strong);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid var(--border);
    padding: 2.2rem 1.6rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.booking-logo {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
}

.booking-logo span {
    color: var(--gold);
}

.booking-steps {
    display: flex;
    flex-direction: column;
}

.step {
    display: flex;
    align-items: center;
    gap: .9rem;
    opacity: .45;
    transition: opacity .3s;
}

.step.active,
.step.done {
    opacity: 1;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card-2);
    border: 1.5px solid var(--border);
    font-size: .85rem;
    font-weight: 700;
    transition: all .3s;
}

.step.active .step-num {
    background: var(--gold);
    border-color: var(--gold);
    color: #241a0d;
}

.step.done .step-num {
    background: transparent;
    border-color: var(--gold);
    color: var(--gold);
}

.step-label {
    font-size: .88rem;
}

.step-connector {
    width: 1.5px;
    height: 24px;
    background: var(--border);
    margin-right: 16px;
}

.booking-summary {
    margin-top: 2.5rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--border);
    font-size: .85rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.booking-summary h4 {
    color: var(--text);
    font-size: .9rem;
    margin-bottom: .3rem;
}

.booking-summary>div:not(h4) {
    padding: .4rem 0;
    border-bottom: 1px dashed var(--border);
}

.booking-sidebar-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    margin: 0.8rem 0 1.5rem;
    border-radius: 12px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.booking-sidebar-back-btn:hover {
    background: var(--gold);
    color: #241a0d;
    border-color: var(--gold);
    transform: translateX(-3px);
}

.booking-header-mobile {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1.4rem;
    border-bottom: 1px solid var(--border);
}

.booking-mobile-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.booking-mobile-back-btn:hover {
    border-color: var(--gold);
    background: var(--gold-dim);
}

.booking-mobile-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-title);
}

@media (max-width: 900px) {
    .booking-page {
        flex-direction: column;
    }

    .booking-sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 1.2rem;
    }

    .booking-steps {
        flex-direction: row;
        overflow-x: auto;
        gap: .3rem;
        justify-content: center;
    }

    .step-connector {
        width: 24px;
        height: 1.5px;
        margin: 0 4px;
    }

    .step-label {
        display: none;
    }

    .booking-summary {
        display: none;
    }

    .booking-header-mobile {
        display: flex;
    }

    .booking-sidebar-back-btn {
        display: none;
    }
}

/* ─── Main ─────────────────────────────────────────────────────── */
.booking-main {
    flex: 1;
    padding: 3rem 3rem 4rem;
    max-width: 900px;
}

@media (max-width: 900px) {
    .booking-main {
        padding: 1.6rem 1.2rem 3rem;
    }
}

.booking-step-panel {
    display: none;
    animation: fadeUp .4s ease;
}

.booking-step-panel.active {
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: .4rem;
}

.step-desc {
    color: var(--text-muted);
    font-size: .92rem;
    margin-bottom: 2rem;
}

/* ─── Step 1: Services ─────────────────────────────────────────── */
.services-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.service-select-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 1.1rem;
    cursor: pointer;
    transition: all .25s ease;
}

.service-select-card:hover {
    border-color: var(--gold-dim);
}

.service-select-card input {
    position: absolute;
    opacity: 0;
}

.service-select-card input:checked~.service-check {
    opacity: 1;
    transform: scale(1);
}

.service-select-card:has(input:checked) {
    border-color: var(--gold);
    background: var(--gold-dim);
}

.service-select-icon {
    font-size: 1.5rem;
}

.service-select-info {
    flex: 1;
}

.service-select-name {
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: .3rem;
}

.service-select-meta {
    display: flex;
    gap: .8rem;
    font-size: .78rem;
    color: var(--text-muted);
}

.service-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gold);
    color: #241a0d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    opacity: 0;
    transform: scale(0);
    transition: all .25s ease;
    flex-shrink: 0;
}

/* ─── Step 2: Stylists ─────────────────────────────────────────── */
.stylists-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.stylist-select-card {
    position: relative;
    display: block;
    text-align: center;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 1.4rem 1rem;
    cursor: pointer;
    transition: all .25s ease;
}

.stylist-select-card:hover {
    border-color: var(--gold-dim);
}

.stylist-select-card input {
    position: absolute;
    opacity: 0;
}

.stylist-select-card:has(input:checked) {
    border-color: var(--gold);
    background: var(--gold-dim);
}

.stylist-select-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto .8rem;
    background: var(--bg-card-2);
}

.stylist-select-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stylist-select-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
}

.stylist-select-name {
    font-weight: 600;
    font-size: .92rem;
    margin-bottom: .25rem;
}

.stylist-select-spec {
    font-size: .75rem;
    color: var(--text-muted);
    margin-bottom: .5rem;
}

.stylist-select-rating {
    font-size: .82rem;
    color: var(--gold-light);
}

/* ─── Step 3: Date & Slots ─────────────────────────────────────── */
.datetime-section {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
}

@media (max-width: 700px) {
    .datetime-section {
        grid-template-columns: 1fr;
    }
}

.date-picker-wrap label,
.slots-wrap label {
    display: block;
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: .7rem;
}

.date-picker-wrap input {
    width: 100%;
    padding: .85rem 1rem;
    border-radius: 10px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: .9rem;
}

.date-picker-wrap input:focus {
    border-color: var(--gold);
    outline: none;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: .6rem;
}

.slot-btn {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    color: var(--text);
    padding: .7rem .5rem;
    border-radius: 10px;
    font-size: .87rem;
    transition: all .2s ease;
}

.slot-btn:hover {
    border-color: var(--gold-dim);
}

.slot-btn.selected {
    background: var(--gold);
    border-color: var(--gold);
    color: #241a0d;
    font-weight: 700;
}

.slots-loading,
.slots-empty {
    color: var(--text-muted);
    font-size: .88rem;
    padding: 1rem 0;
    text-align: center;
}

/* ─── Step 4: Confirm ──────────────────────────────────────────── */
.confirm-card {
    background: var(--glass-2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.8rem;
    margin-bottom: 1.6rem;
}

.confirm-section {
    padding: .9rem 0;
    border-bottom: 1px solid var(--border);
}

.confirm-section:last-of-type {
    border-bottom: none;
}

.confirm-section h4 {
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: .35rem;
}

.confirm-section p {
    font-size: .95rem;
}

.confirm-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.2rem;
    margin-top: .5rem;
    border-top: 1.5px solid var(--gold-dim);
    font-size: 1rem;
    font-weight: 700;
}

.confirm-price {
    color: var(--gold);
    font-size: 1.2rem;
}

.notes-wrap {
    margin-bottom: 1.6rem;
}

.notes-wrap label {
    display: block;
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: .6rem;
}

.notes-wrap textarea {
    width: 100%;
    padding: .9rem 1rem;
    border-radius: 10px;
    resize: vertical;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: .9rem;
}

.notes-wrap textarea:focus {
    border-color: var(--gold);
    outline: none;
}

/* ─── Step Nav ─────────────────────────────────────────────────── */
.step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2.5rem;
}

.btn-next,
.btn-confirm {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #241a0d;
    font-weight: 700;
    padding: .9rem 2rem;
    border-radius: 999px;
    font-size: .92rem;
    transition: all .3s;
}

.btn-next:hover,
.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -8px rgba(187, 143, 74, .5);
}

.btn-next:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-back {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: .9rem 1.8rem;
    border-radius: 999px;
    font-size: .9rem;
    transition: all .25s;
}

.btn-back:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ─── Mobile Optimizations ─── */
@media (max-width: 640px) {
    .booking-sidebar {
        padding: 1rem 0.8rem;
    }

    .booking-steps {
        justify-content: center;
    }

    .booking-main {
        padding: 1.2rem 0.85rem 3rem;
    }

    .step-title {
        font-size: 1.25rem;
    }

    .step-desc {
        font-size: 0.82rem;
        margin-bottom: 1.4rem;
    }

    .services-select-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .service-select-card {
        padding: 0.9rem;
    }

    .service-select-name {
        font-size: 0.92rem;
    }

    .stylists-select-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .stylist-select-card {
        display: flex;
        align-items: center;
        text-align: right;
        gap: 0.9rem;
        padding: 0.9rem;
    }

    .stylist-select-photo {
        margin: 0;
        width: 54px;
        height: 54px;
        flex-shrink: 0;
    }

    .step-nav {
        margin-top: 1.8rem;
    }

    .btn-next,
    .btn-confirm,
    .btn-back {
        padding: 0.75rem 1.4rem;
        font-size: 0.85rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Luxury Themed Modal & Popup (طراحی لوکس و اختصاصی مودال)
   ═══════════════════════════════════════════════════════════════ */
.luxury-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(4, 4, 6, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-modal-overlay.active {
    display: flex !important;
    opacity: 1;
}

.luxury-modal-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: linear-gradient(165deg, rgba(26, 23, 20, 0.96) 0%, rgba(14, 12, 10, 0.98) 100%);
    border: 1px solid rgba(217, 176, 110, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(217, 176, 110, 0.18);
    border-radius: 24px;
    padding: 2.2rem 1.8rem;
    text-align: center;
    transform: scale(0.92) translateY(20px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.luxury-modal-overlay.active .luxury-modal-card {
    transform: scale(1) translateY(0);
}

.luxury-modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.luxury-modal-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(217, 176, 110, 0.1);
    border: 1px solid rgba(217, 176, 110, 0.3);
    box-shadow: 0 0 25px rgba(217, 176, 110, 0.2);
    animation: luxuryPulse 2.5s infinite ease-in-out;
}

.luxury-modal-icon-wrap.error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.2);
}

.luxury-modal-icon-wrap.success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
}

@keyframes luxuryPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

.luxury-modal-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-title);
    margin-bottom: 0.6rem;
    background: linear-gradient(135deg, #fff 30%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.luxury-modal-msg {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

.luxury-modal-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

.btn-luxury-modal {
    flex: 1;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.92rem;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-luxury-modal.primary {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #1a1208;
    box-shadow: 0 8px 24px -5px rgba(217, 176, 110, 0.45);
}

.btn-luxury-modal.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -5px rgba(217, 176, 110, 0.65);
}

.btn-luxury-modal.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-luxury-modal.secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ─── Quick Auth Modal inside Booking ─── */
.quick-auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.4rem;
}

.quick-auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.65rem 0.5rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.quick-auth-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.quick-auth-field {
    text-align: right;
    margin-bottom: 1rem;
}

.quick-auth-field label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.quick-auth-field input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.92rem;
    transition: border-color 0.2s;
}

.quick-auth-field input:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 176, 110, 0.15);
}