/* ============================================================
   BOOKING PAGE — Perfect Opticals
   Premium Dark Luxury Style  |  v2.0
   ============================================================ */

/* ── Brand Button Gradient ──────────────────────────────────── */
:root {
    --btn-brand-bg: linear-gradient(to right, #3C1E12, #5A2E1C);
    --btn-brand-hover: linear-gradient(to right, #5A2E1C, #7a3d26);
    --btn-brand-shadow: 0 4px 18px rgba(60, 30, 18, 0.55);
    --btn-brand-shadow-hover: 0 8px 28px rgba(60, 30, 18, 0.7);
}

/* ── Page Hero ─────────────────────────────────────────────── */
.booking-hero {
    position: relative;
    background: linear-gradient(135deg, #0b0e18 0%, #161b27 55%, #1a1208 100%);
    padding: 80px 24px 60px;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.booking-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 108, 0.09) 0%, transparent 65%);
    pointer-events: none;
}

.booking-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(to right, #3C1E12, #5A2E1C, #c9a86c, #5A2E1C, #3C1E12);
    border-radius: 2px;
}

.booking-hero-eyebrow {
    display: inline-block;
    font-family: var(--font-body, 'Lato', sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: var(--color-accent-dim);
    border: 1px solid var(--color-accent-border);
    border-radius: 20px;
    padding: 5px 18px;
    margin-bottom: 20px;
}

.booking-hero h1 {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-primary) !important;
    margin: 0 0 14px;
}

.booking-hero-sub {
    font-family: var(--font-body, 'Lato', sans-serif);
    font-size: 15px;
    color: var(--color-text-muted);
    margin: 0;
    letter-spacing: 0.02em;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb-bar {
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
    padding: 10px 0;
}

.breadcrumb-bar .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.breadcrumb-bar a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-bar a:hover {
    color: var(--color-accent);
}

.breadcrumb-bar .sep {
    color: var(--color-text-subtle);
    font-size: 9px;
}

.breadcrumb-bar .current {
    color: var(--color-accent);
    font-weight: 600;
}

/* ── Main Booking Wrapper ────────────────────────────────────── */
.booking-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 52px 24px 90px;
}

/* ── Step Progress Indicator ─────────────────────────────────── */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 52px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.step-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--color-border-light);
    background: var(--color-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.step-circle i {
    font-size: 15px;
    display: none;
}

.step-label {
    font-family: var(--font-body, 'Lato', sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
    transition: color 0.35s ease;
    white-space: nowrap;
}

.step-connector {
    width: 80px;
    height: 2px;
    background: var(--color-border);
    position: relative;
    top: -16px;
    flex-shrink: 0;
    border-radius: 2px;
    overflow: hidden;
}

.step-connector-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #3C1E12, #5A2E1C);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active step */
.step-item.active .step-circle {
    border-color: #5A2E1C;
    background: rgba(90, 46, 28, 0.18);
    color: #c9a86c;
    box-shadow: 0 0 0 5px rgba(90, 46, 28, 0.12);
    transform: scale(1.08);
}

.step-item.active .step-label {
    color: #c9a86c;
}

/* Completed step */
.step-item.completed .step-circle {
    border-color: #5A2E1C;
    background: linear-gradient(to right, #3C1E12, #5A2E1C);
    color: #f0ebe5;
    box-shadow: 0 4px 14px rgba(60, 30, 18, 0.45);
    transform: scale(1.05);
}

.step-item.completed .step-circle .step-num {
    display: none;
}

.step-item.completed .step-circle i {
    display: block;
}

.step-item.completed .step-label {
    color: var(--color-accent-light);
}

.step-connector.filled .step-connector-fill {
    width: 100%;
}

/* ── Booking Card ────────────────────────────────────────────── */
.booking-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.booking-card-header {
    padding: 30px 36px 26px;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(135deg, var(--color-bg-elevated) 0%, rgba(26, 21, 8, 0.4) 100%);
    position: relative;
}

.booking-card-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 36px;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, #3C1E12, #5A2E1C);
    border-radius: 2px;
}

.booking-step-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bst-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(60, 30, 18, 0.3), rgba(90, 46, 28, 0.2));
    border: 1px solid rgba(90, 46, 28, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a86c;
    font-size: 19px;
    flex-shrink: 0;
}

.bst-text h2 {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-primary) !important;
    margin: 0 0 3px;
}

.bst-text p {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
}

.booking-card-body {
    padding: 36px;
}

/* ── Step Panels ─────────────────────────────────────────────── */
.step-panel {
    display: none;
    animation: fadeSlideIn 0.38s cubic-bezier(0.2, 0, 0, 1);
}

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

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

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

/* ── Calendar Picker (Step 1) ────────────────────────────────── */
.calendar-wrapper {
    max-width: 420px;
    margin: 0 auto;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 10px 12px;
}

.cal-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(90, 46, 28, 0.12);
    border: 1px solid rgba(90, 46, 28, 0.3);
    color: #c9a86c;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s;
}

.cal-nav-btn:hover {
    background: linear-gradient(to right, #3C1E12, #5A2E1C);
    border-color: #5A2E1C;
    color: #f0ebe5;
    transform: scale(1.05);
}

.cal-month-label {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 16px 12px;
}

.cal-day-header {
    text-align: center;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
    padding: 4px 0 12px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: var(--font-body, 'Lato', sans-serif);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid transparent;
    color: var(--color-text-secondary);
    transition: all 0.2s;
    user-select: none;
}

.cal-day:hover:not(.disabled):not(.empty):not(.past) {
    background: rgba(90, 46, 28, 0.18);
    border-color: rgba(90, 46, 28, 0.4);
    color: #c9a86c;
}

.cal-day.today {
    border-color: rgba(90, 46, 28, 0.5);
    color: #c9a86c;
    font-weight: 700;
}

.cal-day.selected {
    background: linear-gradient(to right, #3C1E12, #5A2E1C);
    color: #f0ebe5 !important;
    font-weight: 700;
    border-color: #5A2E1C;
    box-shadow: 0 4px 14px rgba(60, 30, 18, 0.5);
}

.cal-day.disabled,
.cal-day.past {
    color: var(--color-text-subtle);
    pointer-events: none;
    opacity: 0.35;
}

.cal-day.empty {
    pointer-events: none;
    cursor: default;
}

.no-slots {
    text-align: center;
    padding: 40px 20px;
    color: #777;
}

.no-slots i {
    font-size: 28px;
    margin-bottom: 10px;
    color: #c0392b;
}

/* ── Purpose Cards (Step 2) ─────────────────────────────────── */
.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.purpose-card {
    background: var(--color-bg-elevated);
    border: 1.5px solid var(--color-border);
    border-radius: 14px;
    padding: 30px 22px 26px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    position: relative;
    overflow: hidden;
}

.purpose-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(60, 30, 18, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.purpose-card:hover {
    border-color: rgba(90, 46, 28, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.purpose-card:hover::before {
    opacity: 1;
}

.purpose-card.selected {
    border-color: #5A2E1C;
    background: linear-gradient(135deg, rgba(60, 30, 18, 0.18) 0%, var(--color-bg-elevated) 100%);
    box-shadow: 0 0 0 3px rgba(90, 46, 28, 0.2), 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

.purpose-card.selected::before {
    opacity: 1;
}

.purpose-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

.purpose-card:hover .purpose-icon-wrap,
.purpose-card.selected .purpose-icon-wrap {
    background: linear-gradient(to right, #3C1E12, #5A2E1C);
    border-color: #5A2E1C;
    color: #f0ebe5;
}

.purpose-card h3 {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-primary) !important;
    margin: 0 0 8px;
}

.purpose-card p {
    font-size: 12px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.6;
}

.purpose-selected-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(to right, #3C1E12, #5A2E1C);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #f0ebe5;
    box-shadow: 0 2px 6px rgba(60, 30, 18, 0.5);
}

.purpose-card.selected .purpose-selected-badge {
    display: flex;
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Time Slots (Step 3) ─────────────────────────────────────── */

.slots-info-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(60, 30, 18, 0.12);
    border: 1px solid rgba(90, 46, 28, 0.35);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 28px;
    font-size: 13px;
    color: #c9a86c;
}

.slots-info-banner i {
    font-size: 16px;
    flex-shrink: 0;
    color: #c9a86c;
}

.slots-section-label {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.slots-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.time-slot-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 16px 10px;
    border-radius: 10px;
    border: 1.5px solid var(--color-border);
    background: var(--color-bg-elevated);
    cursor: pointer;
    transition: all 0.22s ease;
    text-align: center;
    font-family: var(--font-body, 'Lato', sans-serif);
    position: relative;
}

.time-slot-btn .slot-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    line-height: 1.2;
    transition: color 0.22s;
}

.time-slot-btn .slot-duration {
    font-size: 10px;
    color: var(--color-text-subtle);
    transition: color 0.22s;
    background: var(--color-bg-card);
    padding: 2px 8px;
    border-radius: 10px;
}

.time-slot-btn:not(.disabled):not(.booked):hover {
    border-color: rgba(90, 46, 28, 0.5);
    background: rgba(60, 30, 18, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.time-slot-btn:not(.disabled):not(.booked):hover .slot-time {
    color: #c9a86c;
}

.time-slot-btn:not(.disabled):not(.booked):hover .slot-duration {
    color: #c9a86c;
    opacity: 0.8;
}

.time-slot-btn.selected {
    border-color: #5A2E1C;
    background: linear-gradient(to right, #3C1E12, #5A2E1C);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(60, 30, 18, 0.5);
}

.time-slot-btn.selected .slot-time,
.time-slot-btn.selected .slot-duration {
    color: #f0ebe5 !important;
    font-weight: 700;
}

.time-slot-btn.selected .slot-duration {
    background: rgba(255, 255, 255, 0.15);
}

/* Past / disabled slots */
.time-slot-btn.disabled,
.time-slot-btn.maintenance {
    border-color: var(--color-border);
    background: var(--color-bg);
    cursor: not-allowed;
    opacity: 0.38;
    pointer-events: none;
}

/* Maintenance badge overlay */
.time-slot-btn.maintenance::after {
    content: 'Not available';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ef5350;
    background: rgba(15, 17, 23, 0.72);
    border-radius: 8px;
}

/* Past-time slot (greyed, no overlay badge) */
.time-slot-btn.booked {
    border-color: var(--color-border);
    background: var(--color-bg);
    cursor: not-allowed;
    opacity: 0.3;
    pointer-events: none;
}

/* ── Selection Summary Bar ───────────────────────────────────── */
.selection-summary {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-label {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
}

.summary-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.summary-item+.summary-item {
    border-left: 1px solid var(--color-border);
    padding-left: 16px;
}

/* ── Action Buttons Area ─────────────────────────────────────── */
.booking-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 36px;
    border-top: 1px solid var(--color-border);
    background: linear-gradient(135deg, var(--color-bg-elevated) 0%, rgba(26, 21, 8, 0.3) 100%);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 9px;
    background: transparent;
    border: 1.5px solid var(--color-border-light);
    color: var(--color-text-muted);
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
}

.btn-back:hover {
    border-color: rgba(90, 46, 28, 0.5);
    color: #c9a86c;
    background: rgba(60, 30, 18, 0.12);
}

.btn-next,
.btn-confirm {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 9px;
    background: linear-gradient(to right, #3C1E12, #5A2E1C);
    color: #f0ebe5 !important;
    border: none;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 4px 18px rgba(60, 30, 18, 0.5);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-next::after,
.btn-confirm::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.07), transparent);
    opacity: 0;
    transition: opacity 0.25s;
}

.btn-next:hover::after,
.btn-confirm:hover::after {
    opacity: 1;
}

.btn-next:hover,
.btn-confirm:hover {
    background: linear-gradient(to right, #5A2E1C, #7a3d26);
    box-shadow: 0 8px 28px rgba(60, 30, 18, 0.65);
    transform: translateY(-2px);
    color: #f0ebe5 !important;
}

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

/* ── Confirm Panel (Step 4 summary) ─────────────────────────── */
.confirm-detail-grid {
    display: grid;
    gap: 10px;
}

.confirm-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: border-color 0.2s;
}

.confirm-detail-row:hover {
    border-color: rgba(90, 46, 28, 0.3);
}

.cdr-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(60, 30, 18, 0.25), rgba(90, 46, 28, 0.15));
    border: 1px solid rgba(90, 46, 28, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a86c;
    font-size: 15px;
    flex-shrink: 0;
}

.cdr-label {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
    margin-bottom: 3px;
}

.cdr-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* ── Customer Details Form ───────────────────────────────────── */
.customer-form {
    display: grid;
    gap: 18px;
    margin-bottom: 8px;
}

.form-section-title {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.form-group label {
    display: block;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.form-group label span {
    color: #c9a86c;
    font-size: 12px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--color-bg-input);
    border: 1.5px solid var(--color-border);
    border-radius: 9px;
    padding: 12px 16px;
    font-family: var(--font-body, 'Lato', sans-serif);
    font-size: 14px;
    color: var(--color-text-primary);
    outline: none;
    transition: border-color 0.22s, box-shadow 0.22s;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-subtle);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(90, 46, 28, 0.55);
    box-shadow: 0 0 0 3px rgba(60, 30, 18, 0.15);
}

/* ── Validation States ────────────────────────────────────────── */
.form-group input.input-invalid,
.form-group textarea.input-invalid,
.phone-input-wrap:has(.input-invalid) {
    border-color: #e07b54 !important;
    box-shadow: 0 0 0 3px rgba(224, 123, 84, 0.18) !important;
}

.form-group input.input-valid,
.form-group textarea.input-valid {
    border-color: rgba(90, 175, 90, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(90, 175, 90, 0.12) !important;
}

.field-error {
    display: block;
    font-family: var(--font-body, 'Lato', sans-serif);
    font-size: 11.5px;
    font-weight: 500;
    color: #e07b54;
    margin-top: 5px;
    min-height: 16px;
    line-height: 1.4;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

.field-error:empty {
    display: none;
}

/* ── Phone Prefix Wrapper ─────────────────────────────────────── */
.phone-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--color-border);
    border-radius: 9px;
    overflow: hidden;
    background: var(--color-bg-input);
    transition: border-color 0.22s, box-shadow 0.22s;
}

.phone-input-wrap:focus-within {
    border-color: rgba(90, 46, 28, 0.55);
    box-shadow: 0 0 0 3px rgba(60, 30, 18, 0.15);
}

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    background: rgba(60, 30, 18, 0.18);
    border-right: 1.5px solid var(--color-border);
    font-family: var(--font-body, 'Lato', sans-serif);
    font-size: 13px;
    font-weight: 600;
    color: #c9a86c;
    white-space: nowrap;
    flex-shrink: 0;
}

.phone-prefix i {
    font-size: 11px;
    opacity: 0.8;
}

.phone-input-wrap input {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    flex: 1;
}

.phone-input-wrap input:focus {
    border: none !important;
    box-shadow: none !important;
}

/* ── Notes Character Counter ──────────────────────────────────── */
.notes-counter {
    display: block;
    text-align: right;
    font-family: var(--font-body, 'Lato', sans-serif);
    font-size: 11px;
    color: var(--color-text-subtle);
    margin-top: 5px;
    transition: color 0.2s;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}


.purpose-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Success State ────────────────────────────────────────────── */
.booking-success {
    display: none;
    text-align: center;
    padding: 64px 36px;
    animation: fadeSlideIn 0.5s ease;
}

.booking-success.visible {
    display: block;
}

.success-icon-wrap {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(to right, #3C1E12, #5A2E1C);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    font-size: 34px;
    color: #f0ebe5;
    box-shadow: 0 10px 36px rgba(60, 30, 18, 0.55);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}

@keyframes popIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.booking-success h2 {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-primary) !important;
    margin: 0 0 10px;
}

.booking-success p {
    font-size: 15px;
    color: var(--color-text-muted);
    margin: 0 0 32px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.success-ref {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(60, 30, 18, 0.15);
    border: 1px solid rgba(90, 46, 28, 0.4);
    border-radius: 10px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    color: #c9a86c;
    margin-bottom: 36px;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── No-slots empty state ────────────────────────────────────── */
.no-slots {
    text-align: center;
    padding: 44px 24px;
    color: var(--color-text-subtle);
    font-size: 14px;
}

.no-slots i {
    font-size: 36px;
    color: var(--color-border-light);
    display: block;
    margin-bottom: 14px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {

    .booking-card-header,
    .booking-card-body {
        padding: 22px 20px;
    }

    .booking-actions {
        padding: 20px;
    }

    .step-connector {
        width: 36px;
    }

    .step-label {
        font-size: 9px;
        letter-spacing: 0.08em;
    }

    .purpose-grid {
        grid-template-columns: 1fr;
    }

    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .selection-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .summary-item+.summary-item {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--color-border);
        padding-top: 12px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .booking-actions {
        flex-direction: column-reverse;
    }

    .btn-back,
    .btn-next,
    .btn-confirm {
        width: 100%;
        justify-content: center;
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

}

@media (max-width: 400px) {
    .booking-wrap {
        padding: 28px 12px 64px;
    }

    .time-slots-grid {
        grid-template-columns: 1fr 1fr;
    }

    .step-connector {
        width: 22px;
    }


}