/* ═══════════════════════════════════════════════════════════════
   ایستگاه مد — 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); }

@media (max-width: 900px) {
    .booking-page { flex-direction: column; }
    .booking-sidebar { width: 100%; height: auto; position: static; padding: 1.4rem; }
    .booking-steps { flex-direction: row; overflow-x: auto; gap: .3rem; }
    .step-connector { width: 24px; height: 1.5px; margin: 0 4px; }
    .step-label { display: none; }
    .booking-summary { 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); }
