/* ============================================================
   Raj Bhavan — Modern Polish Design System
   Shared across all public-facing pages.
   ============================================================ */

:root {
    --rb-primary: #1d4ed8;
    --rb-primary-strong: #1e3a8a;
    --rb-primary-soft: #eff4ff;
    --rb-accent: #f59e0b;
    --rb-accent-strong: #d97706;
    --rb-success: #059669;
    --rb-success-soft: #ecfdf5;
    --rb-danger: #dc2626;
    --rb-ink: #0f172a;
    --rb-ink-soft: #475569;
    --rb-ink-muted: #94a3b8;
    --rb-line: #e6e9ef;
    --rb-bg: #f6f8fb;
    --rb-card: #ffffff;
    --rb-radius: 16px;
    --rb-radius-sm: 10px;
    --rb-radius-xs: 6px;
    --rb-shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
    --rb-shadow:    0 1px 3px rgba(15, 23, 42, .06), 0 12px 32px -12px rgba(15, 23, 42, .12);
    --rb-shadow-lg: 0 2px 6px rgba(15, 23, 42, .06), 0 24px 60px -20px rgba(15, 23, 42, .18);
    --rb-ring: 0 0 0 4px rgba(29, 78, 216, .15);
    --rb-ease: cubic-bezier(.4, 0, .2, 1);
}

/* Base */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--rb-bg);
    color: var(--rb-ink);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

*, *::before, *::after { box-sizing: border-box; }

a { color: var(--rb-primary); text-decoration: none; }
a:hover { color: var(--rb-primary-strong); }

/* ---- Accessibility toolbar ---- */
.skip-link {
    position: absolute; top: -40px; left: 6px;
    background: #000; color: #fff;
    padding: 8px 12px; text-decoration: none; font-size: 14px;
    border-radius: 0 0 4px 4px; z-index: 1000;
    transition: top .3s ease;
}
.skip-link:focus { top: 0; outline: 2px solid #fff; outline-offset: 2px; color: #fff; }
.accessibility-toolbar {
    background: #f1f5f9 !important;
    border-bottom: 1px solid var(--rb-line) !important;
    padding: 4px 0; width: 100%;
    position: relative; z-index: 999;
}
.accessibility-controls {
    display: flex; justify-content: flex-end; align-items: center;
    gap: 8px; max-width: 1200px; margin: 0 auto; padding: 0 12px;
}
.font-controls { display: flex; align-items: center; gap: 6px; }
.font-btn {
    background: #fff !important; border: 1px solid var(--rb-line) !important;
    color: var(--rb-ink-soft) !important; border-radius: var(--rb-radius-xs) !important;
    padding: .25rem .6rem !important; font-size: .78rem !important;
    cursor: pointer; transition: all .15s var(--rb-ease);
    min-width: 30px; text-align: center;
}
.font-btn:hover { color: var(--rb-primary) !important; border-color: var(--rb-primary) !important; }

/* ---- Header ---- */
.main-header {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%) !important;
    border-bottom: 1px solid var(--rb-line) !important;
    box-shadow: var(--rb-shadow-sm) !important;
    padding: 14px 0;
}
.header-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: grid; grid-template-columns: auto 1fr auto;
    align-items: center; gap: 20px;
}
.header-logo img, .header-emblem img { height: 70px; width: auto; }
.header-content { text-align: center; }
.header-title {
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: 800 !important; color: var(--rb-ink) !important;
    letter-spacing: .3px !important; line-height: 1.2;
}
.header-subtitle { color: var(--rb-ink-soft) !important; font-size: clamp(.7rem, 1.8vw, .95rem); font-weight: 500; margin-top: 2px; }
@media (max-width: 768px) {
    .main-header { padding: 8px 0; overflow: hidden; }
    .header-container { gap: 8px; padding: 0 10px; }
    .header-logo img, .header-emblem img { height: 40px; }
    .header-title { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .header-subtitle { font-size: .62rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 480px) {
    .main-header { padding: 6px 0; }
    .header-container { gap: 6px; padding: 0 8px; }
    .header-logo img, .header-emblem img { height: 32px; }
    .header-title { font-size: .68rem; letter-spacing: 0 !important; }
    .header-subtitle { display: none; }
}

/* ---- Navigation ---- */
.main-nav {
    background: #ffffff !important;
    border-bottom: 1px solid var(--rb-line) !important;
    box-shadow: none !important;
    position: sticky; top: 0; z-index: 9990;
}
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.navbar { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.nav-brand {
    color: var(--rb-primary) !important; font-weight: 700 !important;
    font-size: 1.1rem; text-decoration: none;
    display: flex !important; align-items: center; gap: .6rem; height: 100%;
}
.nav-logo {
    height: 36px; width: auto;
    border-radius: 6px;
    object-fit: contain;
}
.nav-links {
    display: flex; list-style: none; margin: 0; padding: 0;
    align-items: center; height: 100%;
}
.nav-links li { position: relative; height: 100%; display: flex; align-items: center; }
.nav-links a {
    color: var(--rb-ink-soft) !important; font-weight: 500 !important;
    padding: .55rem .9rem !important; border-radius: 8px !important;
    text-decoration: none; display: flex; align-items: center;
    transition: all .2s var(--rb-ease) !important; font-size: .93rem;
}
.nav-links a:hover {
    color: var(--rb-primary) !important;
    background: var(--rb-primary-soft) !important;
}
/* Dropdown arrow indicator */
.dropdown-arrow {
    font-size: .6rem !important;
    margin-left: .3rem;
    transition: transform .25s var(--rb-ease);
    opacity: .55;
}
.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--rb-primary) !important;
}
/* Animated dropdown */
.dropdown {
    position: absolute !important;
    top: calc(100% + 4px) !important; left: 0;
    background: #fff !important; min-width: 240px !important;
    opacity: 0 !important; visibility: hidden !important;
    transform: translateY(-8px) scale(.98) !important;
    transform-origin: top center;
    transition: opacity .22s var(--rb-ease), transform .22s var(--rb-ease), visibility 0s .22s !important;
    box-shadow: var(--rb-shadow-lg) !important;
    border: 1px solid var(--rb-line) !important;
    border-radius: 0 0 12px 12px !important;
    z-index: 1100 !important;
    list-style: none; margin: 0; padding: 6px !important;
    overflow: hidden;
}
.has-dropdown:hover > .dropdown,
.nav-links li:hover > .dropdown {
    opacity: 1 !important; visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    transition: opacity .22s var(--rb-ease), transform .22s var(--rb-ease), visibility 0s 0s !important;
}
.dropdown li { margin: 0; }
.dropdown a {
    display: flex !important; align-items: center; gap: .55rem;
    padding: .6rem .85rem !important; border-radius: 8px !important;
    font-size: .88rem !important; color: var(--rb-ink-soft) !important;
    transition: all .15s var(--rb-ease) !important;
}
.dropdown a i {
    width: 20px; text-align: center;
    color: var(--rb-primary); opacity: .65; font-size: .82rem;
}
.dropdown a:hover {
    background: var(--rb-primary-soft) !important;
    color: var(--rb-primary) !important;
    padding-left: 1.1rem !important;
}
.dropdown a:hover i { opacity: 1; }
.mobile-menu-btn {
    display: none; background: none; border: 1px solid var(--rb-line);
    color: var(--rb-ink); padding: .4rem .6rem; border-radius: var(--rb-radius-xs);
    cursor: pointer; font-size: 1.1rem;
}
@media (max-width: 992px) {
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
    .navbar { height: 50px; padding: 0 12px; }
    .nav-container { padding: 0; }
    .nav-brand { font-size: .92rem; gap: .4rem; }
    .nav-logo { height: 28px; }
    .nav-links {
        display: none !important;
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; flex-direction: column; padding: .5rem;
        box-shadow: 0 12px 32px rgba(15,23,42,.15);
        border-top: 1px solid var(--rb-line);
        z-index: 9995;
        max-height: 80vh; overflow-y: auto;
    }
    .nav-links.active { display: flex !important; }
    .nav-links li { width: 100%; height: auto; flex-direction: column; }
    .nav-links a {
        display: flex; width: 100%;
        padding: .7rem 1rem !important;
        border-radius: 8px !important;
        font-size: .88rem;
    }
    .nav-links .dropdown {
        position: static !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        transition: none !important;
        background: #f8fafc !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 8px !important;
        margin: 0 0 .25rem !important;
        padding: .25rem !important;
        min-width: 0 !important;
        width: 100%;
    }
    .nav-links li:hover > .dropdown,
    .nav-links .has-dropdown:hover > .dropdown { display: none !important; }
    .nav-links li.active > .dropdown { display: block !important; }
    .nav-links .dropdown a {
        padding: .55rem .85rem .55rem 1.5rem !important;
        font-size: .82rem !important;
    }
    .dropdown-arrow { margin-left: auto; }
}
@media (max-width: 480px) {
    .nav-brand { font-size: .82rem; }
    .nav-brand .nav-logo { height: 24px; }
}

/* ---- Hero slider ---- */
.hero-slider {
    padding: 1.25rem 1rem 0 !important;
    background: var(--rb-bg) !important;
    position: relative; z-index: 1;
}
.hero-slider .carousel,
.hero-slider #heroCarousel {
    max-width: 1280px; margin: 0 auto;
    border-radius: 22px; overflow: hidden;
    box-shadow: var(--rb-shadow-lg); position: relative;
}
.hero-slider .carousel-inner { border-radius: 22px; overflow: hidden; }
.hero-slider .carousel-item {
    height: clamp(280px, 52vw, 560px);
    background: #0b1220;
}
.hero-slider .carousel-item img {
    width: 100% !important; height: 100% !important;
    object-fit: cover !important; display: block;
    transition: transform 8s var(--rb-ease);
}
.hero-slider .carousel-item.active img { transform: scale(1.04); }
.hero-slider .carousel-item::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,.05) 0%, rgba(15,23,42,0) 35%, rgba(15,23,42,.55) 100%);
    pointer-events: none;
}
.hero-slider .carousel-indicators { margin-bottom: 1.1rem !important; gap: .35rem; }
.hero-slider .carousel-indicators [data-bs-target] {
    width: 28px !important; height: 4px !important; border-radius: 999px !important;
    background: rgba(255,255,255,.55) !important; border: none !important;
    opacity: 1 !important; transition: width .25s var(--rb-ease), background .25s var(--rb-ease);
}
.hero-slider .carousel-indicators .active { background: #fff !important; width: 44px !important; }
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 56px; opacity: 0; transition: opacity .25s var(--rb-ease);
}
.hero-slider #heroCarousel:hover .carousel-control-prev,
.hero-slider #heroCarousel:hover .carousel-control-next,
.hero-slider .carousel:hover .carousel-control-prev,
.hero-slider .carousel:hover .carousel-control-next { opacity: 1; }
.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    background-color: rgba(0,0,0,.45); border-radius: 50%;
    width: 42px; height: 42px; background-size: 50% 50%;
}
@media (max-width: 720px) {
    .hero-slider .carousel-item { height: 240px; }
}

/* ---- Hero section (static, used in book_seat.php) ---- */
.hero-section {
    background:
        radial-gradient(1200px 400px at 10% -20%, rgba(245, 158, 11, .15), transparent 60%),
        radial-gradient(1000px 500px at 110% 0%, rgba(99, 102, 241, .25), transparent 60%),
        linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%) !important;
    color: #fff !important;
    padding: 4.5rem 1.5rem 5rem !important;
    margin-bottom: -3rem !important;
    position: relative; overflow: hidden;
}
.hero-section::before { display: none !important; }
.hero-content {
    position: relative; z-index: 2;
    max-width: 900px; margin: 0 auto; text-align: center;
}
.hero-title {
    font-size: clamp(1.9rem, 4vw, 3rem) !important;
    font-weight: 800 !important; letter-spacing: -.02em !important;
    color: #fff !important; margin-bottom: .75rem !important;
}
.hero-title::after { display: none !important; }
.hero-title i { color: var(--rb-accent) !important; }
.hero-subtitle {
    font-size: 1.05rem !important;
    color: rgba(255, 255, 255, .85) !important;
    font-weight: 400 !important;
}

/* ---- Main container & booking card ---- */
.main-container { padding: 1rem 1rem 2rem !important; }
.booking-card {
    background: var(--rb-card) !important;
    border: 1px solid var(--rb-line) !important;
    border-radius: 20px !important;
    box-shadow: var(--rb-shadow-lg) !important;
    overflow: hidden; position: relative; z-index: 3;
}
.booking-card .card-body {
    padding: clamp(1rem, 2vw, 1.5rem) !important;
    background: #fff !important; color: var(--rb-ink) !important;
    border: none !important; border-radius: 0 !important;
}
.tracking-container { max-width: 640px; margin: 0 auto; }

/* ---- Step indicator — connected, no hover ---- */
.step-indicator {
    display: flex !important; justify-content: center !important;
    align-items: flex-start !important;
    gap: 0 !important; background: #fff !important;
    border: 1px solid var(--rb-line) !important;
    border-radius: 14px !important;
    padding: 1rem .75rem .75rem !important; margin-bottom: 1.25rem !important;
    position: relative; overflow: visible;
}
.step-indicator::before { display: none !important; }
.step-progress { display: none; }
.step {
    flex: 1; display: flex !important;
    flex-direction: column; align-items: center;
    gap: .4rem !important; position: relative; z-index: 2;
    background: transparent !important; border: none !important;
    color: var(--rb-ink-muted) !important;
    font-size: .72rem !important; font-weight: 600 !important;
    padding: 0 !important;
    letter-spacing: .02em; text-transform: uppercase;
}
.step:not(:last-child)::after {
    content: "" !important; display: block !important;
    position: absolute; top: 18px;
    left: calc(50% + 22px); width: calc(100% - 44px);
    height: 2px; background: var(--rb-line); z-index: 0;
}
.step.active:not(:last-child)::after,
.step.completed:not(:last-child)::after { background: linear-gradient(90deg, var(--rb-primary), var(--rb-line)); }
.step.completed:not(:last-child)::after { background: #059669; }
.step i, .step-circle {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #f1f5f9; border: 2px solid var(--rb-line);
    color: var(--rb-ink-muted); border-radius: 50%; font-size: .85rem;
    position: relative; z-index: 1;
}
.step span {
    white-space: nowrap; max-width: 90px;
    overflow: hidden; text-overflow: ellipsis;
}
.step.active i, .step.active .step-circle {
    background: var(--rb-primary); border-color: var(--rb-primary);
    color: #fff; box-shadow: 0 0 0 4px rgba(29,78,216,.15);
}
.step.active { color: var(--rb-primary) !important; }
.step.completed i, .step.completed .step-circle {
    background: #059669; border-color: #059669; color: #fff;
}
.step.completed { color: #059669 !important; }
@media (max-width: 720px) {
    .step-indicator { padding: .75rem .5rem .6rem !important; }
    .step span { display: none; }
    .step i, .step-circle { width: 34px; height: 34px; }
    .step:not(:last-child)::after { top: 16px; left: calc(50% + 19px); width: calc(100% - 38px); }
}

/* ---- Booking grid ---- */
.booking-grid {
    display: grid !important;
    grid-template-columns: 1.05fr .95fr 1.1fr !important;
    gap: 1rem !important;
}
.calendar-section, .schedule-section, .form-section {
    background: var(--rb-card);
    border: 1px solid var(--rb-line);
    border-radius: var(--rb-radius);
    padding: 1rem !important;
    box-shadow: var(--rb-shadow-sm);
}
@media (max-width: 1100px) {
    .booking-grid { grid-template-columns: 1fr 1fr !important; }
    .form-section { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .booking-grid { grid-template-columns: 1fr !important; }
}

/* ---- Section titles ---- */
.section-title {
    display: flex !important; align-items: center;
    gap: .5rem !important; font-size: .92rem !important;
    font-weight: 700 !important; color: var(--rb-ink) !important;
    margin: 0 0 .65rem 0 !important; padding-bottom: .5rem !important;
    border-bottom: 1px solid var(--rb-line) !important;
}
.section-title i {
    color: var(--rb-primary) !important;
    background: var(--rb-primary-soft) !important;
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 7px; font-size: .82rem !important;
}

/* ---- Form controls ---- */
.form-group { margin-bottom: .85rem !important; position: relative; }
.form-label {
    display: flex !important; align-items: center; gap: .4rem;
    font-weight: 600 !important; font-size: .82rem !important;
    color: var(--rb-ink) !important; margin-bottom: .3rem !important;
}
.form-label i { color: var(--rb-primary) !important; }
.form-control, select.form-control, input.form-control, textarea.form-control {
    width: 100% !important; height: 40px;
    padding: .5rem .8rem !important;
    border: 1.5px solid var(--rb-line) !important;
    border-radius: var(--rb-radius-sm) !important;
    background: #fff !important; color: var(--rb-ink) !important;
    font-size: .95rem !important; font-family: inherit !important;
    transition: border-color .2s var(--rb-ease), box-shadow .2s var(--rb-ease) !important;
    box-shadow: none !important;
}
textarea.form-control { height: auto; min-height: 96px; }
.form-control:focus {
    outline: none !important;
    border-color: var(--rb-primary) !important;
    box-shadow: var(--rb-ring) !important;
}
.form-control::placeholder { color: var(--rb-ink-muted) !important; }

/* ---- Radio cards ---- */
.radio-group { display: grid !important; grid-template-columns: 1fr 1fr; gap: .75rem !important; }
.radio-option { position: relative; }
.radio-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.radio-option label {
    display: flex !important; flex-direction: column;
    align-items: center; justify-content: center;
    gap: .15rem; text-align: center;
    padding: .75rem .6rem !important;
    border: 1.5px solid var(--rb-line) !important;
    border-radius: var(--rb-radius-sm) !important;
    background: #fff !important; color: var(--rb-ink) !important;
    font-weight: 600 !important; font-size: .9rem !important;
    cursor: pointer; transition: all .2s var(--rb-ease) !important;
}
.radio-option label::before { display: none !important; }
.radio-option label i {
    font-size: 1.25rem !important; color: var(--rb-ink-soft);
    margin-bottom: .25rem !important; transition: color .2s var(--rb-ease);
}
.radio-option label small { color: var(--rb-ink-soft); font-weight: 500; font-size: .78rem; }
.radio-option label:hover {
    border-color: var(--rb-primary) !important;
    background: var(--rb-primary-soft) !important;
    transform: none !important;
}
.radio-option input[type="radio"]:checked + label {
    border-color: var(--rb-primary) !important;
    background: var(--rb-primary-soft) !important;
    color: var(--rb-primary) !important;
    box-shadow: var(--rb-ring) !important;
}
.radio-option input[type="radio"]:checked + label i { color: var(--rb-primary); }
.radio-option input[type="radio"]:checked + label::before { display: none !important; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .4rem; height: 40px; padding: 0 1.2rem !important;
    border-radius: var(--rb-radius-sm) !important;
    font-weight: 600 !important; font-size: .95rem !important;
    letter-spacing: .01em; border: 1.5px solid transparent !important;
    transition: transform .15s var(--rb-ease), box-shadow .2s var(--rb-ease), background .2s var(--rb-ease) !important;
    box-shadow: var(--rb-shadow-sm) !important;
    text-transform: none !important; cursor: pointer; text-decoration: none;
    line-height: 1.2;
}
.btn::before, .btn::after { display: none !important; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--rb-shadow) !important; }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--rb-primary) !important;
    color: #fff !important;
    border-color: var(--rb-primary) !important;
}
.btn-primary:hover { background: var(--rb-primary-strong) !important; border-color: var(--rb-primary-strong) !important; }

.btn-success {
    background: var(--rb-success) !important;
    border-color: var(--rb-success) !important;
    color: #fff !important;
}
.btn-success:hover { background: #047857 !important; border-color: #047857 !important; }

.btn-warning {
    background: var(--rb-accent) !important;
    border-color: var(--rb-accent) !important;
    color: #1f1300 !important;
}
.btn-warning:hover { background: var(--rb-accent-strong) !important; border-color: var(--rb-accent-strong) !important; color: #fff !important; }

.btn-danger {
    background: var(--rb-danger) !important;
    border-color: var(--rb-danger) !important;
    color: #fff !important;
}
.btn-danger:hover { background: #b91c1c !important; border-color: #b91c1c !important; }

.btn-secondary, .btn-light {
    background: #fff !important;
    color: var(--rb-ink) !important;
    border-color: var(--rb-line) !important;
}
.btn-secondary:hover, .btn-light:hover { background: #f8fafc !important; border-color: #cbd5e1 !important; }

.btn-outline-primary {
    background: transparent !important;
    color: var(--rb-primary) !important;
    border-color: var(--rb-primary) !important;
}
.btn-outline-primary:hover { background: var(--rb-primary-soft) !important; }

.btn-outline-secondary {
    background: transparent !important;
    color: var(--rb-ink-soft) !important;
    border-color: var(--rb-line) !important;
}
.btn-outline-secondary:hover { background: #f8fafc !important; color: var(--rb-ink) !important; }

/* ---- Calendar legend ---- */
.calendar-legend {
    display: flex !important; flex-wrap: wrap;
    gap: .5rem !important; justify-content: center;
    margin-top: 1rem !important; padding-top: 1rem !important;
    border-top: 1px dashed var(--rb-line);
}
.legend-item {
    display: inline-flex !important; align-items: center; gap: .4rem;
    font-size: .78rem !important; color: var(--rb-ink-soft) !important;
    background: #f8fafc; padding: .3rem .65rem;
    border-radius: 999px; border: 1px solid var(--rb-line);
}
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend-available { background: #10b981; }
.legend-selected  { background: var(--rb-primary); }
.legend-today     { background: var(--rb-accent); }
.legend-disabled  { background: #cbd5e1; }

/* ---- Modals ---- */
.modal-content {
    border: none !important;
    border-radius: var(--rb-radius) !important;
    box-shadow: var(--rb-shadow-lg) !important;
    overflow: hidden;
}
.modal-header {
    border-bottom: 1px solid var(--rb-line) !important;
    background: #fff !important;
}
.modal-title { font-weight: 700 !important; color: var(--rb-ink) !important; }
.modal-footer { border-top: 1px solid var(--rb-line) !important; }

/* ---- Footer ---- */
.footer {
    background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%) !important;
    color: rgba(255,255,255,.78) !important;
    padding: 1.5rem 1rem !important;
    margin-top: 2rem !important;
    text-align: center;
    border-top: 4px solid var(--rb-primary) !important;
}
.footer p { color: rgba(255,255,255,.78) !important; }
.footer small { color: rgba(255,255,255,.55) !important; }
.footer i { color: var(--rb-accent) !important; }

/* ---- Centred page card (OTP, contact, standalone pages) ---- */
.rb-page-wrap {
    min-height: 100vh;
    display: flex; flex-direction: column;
}
.rb-page-center {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 2rem 1rem;
}
.rb-card {
    background: var(--rb-card);
    border: 1px solid var(--rb-line);
    border-radius: var(--rb-radius);
    box-shadow: var(--rb-shadow-lg);
    width: 100%; max-width: 480px;
    padding: 2.5rem;
    animation: rb-fade .45s var(--rb-ease) both;
}
.rb-card-wide { max-width: 720px; }
.rb-card-title {
    font-size: 1.35rem; font-weight: 800;
    color: var(--rb-ink); text-align: center;
    margin: 0 0 1.5rem;
}
.rb-card-icon {
    width: 64px; height: 64px;
    background: var(--rb-primary-soft);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--rb-primary); font-size: 1.5rem;
}

/* ---- Success card ---- */
.success-card {
    background: var(--rb-card) !important;
    border: 1px solid var(--rb-line);
    border-radius: 20px !important;
    box-shadow: var(--rb-shadow-lg) !important;
    max-width: 720px; width: 100%;
    overflow: hidden;
    animation: rb-fade .45s var(--rb-ease) both;
}
.success-header {
    background: linear-gradient(135deg, var(--rb-success), #047857) !important;
    color: #fff; padding: 2rem 2rem 3.5rem; text-align: center;
}
.success-icon {
    width: 64px; height: 64px;
    background: rgba(255,255,255,.2) !important;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(5, 150, 105, .35);
}
.success-body {
    padding: 2rem !important; margin-top: -2rem !important;
}
.booking-id {
    background: var(--rb-primary-soft) !important;
    border: 1.5px dashed var(--rb-primary) !important;
    border-radius: var(--rb-radius-sm); padding: 1rem;
    font-weight: 700; letter-spacing: .4px;
    color: var(--rb-primary-strong); text-align: center;
}
.actions {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: .75rem; margin-top: 1.5rem;
}
@media (max-width: 576px) { .actions { grid-template-columns: 1fr; } }

/* ---- OTP input boxes ---- */
.otp-container {
    display: flex; justify-content: center;
    align-items: center; gap: .5rem;
}
.otp-input {
    width: 50px !important; height: 56px !important;
    text-align: center; font-size: 1.35rem !important;
    font-weight: 700; letter-spacing: .02em;
    border: 1.5px solid var(--rb-line) !important;
    border-radius: var(--rb-radius-sm) !important;
    background: #fff; color: var(--rb-ink);
    transition: border-color .2s var(--rb-ease), box-shadow .2s var(--rb-ease);
    outline: none;
}
.otp-input:focus {
    border-color: var(--rb-primary) !important;
    box-shadow: var(--rb-ring) !important;
}

/* ---- Contact info card ---- */
.contact-info {
    text-align: left;
    font-size: .95rem; line-height: 1.7;
    color: var(--rb-ink);
}
.contact-info a { color: var(--rb-primary); font-weight: 600; }
.contact-info a:hover { text-decoration: underline; }

/* ---- Map page polish ---- */
.rb-map-card {
    background: var(--rb-card);
    border: 1px solid var(--rb-line);
    border-radius: var(--rb-radius);
    box-shadow: var(--rb-shadow);
    padding: 1.5rem; max-width: 640px; margin: 1.5rem auto;
}
#map { border-radius: var(--rb-radius); overflow: hidden; }

/* ---- QR scanner ---- */
.rb-scanner-wrap {
    padding: 2rem 1rem;
}
#reader { border-radius: var(--rb-radius-sm) !important; overflow: hidden; }

/* ---- Tables (edit booking, etc.) ---- */
.table th {
    background: var(--rb-primary-soft); color: var(--rb-primary-strong);
    font-weight: 700; font-size: .85rem;
    text-transform: uppercase; letter-spacing: .04em;
}
.table td, .table th {
    padding: .75rem 1rem; vertical-align: middle;
    border-color: var(--rb-line);
}

/* ---- Booking section header ---- */
.booking-section-header {
    text-align: center; max-width: 1280px;
    margin: 0 auto 1.25rem; padding: 0 1rem;
}
.booking-section-title {
    font-size: 1.6rem; font-weight: 800; color: var(--rb-ink);
    margin: 0 0 .35rem; display: flex;
    align-items: center; justify-content: center; gap: .6rem;
}
.booking-section-title i { color: var(--rb-primary); font-size: 1.3rem; }
.booking-section-sub { font-size: .92rem; color: var(--rb-ink-soft); margin: 0; }

/* ---- Booking card accent bar ---- */
.booking-card-accent {
    height: 5px;
    background: linear-gradient(90deg, var(--rb-primary), var(--rb-accent), var(--rb-primary));
    background-size: 200% 100%;
    animation: accent-shimmer 4s ease infinite;
}
@keyframes accent-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* step-circle already defined in the step indicator block above */

/* ---- Schedule empty state ---- */
.schedule-empty-state {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 2.5rem 1rem; text-align: center;
}
.schedule-empty-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--rb-primary-soft), #dbeafe);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    animation: pulse-soft 2.5s ease-in-out infinite;
}
.schedule-empty-icon i { font-size: 1.5rem; color: var(--rb-primary); }
@keyframes pulse-soft {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(29,78,216,.15); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(29,78,216,0); }
}
.schedule-empty-text {
    color: var(--rb-ink-soft); font-size: .88rem;
    margin: 0; max-width: 200px; line-height: 1.5;
}

/* ---- Terms section ---- */
.terms-section {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid var(--rb-line);
    border-radius: var(--rb-radius-sm);
    padding: 1.25rem; margin-top: 1rem;
}
.checkbox-wrapper {
    display: flex; align-items: flex-start; gap: .65rem; margin-bottom: 1rem;
}
.checkbox-wrapper input[type="checkbox"] {
    width: 20px; height: 20px; margin-top: 2px;
    accent-color: var(--rb-primary); cursor: pointer; flex-shrink: 0;
}
.checkbox-wrapper label {
    font-size: .9rem; color: var(--rb-ink-soft); cursor: pointer; line-height: 1.5;
}
.checkbox-wrapper a {
    color: var(--rb-primary); font-weight: 600;
    text-decoration: underline; text-underline-offset: 2px;
}

/* ---- Booking nav buttons ---- */
.booking-nav-bar {
    display: flex; justify-content: flex-end; gap: .75rem;
    margin-top: 1.5rem; padding-top: 1.25rem;
    border-top: 1px solid var(--rb-line);
}
.booking-nav-group { display: flex; gap: .6rem; }
.btn-nav-main { min-width: 140px; }
.btn-nav-back { min-width: 100px; }
#btnsubmit {
    min-width: 180px; height: 52px !important;
    font-size: 1.05rem !important; border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(5,150,105,.3) !important;
}
#btnsubmit:not(:disabled):hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 24px rgba(5,150,105,.4) !important;
}
#btnsubmit:disabled { opacity: .5; cursor: not-allowed; box-shadow: none !important; }

/* ---- Schedule / time slot cards ---- */
.schedule-card, .time-slot-card {
    border: 1px solid var(--rb-line) !important;
    border-radius: var(--rb-radius-sm) !important;
    padding: .85rem 1rem !important;
    margin-bottom: .6rem; cursor: pointer;
    transition: all .2s var(--rb-ease); background: #fff;
}
.schedule-card:hover, .time-slot-card:hover {
    border-color: var(--rb-primary) !important;
    background: var(--rb-primary-soft) !important;
    box-shadow: 0 2px 8px rgba(29,78,216,.1);
}

/* ---- Calendar cells polish ---- */
.calendar table { width: 100%; border-collapse: separate; border-spacing: 3px; }
.calendar th {
    font-size: .72rem; font-weight: 700; color: var(--rb-ink-soft);
    text-transform: uppercase; letter-spacing: .04em;
    padding: .4rem .2rem; text-align: center;
}
.calendar td {
    text-align: center; padding: .5rem .2rem; border-radius: 8px;
    font-size: .85rem; cursor: pointer;
    transition: all .15s var(--rb-ease);
}
.calendar td:hover:not(.disabled):not(.selected) { background: var(--rb-primary-soft); color: var(--rb-primary); }
.calendar td.disabled { color: #cbd5e1; cursor: default; }
.calendar td.selected {
    background: var(--rb-primary) !important; color: #fff !important;
    font-weight: 700; box-shadow: 0 3px 10px rgba(29,78,216,.3);
}
.calendar td.current-day { border: 2px solid var(--rb-accent); font-weight: 700; }
.calendar td.bookable { background: rgba(16,185,129,.08); color: var(--rb-ink); font-weight: 600; }
.calendar td.bookable:hover { background: rgba(16,185,129,.18); }
.calendar header { display: flex; gap: .6rem; margin-bottom: .75rem; }
.calendar select {
    padding: .45rem .7rem; border: 1.5px solid var(--rb-line);
    border-radius: var(--rb-radius-xs); font-size: .85rem;
    color: var(--rb-ink); background: #fff; cursor: pointer;
}
.calendar select:focus { border-color: var(--rb-primary); box-shadow: var(--rb-ring); outline: none; }

/* ---- Loading ---- */
.loading {
    display: inline-block; width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,.35);
    border-top-color: #fff; border-radius: 50%;
    animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.55); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; opacity: 0; pointer-events: none;
    transition: opacity .25s var(--rb-ease);
}
.loading-overlay.active { opacity: 1; pointer-events: auto; }
.loading-spinner {
    background: #fff; border-radius: var(--rb-radius);
    padding: 2.5rem 3rem; text-align: center;
    box-shadow: var(--rb-shadow-lg);
}
.loading-spinner .spinner {
    width: 44px; height: 44px;
    border: 4px solid var(--rb-line); border-top-color: var(--rb-primary);
    border-radius: 50%; animation: spin .7s linear infinite;
    margin: 0 auto 1rem;
}
.loading-spinner p { color: var(--rb-ink-soft); font-weight: 600; font-size: .95rem; margin: 0; }

/* ---- Helpers ---- */
.form-text { font-size: .76rem !important; color: var(--rb-ink-muted) !important; margin-top: .3rem !important; display: block; }
.is-invalid { border-color: var(--rb-danger) !important; box-shadow: 0 0 0 3px rgba(220,38,38,.12) !important; }

/* ---- Subtle entrance animation ---- */
.fade-in { animation: rb-fade .5s var(--rb-ease) both; }
@keyframes rb-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
