/* D-KODE Standalone Fixed-Card Appointment Booking Styles */

:root {
    --bg-dark: #000000;
    --bg-card: #000000;
    --bg-card-border: rgba(255, 87, 34, 0.45);
    --bg-input: #000000;
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    --ember-orange: #ff5722;
    --ember-amber: #ffaa00;
    --ember-gradient: linear-gradient(135deg, #ff5722 0%, #ff8a50 100%);
    --ember-glow: 0 0 25px rgba(255, 87, 34, 0.35);
    --border-subtle: rgba(255, 87, 34, 0.35);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Standalone Viewport Layout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #000000;
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Pro Card Conic Gradient Bottom Page Glow with Ambient Pulse */
body::after {
    content: '';
    position: fixed;
    bottom: -200px;
    left: 0;
    right: 0;
    width: 100vw;
    height: 750px;
    background: conic-gradient(
        from 180deg at 50% 80%,
        #000000 0deg,
        #1a0a00 30deg,
        #cc3300 120deg,
        #ffaa00 180deg,
        #ff5a00 240deg,
        #1a0a00 330deg,
        #000000 360deg
    );
    filter: blur(85px) brightness(1.35);
    z-index: 0;
    pointer-events: none;
    opacity: 0.95;
    animation: bottomGlowPulse 10s ease-in-out infinite alternate;
    will-change: transform, filter, opacity;
}

@keyframes bottomGlowPulse {
    0% {
        transform: translateY(0px) scale(1);
        filter: blur(80px) brightness(1.25);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-15px) scale(1.03);
        filter: blur(95px) brightness(1.45);
        opacity: 1;
    }
    100% {
        transform: translateY(0px) scale(1);
        filter: blur(80px) brightness(1.25);
        opacity: 0.9;
    }
}

.standalone-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    position: relative;
    z-index: 1;
}

/* Base Ambient Radial Glow */
.standalone-page::before {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 550px;
    background: radial-gradient(ellipse 100% 70% at 50% 100%, rgba(255, 87, 34, 0.45) 0%, rgba(204, 51, 0, 0.22) 45%, rgba(27, 13, 0, 0.08) 75%, transparent 100%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

/* Shade to Top - Dark Overlay Vignette Fading Softly Upward */
.standalone-page::after {
    content: '';
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to top, transparent 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.85) 80%, #000000 100%);
    pointer-events: none;
    z-index: 0;
}

.standalone-container {
    width: min(720px, calc(100vw - 32px));
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Standalone Brand Header */
.standalone-brand {
    text-align: center;
    margin-bottom: 24px;
}

.brand-logo {
    height: 38px;
    filter: brightness(0) invert(1);
    margin-bottom: 10px;
}

.standalone-title {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #ffffff 40%, rgba(255, 255, 255, 0.75) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.standalone-sub {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Unified Booking Shell Component - FULL PRO CARD THEME (UPSIDE DOWN CONIC GLOW) */
.booking-shell {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 28px;
    border: 1px solid rgba(255, 80, 0, 0.45) !important; /* Pro Card Border */
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 90, 0, 0.2);
    position: relative;
    background: #060608 !important;
    overflow: hidden;
    isolation: isolate;
}

/* Full Card Pro Theme Background from pricing_packages.html */
.card-inner-glow-top {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #060608 !important;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    border-radius: 28px;
}

.card-inner-glow-top::before {
    content: '';
    display: block !important;
    position: absolute;
    top: -200px;
    right: -200px;
    bottom: -200px;
    left: -200px;
    background: conic-gradient(
        from 180deg at 50% 50%,
        #000000 90deg,
        #1a0a00 120deg,
        #cc3300 150deg,
        #ffaa00 180deg,
        #ff5a00 210deg,
        #1a0a00 240deg,
        #000000 270deg,
        #000000 360deg
    );
    filter: blur(55px) brightness(1.25);
    opacity: 0.95;
    pointer-events: none;
}

.booking-shell > *:not(.card-inner-glow-top) {
    position: relative;
    z-index: 2;
}

/* Step Bar Header - Transparent Container revealing Orange Card Background */
.step-bar {
    width: 100%;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    height: 50px;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    margin: 0;
    z-index: 3;
}

/* Hide separate orange slider & glow */
.step-slider,
.step-slider-glow {
    display: none !important;
}

/* Temporary Moving Black Card Cover for FLIP Transition */
.moving-step-cover {
    position: absolute;
    top: 4px;
    height: 42px;
    border-radius: 18px;
    background: #050506;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
    z-index: 4;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.step-item.no-transition {
    transition: none !important;
}

.step-item.sliding-source {
    background: transparent !important;
    border-color: transparent !important;
}

/* Individual Inactive Step Cards - Black Rounded Cards (#050506) */
.step-item {
    flex: 1;
    height: 42px;
    background: #050506 !important;
    color: #777b84 !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px !important;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 5;
    transition:
        background-color 0.4s ease,
        color 0.35s ease,
        border-radius 0.4s ease,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-item i {
    font-size: 14px;
    color: #777b84 !important;
    transition: color 0.35s ease;
}

.step-item:hover:not(.active) {
    color: #a0a4b0 !important;
    background: #0e0e12 !important;
}

.step-item:hover:not(.active) i {
    color: #a0a4b0 !important;
}

/* Active Step - Removes Black Background to Reveal Orange Booking-Card Background */
.step-item.active {
    background: transparent !important;
    border-color: transparent !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    transform: translateY(1px);
    z-index: 10 !important;
    border-radius: 14px !important;
}

.step-item.active i {
    color: #ffffff !important;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

/* Inactive Black Step directly BESIDE Active Step Curves Outward */
.step-item:has(+ .step-item.active) {
    border-top-right-radius: 22px !important;
    border-bottom-right-radius: 22px !important;
}

.step-item.active + .step-item {
    border-top-left-radius: 22px !important;
    border-bottom-left-radius: 22px !important;
}

/* Step 1 Active - Outer Top-Left Aligned with Card Radius */
.step-item:first-child.active {
    border-top-left-radius: 24px !important;
}

/* Step 5 Active - Outer Top-Right Aligned with Card Radius */
.step-item:last-child.active {
    border-top-right-radius: 24px !important;
}

.step-item.completed {
    color: #ffaa00 !important;
    font-weight: 600 !important;
}

.step-item.completed i {
    color: #ff8000 !important;
    text-shadow: 0 0 8px rgba(255, 128, 0, 0.4);
}

@media (max-width: 550px) {
    .step-item span {
        display: none; /* Hide short labels on mobile to ensure icon alignment */
    }
    .step-item i {
        font-size: 16px;
    }
}

/* Attached Main Fixed-Size Booking Card */
.main-booking-card {
    width: 100%;
    height: 620px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    position: relative;
    overflow: hidden;
    margin: 0;
}

@media (max-height: 800px) {
    .main-booking-card {
        height: 570px;
    }
}

@media (max-width: 600px) {
    .main-booking-card {
        height: 560px;
    }
    .standalone-title {
        font-size: 26px;
    }
    .standalone-sub {
        font-size: 12px;
    }
}

/* Standardized 3-Part Step Layout inside Fixed Card */
.booking-step {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px 32px;
    opacity: 0;
    transform: translateX(35px);
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    will-change: transform, opacity;
}

.booking-step.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.slide-out-left {
    opacity: 0 !important;
    transform: translateX(-35px) !important;
    pointer-events: none !important;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(35px);
}

.slide-out-right {
    opacity: 0 !important;
    transform: translateX(35px) !important;
    pointer-events: none !important;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-35px);
}

/* Fixed 3-Part Internal Sections */
.step-header {
    flex-shrink: 0;
    text-align: center;
    margin-bottom: 16px;
}

.step-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #09090b !important;
    margin-bottom: 4px;
}

.step-card-sub {
    font-size: 13px;
    color: rgba(9, 9, 11, 0.72) !important;
    font-weight: 500;
}

.step-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
}

/* Subtle Internal Custom Scrollbar */
.step-content::-webkit-scrollbar {
    width: 5px;
}

.step-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.step-content::-webkit-scrollbar-thumb {
    background: rgba(255, 87, 34, 0.3);
    border-radius: 10px;
}

.step-actions {
    flex-shrink: 0;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

/* Step 1: Clean Dark Calendar Panel (100% Responsive Grid, Proportional Date Cells) */
.dark-calendar-panel {
    background: #000000 !important;
    border: 1px solid rgba(255, 87, 34, 0.35) !important;
    border-radius: 18px;
    padding: 14px 16px;
    margin: 0 auto;
    width: 100%;
    max-width: 520px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.1);
    overflow: hidden !important;
    position: relative;
}

/* Calendar Live Loading Overlay & Shimmer */
.dark-cal-loader {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    border-radius: 18px;
}

.dark-calendar-panel.is-loading .dark-cal-loader {
    opacity: 1;
    pointer-events: auto;
}

.cal-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 87, 34, 0.25);
    border-top-color: #ff5722;
    border-right-color: #ffaa00;
    border-radius: 50%;
    animation: calSpin 0.75s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

@keyframes calSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cal-loader-text {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.4px;
}

.dark-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 4px;
    flex-shrink: 0;
}

.dark-cal-month-year {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.dark-cal-arrow {
    background: transparent;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.7);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s ease;
}

.dark-cal-arrow:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.dark-cal-arrow:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.dark-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
    flex-shrink: 0;
}

.dark-cal-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 4px;
    flex: 1;
    min-height: 0;
    align-items: center;
    justify-items: center;
    width: 100%;
}

.dark-day-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    border-radius: 10px !important;
    cursor: pointer;
    transition: all 0.2s var(--transition-smooth);
    margin: 0 auto;
    width: 100%;
    max-width: 38px;
    aspect-ratio: 1 / 1 !important;
    border: 1px solid transparent;
}

.dark-day-cell:hover:not(.disabled):not(.empty) {
    background: rgba(255, 87, 34, 0.2);
    border-color: rgba(255, 87, 34, 0.5);
    color: #ffffff;
    border-radius: 10px !important;
}

.dark-day-cell.selected {
    background: var(--ember-gradient) !important;
    border-color: var(--ember-orange) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 0 14px rgba(255, 106, 47, 0.6) !important;
}

.dark-day-cell.disabled {
    color: rgba(255, 255, 255, 0.25);
    text-decoration: line-through;
    opacity: 0.35;
    cursor: not-allowed;
}

.dark-day-cell.sunday-off {
    color: rgba(255, 255, 255, 0.25);
    opacity: 0.35;
    cursor: not-allowed;
}

.dark-day-cell.empty {
    opacity: 0;
    cursor: default;
}

/* --- STEP 2: TOP SELECTED-DATE FEATURE CARD (REFERENCE UI INSPIRED) --- */
.top-date-feature-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid rgba(255, 87, 34, 0.3);
    border-radius: 16px;
    padding: 10px 14px;
    margin-bottom: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.date-card-left-panel {
    flex: 0 0 150px;
    background: linear-gradient(180deg, rgba(8, 8, 12, 0.95) 0%, rgba(255, 87, 34, 0.25) 100%);
    border: 1px solid rgba(255, 87, 34, 0.35);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 85px;
    box-shadow: inset 0 0 15px rgba(255, 87, 34, 0.15), 0 4px 15px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.date-card-left-panel::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 40px;
    background: radial-gradient(ellipse at 50% 100%, rgba(255, 87, 34, 0.4) 0%, transparent 75%);
    pointer-events: none;
}

.date-panel-month-day {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.date-panel-weekday {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
}

.date-panel-subtitle {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 170, 0, 0.95);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
}

.date-card-right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 8px;
}

.date-panel-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: rgba(255, 170, 0, 0.9);
    text-transform: uppercase;
}

.date-panel-full-date {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.date-panel-helper {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 550px) {
    .top-date-feature-card {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .date-card-left-panel {
        flex: auto;
        min-height: auto;
    }
}

/* --- STEP 2: TIME-SLOT BUTTONS (4x4 GRID LAYOUT WITH FLUID HEIGHT SCALING) --- */
.time-range-grid {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(44px, 1fr));
    gap: clamp(6px, 1vh, 12px);
    max-height: none !important;
    overflow: visible !important;
    padding: 0;
}

/* Default Black Card Slot Button State */
.time-range-btn {
    background: #08080c !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 87, 34, 0.25) !important;
    border-radius: 12px !important;
    min-height: 44px;
    padding: clamp(8px, 1.2vh, 14px) 6px !important;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(11.5px, 0.85vw, 13.5px) !important;
    line-height: 1.2;
    font-weight: 600 !important;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Hover State - Subtle Lift & Brighter Outline */
.time-range-btn:hover:not(.disabled):not(.selected) {
    transform: translateY(-2px);
    border-color: rgba(255, 170, 0, 0.6) !important;
    box-shadow: 0 6px 18px rgba(255, 170, 0, 0.15), 0 0 10px rgba(255, 87, 34, 0.1);
    background: #0e0e14 !important;
}

/* Selected State - Black Card with Glowing Ember Orange Accent Outline & Inner Glow */
.time-range-btn.selected {
    background: rgba(255, 87, 34, 0.15) !important;
    border-color: #ff5722 !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.4), inset 0 0 10px rgba(255, 87, 34, 0.2);
    transform: translateY(-1px);
}

/* Disabled State - Darker Muted Black Card */
.time-range-btn.disabled {
    background: rgba(10, 10, 12, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.25) !important;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

/* Step 3: Desktop 2-Column Grid Layout with Fluid Sizing */
.details-form {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: min-content;
    align-content: start;
    gap: clamp(10px, 1.4vh, 16px) 14px;
}

.field-full {
    grid-column: 1 / -1;
}

.form-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-field-group label {
    font-size: clamp(12px, 0.82vw, 14px);
    font-weight: 700;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.form-field-group label .req {
    color: #ff6a2f !important;
}

.card-input {
    width: 100%;
    background: rgba(8, 8, 12, 0.92) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 106, 47, 0.55) !important;
    border-radius: 12px;
    min-height: clamp(40px, 4.5vh, 48px);
    padding: 8px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(12.5px, 0.9vw, 14.5px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.card-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: 400;
}

.card-input:hover {
    border-color: #ff7a32 !important;
    background: rgba(12, 12, 18, 0.96) !important;
    box-shadow: 0 0 12px rgba(255, 106, 47, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.card-input:focus {
    outline: none !important;
    background: #000000 !important;
    border-color: #ff6a2f !important;
    box-shadow: 0 0 0 3px rgba(255, 106, 47, 0.35), inset 0 0 8px rgba(255, 106, 47, 0.2) !important;
}

.card-input:not(:placeholder-shown) {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: rgba(255, 106, 47, 0.7) !important;
}

/* Chrome / Safari / Edge Dark Autofill Override */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
    -webkit-box-shadow: 0 0 0 1000px #080809 inset !important;
    box-shadow: 0 0 0 1000px #080809 inset !important;
    border: 1px solid rgba(255, 106, 47, 0.65) !important;
    transition: background-color 9999s ease-out 0s;
}

textarea.card-input {
    min-height: clamp(50px, 6.5vh, 70px);
    resize: none;
}

#otherReasonFieldGroup textarea.card-input {
    min-height: clamp(44px, 5vh, 58px);
}

.card-input.is-invalid,
.custom-select-trigger.is-invalid {
    border-color: #ff3300 !important;
    box-shadow: 0 0 0 3px rgba(255, 51, 0, 0.3), 0 0 12px rgba(255, 51, 0, 0.2) !important;
    animation: shakeField 0.3s ease;
}

@keyframes shakeField {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.field-error {
    font-size: 11px;
    font-weight: 500;
    color: #ff4444;
    display: none;
    margin-top: 2px;
}

.field-helper {
    font-size: clamp(11px, 0.76vw, 13px);
    color: var(--text-muted);
    line-height: 1.3;
    margin-top: 1px;
}

/* Visually Hidden Native Select */
.visually-hidden-select {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* --- CUSTOM REASON DROPDOWN STYLES --- */
.custom-select-container {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
    user-select: none;
}

.custom-select-trigger.active {
    border-color: #ff6a2f !important;
    box-shadow: 0 0 0 3px rgba(255, 106, 47, 0.12) !important;
    background: #080809 !important;
}

.custom-select-value {
    color: #ffffff;
    font-weight: 500;
}

.custom-select-value.placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.custom-select-arrow {
    font-size: 11px;
    color: rgba(255, 106, 47, 0.85);
    transition: transform 0.25s ease;
}

.custom-select-trigger.active .custom-select-arrow {
    transform: rotate(180deg);
    color: #ff6a2f;
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 50;
    padding: 6px;
    background: rgba(7, 7, 9, 0.98);
    border: 1px solid rgba(255, 106, 47, 0.55);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 15px rgba(255, 106, 47, 0.15);
    max-height: 210px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: top;
}

.custom-select-menu.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Slim Custom Scrollbar for Dropdown Menu */
.custom-select-menu::-webkit-scrollbar {
    width: 4px;
}
.custom-select-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
.custom-select-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 106, 47, 0.4);
    border-radius: 10px;
}

.custom-select-option {
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.custom-select-option:hover,
.custom-select-option.keyboard-active {
    color: #ffffff;
    background: rgba(255, 106, 47, 0.14);
}

.custom-select-option.selected {
    color: #ffffff;
    font-weight: 600;
    background: linear-gradient(
        90deg,
        rgba(255, 106, 47, 0.25),
        rgba(255, 106, 47, 0.08)
    );
}

/* --- STEP 4: OTP ANIMATED JOURNEY (NO GREEN - PURE EMBER ORANGE & CHARCOAL) --- */
.otp-journey-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

/* Stage 1: Loading Progress Line */
.otp-loading-stage {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 30px 20px;
    text-align: center;
}

.otp-loading-status {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.otp-progress-track {
    width: 80%;
    max-width: 320px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.otp-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff5722 0%, #ffaa00 100%);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 106, 47, 0.8);
    transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Stage 2: 6 OTP Input Boxes */
.otp-boxes-stage {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: fadeIn 0.4s ease forwards;
}

.otp-target-phone-bar {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}

.otp-target-phone-bar strong {
    color: #ffffff;
}

.otp-edit-phone-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 106, 47, 0.3);
    color: rgba(255, 255, 255, 0.85);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.otp-edit-phone-btn:hover {
    background: rgba(255, 106, 47, 0.15);
    color: #ffffff;
}

.demo-otp-pill {
    background: rgba(255, 106, 47, 0.12);
    border: 1px solid rgba(255, 106, 47, 0.3);
    color: rgba(255, 255, 255, 0.85);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.demo-otp-pill strong {
    color: #ffaa00;
    font-family: monospace;
    letter-spacing: 1px;
}

/* 6 Centered Digit Boxes */
.otp-box-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 8px 0;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.otp-digit {
    width: 48px;
    height: 56px;
    background: rgba(5, 5, 7, 0.95) !important;
    border: 1px solid rgba(255, 106, 47, 0.35) !important;
    border-radius: 12px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff !important;
    caret-color: #ff6a2f;
    opacity: 0;
    transform: scale(0.25);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.35s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease;
    will-change: transform, opacity;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Staggered Initial Offsets from Center */
.otp-box-row .otp-digit:nth-child(1) { transform: scale(0.2) translateX(145px); }
.otp-box-row .otp-digit:nth-child(2) { transform: scale(0.2) translateX(87px); }
.otp-box-row .otp-digit:nth-child(3) { transform: scale(0.2) translateX(29px); }
.otp-box-row .otp-digit:nth-child(4) { transform: scale(0.2) translateX(-29px); }
.otp-box-row .otp-digit:nth-child(5) { transform: scale(0.2) translateX(-87px); }
.otp-box-row .otp-digit:nth-child(6) { transform: scale(0.2) translateX(-145px); }

/* Emergence into Aligned Positions */
.otp-box-row .otp-digit.emerged {
    opacity: 1;
    transform: scale(1) translateX(0) !important;
}

.otp-digit:focus {
    outline: none !important;
    border-color: #ff6a2f !important;
    box-shadow: 0 0 0 3px rgba(255, 106, 47, 0.25), 0 0 15px rgba(255, 106, 47, 0.3) !important;
    background: #080809 !important;
}

.otp-digit.pulse {
    transform: scale(1.08) !important;
    border-color: #ffaa00 !important;
}

.otp-digit.seq-glow {
    border-color: #ffaa00 !important;
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.6) !important;
}

/* --- TOP-STARTING ROTATING BORDER LOADING RING ANIMATION --- */
@property --otp-border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes spinOtpBorder {
    0% { --otp-border-angle: 0deg; }
    100% { --otp-border-angle: 360deg; }
}

.otp-digit.rotating-border-active {
    border: 2px solid transparent !important;
    background: 
        linear-gradient(#050507, #050507) padding-box,
        conic-gradient(from var(--otp-border-angle, 0deg) at 50% 50%, #ff5722 0%, #ffaa00 30%, rgba(255, 87, 34, 0.15) 60%, #ff5722 100%) border-box !important;
    animation: spinOtpBorder 0.45s linear infinite !important;
    box-shadow: 0 0 18px rgba(255, 87, 34, 0.7), inset 0 0 10px rgba(255, 170, 0, 0.4) !important;
    color: #ffffff !important;
}

/* --- INCORRECT OTP ERROR ANIMATION (BOX SHAKE + NUMBER THROW & JUMP) --- */
.otp-box-row.shake-error {
    animation: otpRowShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes otpRowShake {
    0%, 100% { transform: translateX(0); }
    15%, 75% { transform: translateX(-14px); }
    30%, 60% { transform: translateX(14px); }
    45% { transform: translateX(-7px); }
}

.otp-digit.is-invalid {
    border-color: #ff2200 !important;
    box-shadow: 0 0 15px rgba(255, 34, 0, 0.5) !important;
}

/* Flying Number Rejection Particles with Jump-Up & Gravity Fall-Down Arc */
.otp-flying-number-particle {
    position: fixed;
    z-index: 99999;
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 26px;
    color: #ff2200;
    text-shadow: 0 0 15px #ff2200, 0 0 30px #ff5722, 0 0 45px rgba(255, 34, 0, 0.85);
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: flyOutReject 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    will-change: transform, opacity;
}

@keyframes flyOutReject {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
    32% {
        /* Jump high up into the air */
        transform: translate(calc(-50% + var(--fly-dx, 0px) * 0.5), calc(-50% - 65px)) scale(1.5) rotate(var(--fly-rot, 20deg));
        opacity: 1;
    }
    70% {
        /* Fall down past the boxes towards the bottom */
        transform: translate(calc(-50% + var(--fly-dx, 0px) * 1.1), calc(-50% + 40px)) scale(0.9) rotate(calc(var(--fly-rot, 20deg) * 1.8));
        opacity: 0.6;
    }
    100% {
        /* Fall all the way down below and fade out completely */
        transform: translate(calc(-50% + var(--fly-dx, 0px) * 1.5), calc(-50% + 105px)) scale(0.3) rotate(calc(var(--fly-rot, 20deg) * 2.5));
        opacity: 0;
    }
}

/* --- INWARD REVERSE COLLAPSE ANIMATION --- */
.otp-box-row.collapsing-inward .otp-digit:nth-child(1) { transform: translateX(145px) scale(0.9) !important; opacity: 0.95; }
.otp-box-row.collapsing-inward .otp-digit:nth-child(2) { transform: translateX(87px) scale(0.92) !important; opacity: 0.95; }
.otp-box-row.collapsing-inward .otp-digit:nth-child(3) { transform: translateX(29px) scale(0.95) !important; }
.otp-box-row.collapsing-inward .otp-digit:nth-child(4) { transform: translateX(-29px) scale(0.95) !important; }
.otp-box-row.collapsing-inward .otp-digit:nth-child(5) { transform: translateX(-87px) scale(0.92) !important; opacity: 0.95; }
.otp-box-row.collapsing-inward .otp-digit:nth-child(6) { transform: translateX(-145px) scale(0.9) !important; opacity: 0.95; }

/* Shrink combined shape into center point */
.otp-box-row.shrink-center {
    transform: scale(0.1) !important;
    opacity: 0 !important;
}

/* Resend Controls - Clean Orange Text Button */
.otp-resend-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.otp-resend-btn {
    background: transparent !important;
    border: none !important;
    color: #ff6a2f !important;
    font-family: 'Poppins', sans-serif;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer;
    padding: 4px 8px !important;
    border-radius: 6px;
    transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 0 10px rgba(255, 106, 47, 0.2);
}

.otp-resend-btn:hover:not(:disabled) {
    color: #ffaa00 !important;
    transform: translateY(-1px);
    text-shadow: 0 0 15px rgba(255, 170, 0, 0.4);
}

.otp-resend-btn:disabled {
    color: rgba(255, 255, 255, 0.3) !important;
    cursor: not-allowed;
    text-shadow: none;
}

.otp-timer-badge {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* Stage 3: Success Icon Stage */
.otp-success-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.otp-success-icon-box {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.2) 0%, rgba(255, 170, 0, 0.1) 100%);
    border: 2px solid #ff6a2f;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(255, 106, 47, 0.5);
}

.otp-success-icon-box i {
    font-size: 34px;
    color: #ff6a2f;
}

.otp-success-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.otp-success-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

@keyframes successPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- STEP 5: ZERO-SCROLL CONFIRMATION LAYOUT & BLACK REFERENCE CARD --- */
.confirmation-layout {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 8px;
    overflow: hidden !important;
}

.compact-conf-header {
    text-align: center;
    margin-bottom: 2px;
}

.compact-conf-header .conf-check-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 87, 34, 0.15);
    border: 2px solid #ff6a2f;
    color: #ff6a2f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 4px;
    box-shadow: 0 0 15px rgba(255, 106, 47, 0.35);
}

.compact-conf-header .step-card-title {
    font-size: 18px !important;
    margin-bottom: 2px !important;
}

.compact-conf-header .step-card-sub {
    font-size: 12px !important;
    margin-bottom: 4px !important;
    line-height: 1.25;
}

.conf-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #000000;
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.5);
    border-radius: 50px;
    padding: 2px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-dot {
    width: 5px;
    height: 5px;
    background: #ffaa00;
    border-radius: 50%;
    box-shadow: 0 0 6px #ffaa00;
    display: inline-block;
}

/* Premium Black Reference Card */
.reference-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 16px;
    background: rgba(4, 4, 6, 0.96);
    border: 1px solid rgba(255, 106, 47, 0.55);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.reference-label {
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.reference-value {
    color: #ff7a32;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: monospace;
}

/* Dark Charcoal Copy Button */
.compact-copy-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 106, 47, 0.4);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.compact-copy-btn:hover {
    background: rgba(255, 106, 47, 0.2);
    border-color: #ff6a2f;
    color: #ffffff;
}

.compact-copy-btn.copied {
    border-color: #ffaa00;
    color: #ffaa00;
    background: rgba(255, 170, 0, 0.1);
}

/* Zero Scroll Details Area */
.zero-scroll-content {
    min-height: 0;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}

.confirmation-details {
    width: 100%;
    background: #000000 !important;
    border: 1px solid rgba(255, 87, 34, 0.35) !important;
    border-radius: 14px;
    padding: 12px 16px;
    text-align: left;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 18px;
    align-content: start;
    flex: 1;
}

.sum-field-tag {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1px;
}

.sum-field-val {
    font-size: 12.5px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
    word-break: break-word;
}

/* 4 Action Buttons Row */
.conf-actions-row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    width: 100%;
    margin-top: 4px;
    flex-shrink: 0;
}

.card-btn-dark-outline {
    background: #000000 !important;
    border: 1px solid rgba(255, 106, 47, 0.35) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    height: 38px !important;
    padding: 0 10px !important;
    border-radius: 50px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: nowrap;
    transition: all 0.25s ease !important;
}

.card-btn-dark-outline:hover {
    background: rgba(255, 106, 47, 0.15) !important;
    border-color: #ff6a2f !important;
    transform: translateY(-2px);
    text-decoration: none !important;
}

@media (max-width: 640px) {
    .conf-actions-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (max-width: 500px) {
    .full-booking-summary-card {
        grid-template-columns: 1fr;
    }
}

.sum-field-tag {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.sum-field-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Card Buttons */
.card-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 11px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-btn-back {
    min-width: 125px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
}

.card-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.card-btn-primary {
    background: var(--ember-gradient);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(255, 87, 34, 0.35);
}

.card-btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.45);
    transform: translateY(-2px);
}

.card-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ==========================================================================
   EDGE-TO-EDGE FULL-HEIGHT MOBILE APPOINTMENT SYSTEM (FLUSH TO BOTTOM)
   ========================================================================== */

@media (max-width: 900px) {
    html,
    body {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: var(--ember-gradient) !important;
    }

    .standalone-page {
        width: 100% !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        background: var(--ember-gradient) !important;
    }

    .standalone-container {
        width: 100% !important;
        height: 100% !important;
        flex: 1 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .booking-shell,
    .main-booking-card,
    .standalone-card {
        width: 100% !important;
        height: 100% !important;
        flex: 1 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
    }

    /* Header Positioning (Slightly Lower Controlled Spacing) */
    .standalone-brand {
        flex: 0 0 auto;
        padding-top: 6px;
        padding-bottom: 2px;
        margin: 0;
        text-align: center;
        background: transparent;
    }

    .brand-logo {
        width: 26px;
        height: auto;
    }

    .standalone-title {
        font-size: 15.5px !important;
        margin-top: 1px;
        color: #ffffff;
    }

    .standalone-subtitle {
        font-size: 10px !important;
        line-height: 1.2;
        max-width: 95%;
        margin: 1px auto 0;
        color: rgba(255, 255, 255, 0.82);
    }

    /* Step Navigation Directly on Orange Background */
    .step-bar {
        padding: 2px 10px;
        margin-top: 2px;
        margin-bottom: 4px;
        border-radius: 0;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        flex-shrink: 0;
    }

    .step-item {
        padding: 5px 0;
        border-radius: 10px;
        justify-content: center;
    }

    .step-item:not(.active) {
        background: #050506 !important;
    }

    .step-icon-box {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .step-label {
        display: none !important;
    }

    /* Full-Height Step Layout Stretching Flush to Bottom */
    .booking-step {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        flex: 1 !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        padding: 4px 12px 64px !important;
        margin: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .step-header {
        margin-bottom: 4px;
        flex-shrink: 0;
    }

    .step-card-title {
        font-size: 15.5px !important;
        color: #000000 !important;
        font-weight: 800 !important;
        margin-bottom: 2px !important;
        text-shadow: none !important;
    }

    .step-card-sub {
        font-size: 10.5px !important;
        color: rgba(0, 0, 0, 0.88) !important;
        font-weight: 600 !important;
        line-height: 1.2;
    }

    .step-content {
        flex: 1 !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .dark-calendar-panel {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        padding: 8px 10px !important;
        border-radius: 14px !important;
        margin: 0 !important;
    }

    .dark-cal-days-grid {
        display: grid !important;
        grid-template-columns: repeat(7, 1fr) !important;
        grid-template-rows: repeat(6, 1fr) !important;
        gap: 3px !important;
        flex: 1 !important;
        min-height: 0 !important;
        align-items: center !important;
        justify-items: center !important;
        width: 100% !important;
    }

    .dark-day-cell {
        width: 100% !important;
        max-width: 36px !important;
        aspect-ratio: 1 / 1 !important;
        font-size: 12.5px !important;
        border-radius: 9px !important;
    }

    /* Step 2 Mobile Layout (Bigger Time Buttons + Zero Overlap Dock Clearance) */
    #step-content-2 {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        height: 100% !important;
        flex: 1 !important;
        padding-bottom: 64px !important;
    }

    #step-content-2 .step-content {
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
        overflow: hidden !important;
        flex: 1 !important;
    }

    .top-date-feature-card {
        padding: 4px 8px;
        margin-bottom: 4px;
        gap: 6px;
        border-radius: 10px;
        background: #000000;
        border: 1px solid rgba(255, 106, 47, 0.35);
        flex-shrink: 0;
    }

    .date-card-left-panel {
        min-height: 40px;
        padding: 3px 6px;
        flex: 0 0 84px;
        border-radius: 8px;
    }

    .date-panel-month-day {
        font-size: 14px;
    }

    .date-panel-weekday {
        font-size: 9px;
    }

    .date-panel-full-date {
        font-size: 12px;
    }

    .date-panel-helper {
        font-size: 9px;
    }

    /* 2 Columns x 8 Rows Time Grid - BIGGER & 100% CLICKABLE BUTTONS */
    .time-range-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: repeat(8, minmax(0, 1fr)) !important;
        gap: 4px !important;
        flex: 1 !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .time-range-btn {
        min-height: 30px !important;
        height: 100% !important;
        padding: 4px 6px !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #08080c !important;
        border: 1px solid rgba(255, 106, 47, 0.3) !important;
        color: #ffffff !important;
        pointer-events: auto !important;
        z-index: 5 !important;
    }

    .time-range-btn.selected {
        background: var(--ember-gradient) !important;
        border-color: #ff6a2f !important;
        color: #ffffff !important;
        box-shadow: 0 0 14px rgba(255, 106, 47, 0.5) !important;
    }

    /* Bottom Action Area (PINNED TO ABSOLUTE BOTTOM 0 OF THE SCREEN ALL THE TIME) */
    .step-actions {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        border-radius: 0 !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        padding-top: 10px !important;
        padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
        background: #040406 !important;
        border-top: 1px solid rgba(255, 106, 47, 0.3) !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.8) !important;
        z-index: 100 !important;
    }

    .conf-actions-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    .card-btn-dark-outline,
    .card-btn-primary {
        height: 36px !important;
        font-size: 11px !important;
        padding: 0 6px !important;
    }

    /* Step 3: Form Controls High-Contrast Single-Column Ember Theme */
    .details-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }

    .form-field-group {
        width: 100% !important;
    }

    .form-field-group label {
        font-size: 11.5px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    }

    .card-input,
    .custom-select-trigger {
        min-height: 38px !important;
        padding: 6px 10px !important;
        font-size: 12px !important;
        border-radius: 10px !important;
        border: 1.5px solid rgba(255, 106, 47, 0.55) !important;
        background: rgba(6, 6, 10, 0.95) !important;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        color: #ffffff !important;
    }

    .card-input::placeholder,
    .custom-select-value.placeholder {
        color: rgba(255, 255, 255, 0.6) !important;
    }

    .card-input:focus,
    .custom-select-container.open .custom-select-trigger {
        border-color: #ff6a2f !important;
        background: #000000 !important;
        box-shadow: 0 0 0 3px rgba(255, 106, 47, 0.35), inset 0 0 8px rgba(255, 106, 47, 0.2) !important;
    }

    textarea.card-input {
        min-height: 44px !important;
        max-height: 56px !important;
    }

    /* Step 4: OTP Boxes */
    .otp-digit {
        width: clamp(32px, 11vw, 42px);
        height: clamp(38px, 13vw, 46px);
        font-size: 16px;
        border-radius: 8px;
    }

    .otp-box-row {
        gap: 4px;
    }
}

/* --- DEDICATED GLASSY APPOINTMENT STATUS MODAL --- */
.glass-status-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
    animation: glassFadeIn 0.4s var(--transition-smooth);
}

@keyframes glassFadeIn {
    0% { opacity: 0; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}

.glass-status-card {
    background: #060608 !important;
    border: 1px solid rgba(255, 80, 0, 0.5) !important;
    border-radius: 28px;
    padding: 24px 28px;
    width: 100%;
    max-width: 580px;
    max-height: 96vh;
    overflow: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 90, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    isolation: isolate;
}

.glass-status-card::-webkit-scrollbar {
    display: none !important;
}

.glass-status-card::before {
    content: '';
    display: block;
    position: absolute;
    top: -200px;
    right: -200px;
    bottom: -200px;
    left: -200px;
    background: conic-gradient(
        from 180deg at 50% 50%,
        #000000 90deg,
        #1a0a00 120deg,
        #cc3300 150deg,
        #ffaa00 180deg,
        #ff5a00 210deg,
        #1a0a00 240deg,
        #000000 270deg,
        #000000 360deg
    );
    filter: blur(55px) brightness(1.25);
    opacity: 0.95;
    pointer-events: none;
    z-index: 1;
}

.glass-status-card > * {
    position: relative;
    z-index: 2;
}

.glass-status-brand {
    margin-bottom: 8px;
}

.glass-brand-logo {
    height: 36px;
    object-fit: contain;
}

.glass-status-header {
    text-align: center;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glass-status-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.12);
    border: 1.5px solid #000000;
    color: #000000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.glass-status-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #000000 !important;
    margin-bottom: 4px;
}

.glass-status-subtitle {
    font-size: 12.5px;
    font-weight: 600;
    color: #000000 !important;
    opacity: 0.85;
    margin-bottom: 8px;
}

.glass-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 30px;
    background: rgba(255, 87, 34, 0.15);
    border: 1px solid rgba(255, 87, 34, 0.4);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffffff;
}

.glass-ref-card {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 87, 34, 0.45);
    border-radius: 12px;
    padding: 10px 18px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    box-shadow: inset 0 0 15px rgba(255, 87, 34, 0.15), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.glass-ref-label {
    font-size: 9.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.glass-ref-code {
    font-family: monospace;
    font-size: 15px;
    font-weight: 700;
    color: #ff5722;
    letter-spacing: 0.5px;
}

.glass-copy-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.glass-copy-btn:hover {
    background: rgba(255, 87, 34, 0.2);
    border-color: #ff5722;
    color: #ffffff;
}

.glass-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
    width: 100%;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 16px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.glass-info-item {
    display: flex;
    flex-direction: column;
}

.glass-info-item.full-span {
    grid-column: 1 / -1;
}

.glass-info-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 2px;
}

.glass-info-value {
    font-size: 12.5px;
    font-weight: 600;
    color: #ffffff;
    word-break: break-word;
}

.glass-status-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.glass-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s var(--transition-smooth);
}

.glass-btn-primary {
    background: linear-gradient(135deg, #ff5722 0%, #ff8a50 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.35);
}

.glass-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5);
}

.glass-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.glass-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}
