/* ========================================
   CHEF D'ŒUVRE STUDIO — Booking Page Styles
   ======================================== */

/* ---- Booking Layout ---- */
.booking-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---- Steps Sidebar ---- */
.booking-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
}
.booking-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}
.booking-step {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background: var(--dark-2);
    border: 1px solid rgba(200,169,110,0.08);
    border-radius: var(--radius);
    transition: var(--transition);
    opacity: 0.4;
}
.booking-step.active {
    opacity: 1;
    border-color: var(--gold);
    background: rgba(200,169,110,0.05);
}
.booking-step.done {
    opacity: 0.7;
    border-color: rgba(0,200,100,0.3);
}
.booking-step.done .step-number {
    background: #00c864;
    border-color: #00c864;
}
.booking-step.done .step-number::after {
    content: '✓';
}
.step-number {
    width: 42px; height: 42px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--gold);
    flex-shrink: 0;
    transition: var(--transition);
}
.booking-step.active .step-number {
    background: var(--gold);
    color: var(--black);
}
.step-info h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 3px;
}
.step-info p {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ---- Booking Summary Card ---- */
.booking-summary {
    background: var(--dark-2);
    border: 1px solid rgba(200,169,110,0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-top: 20px;
}
.booking-summary h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(200,169,110,0.1);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.9rem;
}
.summary-row .label { color: var(--gray-500); }
.summary-row .value { color: var(--white); font-weight: 500; }
.summary-row .value.gold { color: var(--gold); font-family: var(--font-display); font-size: 1.2rem; }
.summary-empty {
    text-align: center;
    padding: 20px;
    color: var(--gray-600);
    font-size: 0.85rem;
    font-style: italic;
}

/* ---- Booking Main Content ---- */
.booking-main {
    min-height: 500px;
}
.booking-panel {
    display: none;
    animation: fadeInUp 0.5s ease;
}
.booking-panel.active {
    display: block;
}

/* ---- Service Selection ---- */
.service-select-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.service-select-card {
    background: var(--dark-2);
    border: 2px solid rgba(200,169,110,0.08);
    border-radius: var(--radius);
    padding: 25px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.service-select-card:hover {
    border-color: rgba(200,169,110,0.3);
    transform: translateY(-3px);
}
.service-select-card.selected {
    border-color: var(--gold);
    background: rgba(200,169,110,0.05);
}
.service-select-card.selected::after {
    content: '✓';
    position: absolute;
    top: 12px; right: 12px;
    width: 26px; height: 26px;
    background: var(--gold);
    color: var(--black);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}
.service-select-card .ssc-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 6px;
}
.service-select-card .ssc-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 12px;
    line-height: 1.5;
}
.service-select-card .ssc-meta {
    display: flex; justify-content: space-between; align-items: center;
}
.service-select-card .ssc-price {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gold);
}
.service-select-card .ssc-duration {
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* ---- Calendar ---- */
.calendar-container {
    background: var(--dark-2);
    border: 1px solid rgba(200,169,110,0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    overflow: hidden;
}
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}
.calendar-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--white);
    font-weight: 400;
    min-width: 200px;
    text-align: center;
}
.calendar-nav {
    width: 40px; height: 40px;
    border: 1px solid rgba(200,169,110,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-size: 1rem;
    transition: var(--transition);
    background: none;
}
.calendar-nav:hover {
    background: var(--gold);
    color: var(--black);
}
.calendar-nav:disabled {
    opacity: 0.3;
    pointer-events: none;
}
.calendar-day-names {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}
.calendar-day-names span {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-500);
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 0;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.calendar-day {
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--gray-400);
    transition: var(--transition);
    position: relative;
    background: none;
    border: none;
    font-family: var(--font-body);
}
.calendar-day.empty { pointer-events: none; }
.calendar-day.past,
.calendar-day.closed {
    opacity: 0.25;
    pointer-events: none;
    text-decoration: line-through;
}
.calendar-day.today {
    color: var(--gold);
    font-weight: 600;
}
.calendar-day.today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px; height: 4px;
    background: var(--gold);
    border-radius: 50%;
}
.calendar-day.available {
    cursor: pointer;
    color: var(--white);
}
.calendar-day.available:hover {
    background: rgba(200,169,110,0.1);
    transform: scale(1.1);
}
.calendar-day.selected {
    background: var(--gold) !important;
    color: var(--black) !important;
    font-weight: 600;
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(200,169,110,0.3);
}

/* ---- Time Slots ---- */
.time-section {
    margin-top: 30px;
    animation: fadeInUp 0.4s ease;
}
.time-section-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 5px;
}
.time-section-sub {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.time-slot {
    padding: 12px 10px;
    background: var(--dark-3);
    border: 1px solid rgba(200,169,110,0.08);
    border-radius: var(--radius);
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-300);
    transition: var(--transition);
    cursor: pointer;
}
.time-slot:hover {
    border-color: var(--gold);
    background: rgba(200,169,110,0.05);
    transform: translateY(-2px);
}
.time-slot.selected {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200,169,110,0.3);
}
.time-slot.unavailable {
    opacity: 0.25;
    pointer-events: none;
    text-decoration: line-through;
}
.no-slots {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-600);
    font-style: italic;
}

/* ---- Confirm Panel ---- */
.confirm-card {
    background: var(--dark-2);
    border: 1px solid rgba(200,169,110,0.15);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}
.confirm-icon {
    width: 80px; height: 80px;
    background: rgba(200,169,110,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--gold);
    margin: 0 auto 25px;
}
.confirm-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 10px;
}
.confirm-details {
    margin: 25px 0;
}
.confirm-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.95rem;
}
.confirm-row:last-child { border: none; }
.confirm-row .cr-label { color: var(--gray-500); }
.confirm-row .cr-value { color: var(--white); font-weight: 500; }

/* ---- Booking Nav Buttons ---- */
.booking-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}
.booking-nav .btn-back {
    padding: 14px 30px;
    border: 1px solid rgba(200,169,110,0.2);
    color: var(--gray-400);
    border-radius: var(--radius);
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition);
    background: none;
}
.booking-nav .btn-back:hover {
    border-color: var(--gold);
    color: var(--white);
}
.booking-nav .btn-next {
    padding: 14px 35px;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}
.booking-nav .btn-next:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200,169,110,0.3);
}
.booking-nav .btn-next:disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ---- Success Animation ---- */
.booking-success {
    text-align: center;
    padding: 60px 30px;
    animation: bounceIn 0.6s ease;
}
.success-checkmark {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: rgba(0,200,100,0.1);
    border: 3px solid #00c864;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 30px;
    font-size: 2.5rem;
    color: #00c864;
    animation: bounceIn 0.8s ease 0.2s both;
}
.success-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 15px;
}
.success-msg {
    color: var(--gray-500);
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* ---- Auth Section on Booking Page ---- */
.auth-section {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}
.auth-section .auth-box {
    background: var(--dark-2);
    border: 1px solid rgba(200,169,110,0.1);
    border-radius: var(--radius-lg);
    padding: 45px;
}

/* ---- Responsive booking ---- */
@media (max-width: 900px) {
    .booking-layout {
        grid-template-columns: 1fr;
    }
    .booking-sidebar {
        position: static;
    }
    .booking-steps {
        flex-direction: row;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 10px;
    }
    .booking-step {
        flex: 0 0 auto;
        min-width: 160px;
    }
    .booking-summary { display: none; }
    .service-select-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .time-slots-grid { grid-template-columns: repeat(3, 1fr); }
    .booking-nav { flex-direction: column; }
    .booking-nav .btn-back,
    .booking-nav .btn-next { width: 100%; text-align: center; justify-content: center; }
}
