/* =============================================================================
   GLOBAL RESET
============================================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =============================================================================
   MOBILE BASELINE — iOS / Android smooth-transition touches
   - text-size-adjust prevents iOS rotation font-size auto-grow
   - tap-highlight removes the blue flash on tap (iOS) / grey (Android)
   - touch-action: manipulation removes the 300ms tap delay on iOS
   - overscroll-behavior stops the whole page bouncing when a modal scrolls
============================================================================= */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    -webkit-tap-highlight-color: transparent;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
    /* Respect iPhone notch + home indicator */
    padding-left:  env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

button,
a,
input[type="submit"],
input[type="button"],
.slot-card,
.day-card {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* =============================================================================
   LAYOUT & CORE
============================================================================= */
.dashboard-bg {
    background-color: #ffa42c;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: black;
    line-height: 1.5;
}

.dashboard-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.welcome-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.welcome-header h1 {
    color: black;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.welcome-header p {
    color: #64748b;
}

/* =============================================================================
   NAVIGATION
============================================================================= */
.user-nav {
    background: black;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 75px;
}

.user-nav button {
    background: #ee8d10;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s;
}

.user-nav button:hover {
    background: #2563eb;
}

.nav-prices {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.price-item span {
    color: #2ecc71;
    margin-left: 2px;
}

/* =============================================================================
   HERO SECTION
============================================================================= */
.hero-wrapper {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 750px;
    overflow: hidden;
}

.hero-wrapper .main-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-wrapper::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.inner-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero-info-box {
    background: #ee8d10;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
    top: 60px;
}

.hero-info-box h3 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6;
}

/* =============================================================================
   TIME SLOTS
============================================================================= */
.time-slots-section {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    margin: 2rem auto;
    max-width: 1000px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.slots-container {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
    flex-wrap: wrap;
    min-height: 60px;
}

.slot-card {
    background: #ffa42c;
    border: 2px solid #b06708;
    padding: 12px 24px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.slot-card:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.slot-card.selected {
    background: #3b82f6;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* Skeleton loaders for slots while fetching */
.slot-skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 10px;
    height: 46px;
    width: 160px;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =============================================================================
   DAY SELECTION
============================================================================= */
.days-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.days-container::-webkit-scrollbar {
    display: none;
}

.day-card {
    min-width: 75px;
    height: 90px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.day-card:focus-visible {
    outline: 3px solid #ee8d10;
    outline-offset: 2px;
}

.day-card .day-name {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: bold;
}

.day-card .day-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
}

.day-card:hover {
    border-color: #ee8d10;
    transform: translateY(-3px);
    background: white;
}

.day-card.active {
    background: #ee8d10;
    border-color: #b06708;
}

.day-card.active .day-name,
.day-card.active .day-number {
    color: white;
}

#selected-day-label {
    font-size: 1.1rem;
    color: #1e293b;
    margin: 1.5rem 0 0.5rem 0;
    font-weight: 600;
}

#booking-section {
    scroll-margin-top: 80px;
}

.select-prompt {
    color: #94a3b8;
    text-align: center;
    width: 100%;
    padding: 20px;
    font-style: italic;
}

/* =============================================================================
   DATA GRID (LOCKED SECTIONS)
============================================================================= */
.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto 4rem auto;
}

.data-section {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    min-height: 220px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.data-section h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.locked {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    cursor: not-allowed;
    border: 1.5px solid #e2e8f0;
    filter: grayscale(0.4);
    opacity: 0.8;
}

.lock-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    border: 1px solid #e2e8f0;
}

.btn-add-locked {
    background: #cbd5e1;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    display: block;
    line-height: 1;
    text-align: center;
    transition: background 0.2s;
}

.btn-add-locked:hover {
    background: #64748b;
}

.empty-state {
    flex-grow: 1;
    margin-top: 1rem;
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: none;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

/* =============================================================================
   MODAL — display:flex for better centering
============================================================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    /* Use flex to center the modal-content */
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem 1rem;
}

/* JS sets display:flex when opening */
.modal[style*="display: flex"],
.modal[style*="display:flex"] {
    display: flex !important;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 520px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    margin: auto;
    animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Close buttons */
.close,
.close-btn {
    position: absolute;
    top: 16px; right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
    background: none;
    border: none;
    transition: color 0.2s;
    z-index: 10;
}

.close:hover,
.close-btn:hover {
    color: #1e293b;
}

/* =============================================================================
   PROGRESS STEPS (NEW)
============================================================================= */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
    padding-top: 0.5rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.step span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.step.active .step-circle {
    background: #ee8d10;
    color: white;
    box-shadow: 0 0 0 4px rgba(238, 141, 16, 0.2);
}

.step.active span {
    color: #ee8d10;
}

.step.completed .step-circle {
    background: #10b981;
    color: white;
}

.step.completed .step-circle::after {
    content: "✓";
}

.step.completed span {
    color: #10b981;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    min-width: 60px;
    margin: 0 12px;
    margin-bottom: 20px;
    transition: background 0.3s;
}

/* =============================================================================
   MODAL FORM
============================================================================= */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.modal-form label {
    font-size: 0.75rem;
    font-weight: bold;
    color: #475569;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

#modal-msg {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    min-height: 1.2em;
}

.modal-form select,
.modal-form input {
    padding: 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    background-color: white;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-form select:focus,
.modal-form input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-form select:disabled,
.modal-form input:disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Grid rows */
.modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Three-column row for Name / Email / Phone */
.modal-row.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

.modal-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#carPlate {
    text-transform: uppercase;
}

/* Vehicle fieldset — removes default browser border/padding */
.vehicle-fieldset {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin: 0;
}

.vehicle-fieldset legend {
    font-size: 0.75rem;
    font-weight: bold;
    color: #475569;
    text-transform: uppercase;
    padding: 0 6px;
}

/* =============================================================================
   INLINE FIELD VALIDATION (NEW)
============================================================================= */

/* Red border on invalid field */
.modal-form input.input-error,
.modal-form select.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Error text below field */
.field-error {
    display: none;
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 500;
    margin-top: 2px;
}

/* Hint text below field (service area note etc.) */
.field-hint {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* =============================================================================
   BUTTONS
============================================================================= */
.btn-login {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 1rem;
    transition: background 0.2s, transform 0.1s;
}

.btn-login:hover {
    background: #2563eb;
}

.btn-login:active {
    transform: scale(0.98);
}

.btn-login:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* =============================================================================
   SECURITY NOTE (NEW)
============================================================================= */
.security-note {
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 8px;
}

/* =============================================================================
   PROMO CODE
============================================================================= */
.promo-container {
    margin: 10px 0;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.promo-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.promo-inner label {
    margin: 0 !important;
    font-size: 0.85rem;
    white-space: nowrap;
    color: #475569;
}

.promo-inner input {
    margin: 0 !important;
    padding: 6px 10px !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: 1.5px solid #cbd5e1;
    background: white;
}

#promo-status {
    display: block;
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 4px;
    min-height: 1em;
}

/* =============================================================================
   PAYMENT SUMMARY
============================================================================= */
.payment-summary {
    margin: 10px 0 8px 0;
    font-size: 0.95rem;
    font-weight: bold;
    color: #1e293b;
    border-left: 3px solid #ee8d10;
    padding-left: 10px;
}

/* =============================================================================
   TERMS & DISCLOSURE
============================================================================= */
.terms-container {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
}

#termsCheckbox,
#disclosureCheckbox {
    width: 18px !important;
    height: 18px !important;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #ee8d10;
    flex-shrink: 0;
}

.terms-label {
    font-size: 0.85rem;
    color: #000000;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}

.terms-label a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Shake on terms error */
.terms-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    animation: shake 0.4s ease-in-out;
}

/* =============================================================================
   CANCEL SERVICE SECTION
============================================================================= */
.cancel-service-container {
    max-width: 1000px;
    margin: auto;
    text-align: center;
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.cancel-text {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.btn-cancel-service {
    display: inline-block;
    padding: 10px 20px;
    background-color: white;
    color: orange;
    border: 2px solid #b06708;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.10);
}

.btn-cancel-service:hover {
    background-color: #2563eb;
    color: white;
}

/* =============================================================================
   CANCEL MODAL
============================================================================= */
#cancelModal .modal-content {
    border-top: 6px solid #ef4444;
}

#cancelModal h2 {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: bold;
    color: #475569;
    text-transform: uppercase;
}

.form-group input {
    padding: 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    width: 100%;
    transition: all 0.2s ease;
}

.form-group input:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

#cancelCode {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center;
    font-size: 1.2rem;
    background-color: #f8fafc;
}

.confirm-btn,
#submitCancelBtn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    font-size: 1rem;
    transition: background 0.2s, transform 0.1s;
    margin-top: 10px;
}

.confirm-btn:hover,
#submitCancelBtn:hover {
    background: #dc2626;
}

.confirm-btn:active,
#submitCancelBtn:active {
    transform: scale(0.98);
}

.confirm-btn:disabled,
#submitCancelBtn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

#cancel-status {
    min-height: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#close-cancel-btn {
    position: absolute;
    right: 20px; top: 15px;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s;
}

#close-cancel-btn:hover {
    color: #1e293b;
}

/* =============================================================================
   FOOTER
============================================================================= */
.main-footer {
    background-color: black;
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.main-footer p {
    margin: 0;
    font-size: clamp(0.5rem, 1.5vw, 1.2rem);
    color: #cbd5e1;
    font-weight: 500;
}

.footer-link {
    color: #ee8d10;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: #ffa42c;
    text-shadow: 0 0 8px rgba(238, 141, 16, 0.4);
    text-decoration: underline;
}

/* =============================================================================
   ANIMATIONS
============================================================================= */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-5px); }
    75%       { transform: translateX(5px); }
}

/* =============================================================================
   RESPONSIVE — tablet & down
============================================================================= */
@media (max-width: 768px) {
    .data-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Keep nav as a single row; stack the two prices vertically in the
       middle so logo + prices + sign-in all fit inline. Buttons shrink
       slightly to make room. */
    .user-nav {
        padding: 0 0.75rem;
        gap: 8px;
    }

    .user-nav button {
        padding: 8px 14px;
        font-size: 0.9rem;
    }

    .nav-prices {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1px;
        font-size: 0.72rem;
        line-height: 1.25;
        color: white;
    }

    /* Hide the "Prices for [date]:" label — too long for the inline strip */
    .nav-prices h4 {
        display: none;
    }

    .price-item {
        white-space: nowrap;
    }

    .main-footer {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
        padding: 1.5rem 1rem;
        /* Bottom safe-area for gesture bar on iPhone */
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }

    .footer-item {
        justify-content: center;
    }

    /* Make the Phone / Email / Location text match the Privacy Policy and
       Refund links so they're equally readable on a phone. The inline
       <a style="color:inherit"> on the phone/email links picks up the
       parent <p> color automatically. */
    .main-footer p {
        color: white;
        font-size: 1rem;
        font-weight: 600;
    }

    .modal-row.three-col {
        grid-template-columns: 1fr;
    }

    .hero-wrapper {
        height: 560px;
    }

    .inner-photo {
        width: 220px;
        height: 220px;
    }
}

/* =============================================================================
   RESPONSIVE — large phones (iPhone Pro Max, Pixel XL, etc.)
============================================================================= */
@media (max-width: 650px) {
    .modal-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .modal {
        padding: 1rem 0.5rem;
    }

    .modal-content {
        margin: 0.5rem auto;
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }

    .cancel-service-container {
        margin: 20px auto;
        padding: 1rem;
    }

    #cancelModal .modal-content {
        width: 95%;
        padding: 1.5rem 1.25rem;
    }

    .hero-info-box h3 {
        font-size: 0.95rem;
    }

    .hero-wrapper {
        height: 500px;
    }

    .inner-photo {
        width: 180px;
        height: 180px;
        border-width: 3px;
    }

    .time-slots-section {
        margin: 1rem;
        padding: 1.25rem;
    }

    /* iOS Safari zooms into inputs with font-size < 16px on focus.
       Force ≥ 16px on form fields to stop the zoom + layout jump. */
    .modal-form select,
    .modal-form input,
    .form-group input {
        font-size: 16px;
    }

    /* Minimum 44×44 tap targets per Apple HIG / 48dp per Material */
    .btn-login,
    .btn-cancel-service,
    .confirm-btn,
    #submitCancelBtn,
    .btn-add-locked,
    .user-nav button {
        min-height: 44px;
    }

    .slot-card {
        min-height: 44px;
        padding: 12px 20px;
    }

    .day-card {
        min-width: 64px;
    }
}

/* =============================================================================
   RESPONSIVE — standard phones (iPhone 12/13/14/15, Pixel 6/7/8)
============================================================================= */
@media (max-width: 480px) {
    .progress-steps {
        gap: 0;
    }

    .step-line {
        min-width: 30px;
    }

    .step span {
        font-size: 0.6rem;
    }

    .user-nav {
        height: 64px;
        padding: 0 0.5rem;
        gap: 6px;
    }

    .user-nav button {
        padding: 7px 11px;
        font-size: 0.82rem;
    }

    .nav-prices {
        font-size: 0.66rem;
        gap: 1px;
    }

    .hero-wrapper {
        height: 460px;
    }

    .inner-photo {
        width: 150px;
        height: 150px;
    }

    .hero-info-box {
        padding: 1.25rem;
        top: 40px;
    }

    .hero-info-box h3 {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .modal-content {
        padding: 1.25rem 1rem;
        border-radius: 14px;
    }

    .vehicle-fieldset {
        padding: 0.75rem;
    }

    /* Stack vehicle make/model side-by-side gets too tight here */
    .vehicle-fieldset .modal-row {
        grid-template-columns: 1fr;
        gap: 1rem !important;
    }

    .terms-container {
        padding: 8px 10px;
        gap: 10px;
    }

    .terms-label {
        font-size: 0.8rem;
    }

    .footer-link,
    .main-footer p {
        font-size: 0.9rem;
    }
}

/* =============================================================================
   RESPONSIVE — small phones (iPhone SE, older Androids)
============================================================================= */
@media (max-width: 380px) {
    .user-nav {
        padding: 0 0.4rem;
        gap: 4px;
    }

    #nav-logo-btn,
    #nav-signin-btn {
        font-size: 0.74rem;
        padding: 6px 8px;
    }

    .nav-prices {
        font-size: 0.6rem;
    }

    .hero-wrapper {
        height: 420px;
    }

    .inner-photo {
        width: 130px;
        height: 130px;
    }

    .step span {
        display: none; /* Just show the numbered circles */
    }

    .modal-content {
        padding: 1rem 0.875rem;
    }

    .promo-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
}

/* =============================================================================
   LANDSCAPE PHONES — keep hero from eating the whole screen
============================================================================= */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-wrapper {
        height: 380px;
    }

    .inner-photo {
        width: 110px;
        height: 110px;
    }

    .hero-info-box {
        top: 20px;
        padding: 1rem;
    }
}
