/* ==========================================================================
   MEETING SPACE - Clean White Corporate Design System
   Dominant White, High Contrast, Compact Layout, Zero-Scroll Modal
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Pure Light / White Corporate Tokens */
    --bg-main: #f8fafc;
    --bg-white: #ffffff;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-hover: #f8fafc;

    /* Border & Outline */
    --border-light: #e2e8f0;
    --border-strong: #cbd5e1;
    --border-active: #2563eb;

    /* Text Colors (High Contrast WCAG AA Compliant) */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-white: #ffffff;

    /* Brand Accents */
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;

    --cyan-600: #0284c7;
    --cyan-700: #0369a1;

    --emerald-500: #10b981;
    --emerald-600: #059669;

    --rose-500: #ef4444;
    --rose-600: #dc2626;

    --amber-500: #f59e0b;
    --amber-600: #d97706;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --radius-full: 9999px;

    /* Clean Subtle Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-modal: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.8);

    /* Typography: Modern, Kalem, Soft & Readable (Plus Jakarta Sans) */
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Segoe UI Mono', 'Roboto Mono', Menlo, monospace;

    /* Transitions */
    --transition-smooth: all 0.22s ease-out;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

body.theme-white {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

body.modal-open {
    overflow: hidden;
}

.app-layout-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container-custom {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ==========================================================================
   CLEAN WHITE HEADER
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 1rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-icon-box {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--blue-600);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.brand-text-col {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
}

.header-action-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-datetime-widget {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
}

.date-display {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.clock-divider {
    width: 1px;
    height: 14px;
    background: var(--border-strong);
}

.time-display {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--blue-600);
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}

.clock-colon {
    animation: colonPulse 1s infinite;
}

@keyframes colonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.6rem 1.15rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transition-smooth);
    min-height: 40px;
    outline: none;
}

.btn svg {
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.btn-primary:hover svg:last-child {
    transform: translateX(2px);
}

.btn-secondary:hover svg:first-child {
    transform: translateX(-2px);
}

.btn-sm {
    padding: 0.45rem 0.95rem;
    font-size: 0.82rem;
    min-height: 36px;
    border-radius: var(--radius-sm);
}

.btn-primary {
    background: var(--blue-600);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: var(--blue-700);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

.btn-outline:hover {
    background: var(--bg-subtle);
    border-color: var(--text-muted);
}

.btn-secondary {
    background: var(--bg-subtle);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20ba59;
    transform: translateY(-1px);
}

/* ==========================================================================
   MINIMAL SCROLL FLOW: ROOM SHOWCASE DIRECTLY VISIBLE
   ========================================================================== */
.main-content-flow {
    padding-top: 1rem;
    flex: 1;
}

.room-showcase-section {
    padding: 0.5rem 0 1.5rem;
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.section-heading-group h2 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-heading-group p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.header-status-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
}

.pill-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 0.35rem;
}

.pill-available {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.pill-available .dot-available {
    background-color: var(--emerald-500);
}

.pill-busy {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.pill-busy .dot-busy {
    background-color: var(--rose-500);
}

/* 3 Room Cards Grid */
.room-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.room-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    position: relative;
}

.room-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-500);
}

.room-card-available {
    border-top: 3px solid var(--emerald-500);
}

.room-card-busy {
    border-top: 3px solid var(--rose-500);
}

/* 3D Illustration Viewport (Compact Height) */
.room-illustration-container {
    position: relative;
    height: 175px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-illustration-viewport {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.room-isometric-svg {
    width: 100%;
    height: 100%;
    max-height: 165px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.06));
    transition: transform 0.3s ease;
}

.room-card:hover .room-isometric-svg {
    transform: scale(1.03);
}

.room-capacity-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-light);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.room-status-indicator {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    font-weight: 700;
}

.status-indicator-available {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.status-indicator-available .indicator-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--emerald-500);
}

.status-indicator-busy {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.status-indicator-busy .indicator-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--rose-500);
}

/* Card Body */
.room-card-body {
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.room-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.room-description {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Status Info Box (White Theme Compact) */
.room-status-box {
    border-radius: var(--radius-md);
    padding: 0.85rem;
    margin-bottom: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status-box-available {
    background: #f0fdf4;
    border: 1px dashed #bbf7d0;
}

.available-lead {
    font-size: 0.88rem;
    font-weight: 700;
    color: #15803d;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.available-sub {
    font-size: 0.78rem;
    color: #4b5563;
    margin-top: 0.2rem;
}

.status-box-busy {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.busy-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.busy-lead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.busy-title-text {
    font-size: 0.88rem;
    font-weight: 700;
    color: #991b1b;
}

.busy-until-pill {
    font-size: 0.74rem;
    font-weight: 700;
    background: #fee2e2;
    color: #991b1b;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

.busy-notice-text {
    font-size: 0.78rem;
    color: #4b5563;
    line-height: 1.35;
}

.busy-meta-tags {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.busy-tag-unit {
    color: var(--text-primary);
}

.busy-tag-divider {
    color: var(--text-muted);
}

.busy-tag-agenda {
    color: #dc2626;
}

.room-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: auto;
}

/* ==========================================================================
   SCHEDULE TIMELINE (Clean White, Compact)
   ========================================================================== */
.schedule-section {
    padding: 0.5rem 0 3rem;
}

.schedule-card-container {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    overflow: hidden;
    position: relative;
    max-width: 100%;
}

.schedule-header-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
}

#scheduleDateChips {
    min-width: 0;
    max-width: 100%;
}

.date-chips-wrapper {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.35rem;
}

.date-chips-wrapper::-webkit-scrollbar {
    height: 4px;
}

.date-chips-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.date-chips-wrapper::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--radius-full);
}

.date-chip {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.35rem 0.65rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    min-width: 68px;
    min-height: 42px;
    flex-shrink: 0;
}

.date-chip:hover {
    background: #e2e8f0;
}

.date-chip.active {
    background: var(--blue-600);
    border-color: var(--blue-600);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.chip-label {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.15;
}

.chip-sub {
    font-size: 0.68rem;
    opacity: 0.85;
    line-height: 1.15;
    margin-top: 2px;
}

.date-picker-inline {
    flex-shrink: 0;
}

.date-picker-inline input {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 0.4rem 0.65rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.8rem;
    outline: none;
    min-height: 42px;
}

.timeline-scroll-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: #ffffff;
}

.timeline-board {
    min-width: 860px;
    position: relative;
}

.timeline-header-row {
    display: flex;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-light);
    padding: 0.65rem 0;
}

.timeline-room-col-header {
    width: 175px;
    padding-left: 1.25rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.timeline-grid-header {
    flex: 1;
    display: flex;
}

.timeline-hour-mark {
    flex: 1;
    text-align: center;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--font-heading);
}

.timeline-room-row {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    min-height: 75px;
    transition: var(--transition-smooth);
}

.timeline-room-row:last-child {
    border-bottom: none;
}

.timeline-room-info {
    width: 175px;
    padding: 0.85rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border-light);
}

.timeline-room-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-room-cap {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.timeline-track-canvas {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.timeline-grid-lines {
    position: absolute;
    inset: 0;
    display: flex;
    pointer-events: none;
}

.timeline-grid-col {
    flex: 1;
    border-right: 1px dashed #f1f5f9;
}

.timeline-grid-col:last-child {
    border-right: none;
}

.timeline-event-block {
    position: absolute;
    top: 8px;
    bottom: 8px;
    z-index: 2;
    padding: 0 3px;
}

.event-pill {
    width: 100%;
    height: 100%;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: default;
    transition: var(--transition-smooth);
}

.event-pill:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: #fecaca;
}

.event-time {
    font-size: 0.68rem;
    font-weight: 800;
    color: #991b1b;
}

.event-unit {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-agenda {
    font-size: 0.68rem;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-click-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    cursor: pointer;
}

.timeline-click-overlay:hover {
    background: rgba(37, 99, 235, 0.04);
}

.timeline-now-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--rose-500);
    z-index: 3;
    pointer-events: none;
}

.now-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--rose-500);
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.highlight-pulse {
    animation: rowLightPulse 1.8s ease-in-out;
}

@keyframes rowLightPulse {
    0%, 100% { background: transparent; }
    50% { background: #eff6ff; }
}

/* ==========================================================================
   ENLARGED ZERO-SCROLL BOOKING MODAL (Points 3, 4, 5)
   ========================================================================== */
.booking-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.booking-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Modal Panel: Wider, Fits on Screen, No Scroll */
.booking-modal-panel {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    width: 95vw;
    max-width: 1020px; /* Point 4: Enlarged width */
    max-height: 88vh;   /* Zero-scroll constraint */
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-modal);
    overflow: hidden;
    position: relative;
}

.booking-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-subtle);
}

.modal-header-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.modal-brand-badge {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--blue-600);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.modal-header-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.modal-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

/* Stepper Bar */
.wizard-stepper-container {
    padding: 0.65rem 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
}

.wizard-stepper-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stepper-node {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: default;
    opacity: 0.45;
    transition: var(--transition-smooth);
}

.stepper-node.completed {
    opacity: 0.9;
    cursor: pointer;
}

.stepper-node.active {
    opacity: 1;
}

.stepper-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-subtle);
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 700;
}

.stepper-node.active .stepper-circle {
    background: var(--blue-600);
    border-color: var(--blue-600);
    color: #ffffff;
}

.stepper-node.completed .stepper-circle {
    background: var(--emerald-600);
    border-color: var(--emerald-600);
    color: #ffffff;
}

.stepper-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stepper-connector {
    flex: 1;
    height: 1px;
    background: var(--border-light);
    margin: 0 0.5rem;
}

/* Compact Content Viewport */
.wizard-body-viewport {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.compact-step {
    display: flex;
    flex-direction: column;
}

.wizard-step-header-compact {
    margin-bottom: 1rem;
}

.wizard-step-header-compact h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.wizard-step-header-compact p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.badge-selection {
    display: inline-block;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.35rem;
}

/* Step 1: 3 Rooms Horizontal Side-by-Side (Point 4) */
.modal-rooms-horizontal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.modal-room-compact-card {
    background: #ffffff;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-room-compact-card:hover {
    border-color: var(--blue-500);
    box-shadow: var(--shadow-md);
}

.modal-room-compact-card.selected {
    border-color: var(--blue-600);
    background: #f8faff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.room-compact-thumb {
    position: relative;
    height: 110px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
}

.room-compact-thumb .room-isometric-svg {
    max-height: 105px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-room-compact-card:hover .room-isometric-svg,
.modal-room-compact-card.selected .room-isometric-svg {
    transform: scale(1.05);
}

.room-cap-chip {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-light);
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
}

.room-compact-info {
    flex: 1;
}

.room-compact-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.room-compact-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.status-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dot-free { background-color: var(--emerald-500); }
.dot-busy { background-color: var(--rose-500); }

.room-compact-radio {
    margin-top: 0.65rem;
    text-align: center;
}

.check-badge {
    display: inline-block;
    width: 100%;
    padding: 0.35rem 0;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 700;
    background: var(--bg-subtle);
    color: var(--text-secondary);
}

.modal-room-compact-card.selected .check-badge {
    background: var(--blue-600);
    color: #ffffff;
}

/* Step 2: Combined Date & Time Selector (Compact Zero-Scroll) */
.horizontal-date-row-compact {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.date-pick-chip {
    background: #ffffff;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.45rem 0.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    min-height: 48px;
}

.date-pick-chip:hover {
    border-color: var(--blue-500);
    background: var(--bg-hover);
}

.date-pick-chip.selected {
    background: var(--blue-600);
    border-color: var(--blue-600);
    color: #ffffff;
}

.chip-day {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
}

.date-pick-chip.selected .chip-day { color: rgba(255, 255, 255, 0.9); }

.chip-date {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.date-pick-chip.selected .chip-date { color: #ffffff; }

.chip-month {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.date-pick-chip.selected .chip-month { color: rgba(255, 255, 255, 0.9); }

.date-calendar-bar {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.4rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.65rem;
}

.date-calendar-bar label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.date-calendar-bar input {
    background: #ffffff;
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    padding: 0.3rem 0.55rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.8rem;
}

.date-chosen-text {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-primary);
}

/* Multi-Hour Pagi & Siang */
.slots-period-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.period-box {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.75rem;
}

.period-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--border-light);
}

.period-icon { font-size: 1rem; }

.period-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
}

.slot-preset-btn {
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--border-light);
    background: #ffffff;
    transition: var(--transition-smooth);
    min-height: 42px;
}

.slot-preset-btn.slot-free:hover {
    border-color: var(--blue-500);
    background: #eff6ff;
}

.slot-preset-btn.slot-free.active {
    background: var(--blue-600) !important;
    border-color: var(--blue-600) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
    animation: slotBounce 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slotBounce {
    0% { transform: scale(0.97); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.slot-preset-btn.slot-free.active .slot-dur-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.slot-preset-btn.slot-busy {
    background: #fef2f2;
    border-color: #fecaca;
    cursor: not-allowed;
    opacity: 0.8;
}

.slot-time-range {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.1;
}

.slot-dur-badge {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--blue-600);
    background: #eff6ff;
    padding: 0.08rem 0.3rem;
    border-radius: var(--radius-full);
    margin-top: 0.15rem;
}

.slot-busy-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.62rem;
    font-weight: 700;
    color: #991b1b;
    margin-top: 0.15rem;
}

.busy-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--rose-500);
    margin-right: 0.2rem;
}

/* Custom time inline selector */
.custom-time-bar-compact {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.45rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.65rem;
}

.custom-time-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.custom-time-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-time-inputs select {
    background: #ffffff;
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.82rem;
}

.to-separator {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.time-status-inline {
    margin-left: auto;
    font-size: 0.78rem;
}

.time-status-inline.error { color: #dc2626; font-weight: 600; }
.time-status-inline.success { color: #15803d; font-weight: 600; }

/* Step 4: Compact Form Layout */
.form-grid-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.col-span-full { grid-column: span 2; }

.form-field-compact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-field-compact label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.req { color: var(--rose-500); }
.cap-note { font-weight: 400; color: var(--text-muted); }

.form-field-compact input,
.form-field-compact textarea {
    background: #ffffff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-field-compact input:focus,
.form-field-compact textarea:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.phone-input-compact {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.phone-prefix {
    background: var(--bg-subtle);
    color: var(--text-secondary);
    padding: 0.45rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-right: 1px solid var(--border-light);
}

.phone-input-compact input {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
}

.stepper-input-compact {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: 140px;
}

.btn-step-act {
    width: 36px;
    height: 34px;
    background: var(--bg-subtle);
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-primary);
}

.btn-step-act:hover { background: #e2e8f0; }

.stepper-input-compact input {
    border: none !important;
    text-align: center;
    width: 68px !important;
    font-weight: 700;
    font-size: 0.9rem;
}

.cap-alert-inline {
    font-size: 0.74rem;
    color: #dc2626;
    background: #fee2e2;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

/* Step 5: Compact Summary */
.summary-card-compact {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1.5rem;
    margin-bottom: 1.25rem;
}

.summary-compact-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.82rem;
}

.s-key { color: var(--text-muted); min-width: 110px; }
.s-val { color: var(--text-primary); }
.text-blue { color: var(--blue-600); }
.font-bold { font-weight: 700; }

/* Step 6: Success View */
.success-icon-badge {
    margin-bottom: 0.5rem;
    display: inline-flex;
    animation: springPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes springPop {
    0% { transform: scale(0.3); opacity: 0; }
    70% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.success-head {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #15803d;
    margin-bottom: 0.2rem;
    animation: fadeInUp 0.4s 0.15s ease-out both;
}

.success-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    animation: fadeInUp 0.4s 0.25s ease-out both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ticket-code-pill {
    background: #eff6ff;
    border: 1px dashed var(--blue-500);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0 auto 1rem;
}

.t-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--blue-600);
}

.t-code {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-primary);
}

.btn-copy-sm {
    background: #ffffff;
    border: 1px solid var(--border-strong);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-copy-sm:hover { background: var(--bg-subtle); }

.success-summary-mini {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.success-actions-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.wizard-footer-compact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

/* Helpers */
.hidden { display: none !important; }
.text-center { text-align: center; }

/* Sticky Mobile Bottom Bar */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    padding: 0.65rem 1rem;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    z-index: 40;
}

.mobile-sticky-bar .btn { width: 100%; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .room-cards-grid {
        grid-template-columns: 1fr;
    }

    .modal-rooms-horizontal-grid {
        grid-template-columns: 1fr;
    }

    .horizontal-date-row-compact {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .summary-card-compact {
        grid-template-columns: 1fr;
    }

    .booking-modal-panel {
        max-height: 95vh;
    }

    .schedule-header-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    #scheduleDateChips {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .container-custom {
        padding: 0 0.85rem;
    }

    .schedule-card-container {
        padding: 1rem 0.75rem;
    }

    .schedule-header-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    #scheduleDateChips {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .header-datetime-widget { display: none; }
    
    .horizontal-date-row-compact {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .col-span-full { grid-column: span 1; }

    .mobile-sticky-bar { display: block; }
    
    .schedule-section { padding-bottom: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
