/* App shell */
.car-ai-app {
    position: relative;
    z-index: 0;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
}

#wave-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none !important;
}

#wave-container canvas {
    display: block;
    pointer-events: none !important;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-greeting-rotator {
    min-height: 1.4em;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.hero-greeting-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    will-change: opacity, transform;
}

.hero-greeting-text.is-visible {
    opacity: 1 !important;
    transform: translateY(0);
}

.hero-greeting-text.is-fading {
    opacity: 0 !important;
    transform: translateY(-8px);
}

.car-ai-layer {
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

/* Modal overlay */
.car-ai-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.car-ai-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.reservation-modal {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem 1.75rem 1.5rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
    transform: translateY(24px) scale(0.98);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.car-ai-overlay.is-visible .reservation-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.35rem;
}

.modal-brand-logo {
    display: block;
    flex-shrink: 0;
    border-radius: 999px;
}

.modal-header-copy {
    min-width: 0;
}

.modal-title {
    margin: 0.15rem 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1f2a44;
}

.modal-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.45;
}

.reservation-form .form-group {
    margin-bottom: 0.75rem;
}

.form-group label:not(.consent-check) {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.input-field {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1f2a44;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.input-field::placeholder {
    color: #9ca3af;
}

.input-field:focus {
    outline: none;
    border-color: #ff8a3d;
    box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.15);
}

.form-group--phone {
    display: grid;
    grid-template-columns: minmax(7.5rem, 9.5rem) 1fr;
    gap: 0.6rem;
}

.phone-code-wrap {
    position: relative;
}

.input-field--code {
    font-weight: 500;
    cursor: pointer;
}

.phone-code-chevron {
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
    display: flex;
}

.form-consent {
    margin: 0.9rem 0 1.15rem;
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

.consent-check input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.consent-box {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex-shrink: 0;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    position: relative;
    transition: border-color 0.2s, background-color 0.2s;
}

.consent-check input:checked + .consent-box {
    background: #ff8a3d;
    border-color: #ff8a3d;
}

.consent-check input:checked + .consent-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent-check input:focus-visible + .consent-box {
    box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.2);
}

.consent-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #374151;
}

.consent-link {
    color: #ff8a3d;
    font-weight: 600;
    text-decoration: none;
}

.consent-link:hover {
    color: #e6762d;
    text-decoration: underline;
}

.btn {
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, opacity 0.2s, transform 0.2s;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary,
.btn-start {
    background: #ff8a3d;
    color: #fff;
    width: 100%;
}

.btn-primary:hover:not(:disabled),
.btn-start:hover:not(:disabled) {
    background: #e6762d;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.w-full {
    width: 100%;
}

.modal-secure-note {
    margin: 0.9rem 0 0;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #9ca3af;
}

.modal-contact-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.modal-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.modal-contact-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

.modal-contact-link--phone {
    color: #1f2a44;
}

.modal-contact-link--whatsapp {
    color: #25d366;
}

.car-ai-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.car-ai-form-error {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.875rem;
}

@media (max-width: 480px) {
    .reservation-modal {
        padding: 1.35rem 1.2rem 1.25rem;
        border-radius: 14px;
    }

    .form-group--phone {
        grid-template-columns: 108px 1fr;
    }

    .modal-title {
        font-size: 1.2rem;
    }
}

.car-ai-form-error {
    margin: 0 0 1rem;
    padding: 0.75rem;
    background: #fef2f2;
    color: #b91c1c;
    border-radius: 8px;
    font-size: 0.875rem;
}

.car-ai-form-error.is-hidden,
.car-ai-loading.is-hidden,
.car-ai-booking-desk.is-hidden,
.hero-content.is-hidden {
    display: none !important;
}

/* Development: ?testmode=staging loads the chat desk immediately */
.car-ai-app.is-staging-mode .car-ai-booking-desk,
.car-ai-app.is-ai-search-mode .car-ai-booking-desk {
    display: flex !important;
}

/* Chat desk open — trim homepage chrome */
body:has(#carAiBookingDesk:not(.is-hidden)) .car_recently_view,
body:has(#carAiBookingDesk:not(.is-hidden)) br.clear {
    display: none !important;
}

.shadow-soft {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Animation states */
.is-exiting-down {
    transform: translateY(60px);
    opacity: 0;
    pointer-events: none;
}

.is-entering-down {
    animation: carAiEnterDown 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.is-exiting-up {
    animation: carAiExitUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.is-entering-up {
    animation: carAiEnterUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes carAiEnterDown {
    from {
        transform: translateY(-40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes carAiExitUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-60px);
        opacity: 0;
    }
}

@keyframes carAiEnterUp {
    from {
        transform: translateY(60px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading */
.car-ai-loading {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.car-ai-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: carAiSpin 0.8s linear infinite;
}

@keyframes carAiSpin {
    to {
        transform: rotate(360deg);
    }
}

.car-ai-loading-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    font-weight: 500;
}

/* Booking desk */
.car-ai-booking-desk {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: stretch;
    padding: 2rem;
    box-sizing: border-box;
}

.car-ai-desk-layout {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.car-ai-desk-sidebar {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.car-ai-steps-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.car-ai-steps-title {
    margin: 0 0 1.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a2e;
}

.car-ai-steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.car-ai-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #999;
    font-size: 0.9rem;
}

.car-ai-step.is-active {
    color: #1a1a2e;
    font-weight: 600;
}

.car-ai-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eee;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.car-ai-step.is-active .car-ai-step-number {
    background: #1a1a2e;
    color: #fff;
}

.car-ai-activity-card {
    background: linear-gradient(135deg, #2d1b4e 0%, #1a1a2e 100%);
    border: 1px solid rgba(255, 140, 0, 0.4);
    border-radius: 12px;
    padding: 1rem;
    margin-top: auto;
}

.car-ai-activity-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.car-ai-activity-name {
    color: #ff8c00;
    font-size: 0.95rem;
}

.car-ai-activity-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    line-height: 1.4;
}

.car-ai-desk-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.car-ai-chat-panel {
    flex: 1;
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420 px;
}

.car-ai-chat-message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.car-ai-chat-flag {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 10px solid #f0f0f0;
    margin-top: 12px;
    flex-shrink: 0;
}

.car-ai-chat-bubble {
    background: #f5f5f7;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    max-width: 100%;
    border-left: 3px solid #f26a2e !important;
}

.car-ai-greeting {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.car-ai-city-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.car-ai-city-pill {
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-size: 0.875rem;
    cursor: default;
    border: 2px solid #102945;
    background: #2947d900;
    color: #102945;
}

.car-ai-chat-input-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 0.5rem;
    border-radius: 28px;
}

.car-ai-chat-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #333;
}

.car-ai-chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #ff8a3d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    flex-shrink: 0;
}

input.car-ai-chat-input {
    border: none;
    background: transparent;
}

.car-ai-chat-message img { width: 20px; }

/* Chat transcript */
.car-ai-chat-transcript {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100vh - 220px);
}

.car-ai-sia-avatar {
    width: 34px !important;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    display: block;
}

.car-ai-msg-user {
    justify-content: flex-end;
}

.car-ai-user-bubble {
    background: #102945;
    color: #fff;
    border-radius: 16px 16px 4px 16px;
    padding: 0.85rem 1.1rem;
    max-width: 80%;
}

.car-ai-msg-text {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.5;
}

/* Typing indicator — bouncing dots while the assistant “thinks” */
.car-ai-typing-bubble {
    padding: 0.95rem 1.15rem;
    min-width: 3.25rem;
    display: inline-flex;
    align-items: center;
}

.car-ai-typing {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 1rem;
}

.car-ai-typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8b8f9a;
    opacity: 0.35;
    animation: carAiTypingDot 1.25s ease-in-out infinite;
}

.car-ai-typing-dot:nth-child(2) {
    animation-delay: 0.18s;
}

.car-ai-typing-dot:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes carAiTypingDot {
    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.car-ai-chat-bubble-wide {
    max-width: 100%;
    width: 100%;
}

.car-ai-city-pill {
    cursor: pointer;
}

.car-ai-city-pill:hover {
    border-color: #102945;
    color: #102945;
}

.car-ai-chat-input,
.car-ai-chat-send {
    cursor: pointer;
}

.car-ai-chat-input {
    cursor: text;
}

.car-ai-step.is-complete .car-ai-step-number {
    background: #f26a2e;
    color: #fff;
}

.car-ai-step.is-complete {
    color: #f26a2e;
}

/* Car cards — Selfdrive two-tone layout */
.car-ai-cars-block {
    position: relative;
}

.car-ai-cars-summary {
    margin: 0 0 0.85rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.car-ai-cars-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.car-ai-car-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.car-ai-car-card.is-smart-pick {
    background: #fff;
    border-color: #e5e7eb;
}

.car-ai-car-top {
    background: #f3f4f6;
    padding: 1rem 1rem 0.35rem;
}

.car-ai-car-head {
    margin-bottom: 0.25rem;
}

.car-ai-car-brand {
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.3;
}

.car-ai-car-title {
    margin: 0.05rem 0 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.45rem;
}

.car-ai-car-model {
    font-weight: 700;
}

.car-ai-car-similar {
    font-size: 0.8125rem;
    color: #2563eb;
    font-weight: 400;
    white-space: nowrap;
}

.car-ai-car-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 0.35rem 0.5rem 1.15rem;
}

.car-ai-car-image {
    width: 100% !important;
    max-width: 330px;
    height: auto !important;
    max-height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.1));
}

.car-ai-car-bottom {
    background: #fff;
    padding: 0.95rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.car-ai-car-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    margin-bottom: 0.95rem;
}

.car-ai-car-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.3;
}

.car-ai-car-feature--yom {
    color: #334155;
    font-weight: 600;
}

.car-ai-car-feature-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

.car-ai-car-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
}

.car-ai-car-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.car-ai-car-price strong {
    display: inline;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.car-ai-car-vat {
    font-size: 0.8125rem;
    color: #9ca3af;
    font-weight: 400;
}

.car-ai-car-duration {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8125rem;
    color: #9ca3af;
}

.car-ai-car-select,
.car-ai-btn {
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.2;
}

.car-ai-car-select,
.car-ai-btn-outline {
    background: #fff;
    border: 1.5px solid #f26a2e;
    color: #f26a2e;
    flex-shrink: 0;
}

.car-ai-car-select:hover,
.car-ai-btn-outline:hover {
    background: #eff6ff;
}

.car-ai-btn-primary {
    background: #1e3a8a;
    border: 1px solid #1e3a8a;
    color: #fff;
}

.car-ai-btn-ghost {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #6b7280;
}

.car-ai-cars-next {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* Schedule */
.car-ai-schedule-card {
    background: #f8fafc;
    border: 1px solid #1e3a8a;
    border-radius: 14px;
    padding: 1rem;
}

.car-ai-schedule-header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.car-ai-schedule-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #1e3a8a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-ai-schedule-title {
    margin: 0;
    color: #1e3a8a;
}

.car-ai-schedule-days {
    margin: 0;
    color: #6b7280;
    font-size: 0.85rem;
}

.car-ai-schedule-dates {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.car-ai-schedule-box {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 0.75rem;
    position: relative;
}

.car-ai-schedule-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.car-ai-schedule-label.is-pickup { color: #2563eb; }
.car-ai-schedule-label.is-return { color: #ea580c; }

.car-ai-schedule-input {
    width: 100%;
    margin: 0.35rem 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.35rem;
    font-size: 0.8rem;
}

.car-ai-schedule-date {
    display: block;
}

.car-ai-schedule-time {
    color: #6b7280;
    font-size: 0.85rem;
}

.car-ai-schedule-arrow {
    color: #2563eb;
    font-size: 1.25rem;
}

.car-ai-schedule-actions {
    display: flex;
    gap: 0.75rem;
}

.car-ai-schedule-actions .car-ai-btn {
    flex: 1;
}

/* Pickup */
.car-ai-pickup-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #fff;
}

.car-ai-pickup-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.car-ai-pickup-title {
    margin: 0;
}

.car-ai-pickup-map {
    border: 1px solid #2563eb;
    color: #2563eb;
    border-radius: 6px;
    padding: 0.2rem 0.55rem;
    text-decoration: none;
    font-size: 0.8rem;
}

.car-ai-pickup-address,
.car-ai-pickup-hours {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

/* Doorstep delivery */
.car-ai-doorstep-delivery {
    width: 100%;
    margin-top: 1.25rem;
}

.car-ai-doorstep-callout {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #111827;
    line-height: 1.45;
}

.car-ai-doorstep-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem 1rem 1rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.car-ai-doorstep-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    color: #0a1b2f;
}

.car-ai-doorstep-share {
    margin-bottom: 1rem;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.car-ai-doorstep-label {
    display: block;
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 0.35rem;
}

.car-ai-doorstep-required {
    color: #dc2626;
}

.car-ai-doorstep-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.45;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.car-ai-doorstep-textarea:focus {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
    border-color: #2563eb;
}

.car-ai-doorstep-hint {
    margin: 0.35rem 0 1rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.car-ai-doorstep-save {
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

/* Delivery location picker */
body.car-ai-loc-open .header_style_wrapper {
    z-index: 2 !important;
}

body.car-ai-loc-open .car-ai-booking-desk {
    z-index: 99;
}

.car-ai-loc-overlay {
    position: fixed;
    top: 90px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100050;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    background: rgba(0, 0, 0, 0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.car-ai-loc-overlay[hidden] {
    display: none;
}

.car-ai-loc-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.car-ai-loc-overlay--map {
    z-index: 100060;
    background: rgba(0, 0, 0, 0.55);
}

.car-ai-loc-sheet {
    width: 100%;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #111;
    border-radius: 0;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    transform: translateY(16px);
    transition: transform 0.28s ease;
}

.car-ai-loc-overlay.is-open .car-ai-loc-sheet {
    transform: translateY(0);
}

.car-ai-loc-sheet::before {
    content: "";
    display: block;
    height: 3px;
    background: #ff8a3d;
    flex-shrink: 0;
}

.car-ai-loc-sheet--map::before {
    display: none;
}

.car-ai-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.car-ai-loc-head {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.85rem 1rem 0.2rem;
}

.car-ai-loc-back {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #111;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.car-ai-loc-back:hover {
    background: #f3f3f3;
}

.car-ai-loc-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
}

.car-ai-loc-search {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    margin: 0.75rem 1rem 0.35rem;
    padding: 0.35rem 0.35rem 0.35rem 0.45rem;
    background: #f3f3f3;
    border-radius: 14px;
}

.car-ai-loc-search-slot {
    flex: 1;
    min-width: 0;
}

.car-ai-loc-search-slot gmp-place-autocomplete,
.car-ai-place-autocomplete {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color-scheme: light;
    font-family: inherit;
}

.car-ai-loc-map-btn {
    border: 0;
    border-radius: 10px;
    padding: 0 0.85rem;
    height: 40px;
    background: transparent;
    color: #111;
    font-weight: 700;
    cursor: pointer;
}

.car-ai-loc-map-btn:hover {
    color: #ff8a3d;
}

.car-ai-loc-notice {
    margin: 0.4rem 1rem 0;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: #fff4ec;
    color: #111;
    font-size: 0.82rem;
}

.car-ai-loc-list {
    overflow: auto;
    padding-bottom: 1rem;
    flex: 1;
}

.car-ai-loc-popular {
    margin: 0.85rem 1rem 0.15rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
}

.car-ai-loc-group {
    margin: 0.95rem 1rem 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
}

.car-ai-loc-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.car-ai-loc-row.is-selected {
    background: #fff4ec;
}

.car-ai-loc-icon {
    width: 22px;
    height: 22px;
    margin-top: 0.15rem;
    color: #111;
    flex-shrink: 0;
}

.car-ai-loc-radio {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 2px solid #cfcfcf;
    border-radius: 50%;
    flex-shrink: 0;
    box-sizing: border-box;
}

.car-ai-loc-row.is-selected .car-ai-loc-radio {
    border-color: #ff8a3d;
    background: radial-gradient(circle, #fff 0 3px, #ff8a3d 4px);
}

.car-ai-loc-badge {
    display: block;
    margin-bottom: 0.1rem;
    color: #1f9d55;
    font-size: 0.75rem;
    font-weight: 650;
}

.car-ai-loc-name {
    display: block;
    font-weight: 650;
    color: #111;
}

.car-ai-loc-detail {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: #8a8a8a;
}

.car-ai-loc-sheet--map {
    position: relative;
}

.car-ai-map-stage {
    position: relative;
    flex: 1;
    min-height: 280px;
    background: #ececec;
}

.car-ai-map-canvas {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 0;
    background: #ececec;
}

.car-ai-map-search {
    position: absolute;
    z-index: 3;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.car-ai-loc-clear {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f3f3f3;
    color: #111;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
}

.car-ai-loc-clear:hover {
    background: #ff8a3d;
    color: #fff;
}

.car-ai-map-pin {
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
    position: relative;
}

.car-ai-map-pin::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -12px;
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: #111;
    transform: translateX(-50%);
}

.car-ai-map-foot {
    padding: 0.9rem 1rem 1rem;
    background: #fff;
    border-top: 1px solid #eee;
}

.car-ai-map-address {
    margin: 0 0 0.75rem;
    min-height: 1.3em;
    font-weight: 650;
    color: #111;
}

.car-ai-map-actions {
    display: flex;
    gap: 0.7rem;
}

.car-ai-map-actions button {
    flex: 1;
    border-radius: 14px;
    padding: 0.95rem 1rem;
    font-weight: 700;
    cursor: pointer;
    font: inherit;
    font-size: 1rem;
}

.car-ai-map-back {
    border: 0;
    background: #ececec;
    color: #111;
}

.car-ai-map-select {
    border: 0;
    background: #ff8a3d;
    color: #fff;
}

.car-ai-map-select:disabled {
    background: #f3c4a6;
    cursor: not-allowed;
}

@media (min-width: 720px) {
    .car-ai-loc-overlay {
        align-items: center;
        padding: 1.25rem;
    }

    .car-ai-loc-sheet {
        width: min(760px, calc(100vw - 3rem));
        height: min(860px, calc(100vh - 120px));
        max-height: calc(100vh - 120px);
        border-radius: 24px;
    }
}
/* Insurance */
.car-ai-insurance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.car-ai-insurance-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.car-ai-insurance-title {
    margin: 0;
}

p.car-ai-insurance-subtitle {
    font-weight: 500;
    color: #747e74;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

.car-ai-insurance-price {
    margin: 0;
}

p.car-ai-insurance-excess {color: #747e74;padding-top: 0;}

.car-ai-insurance-price span {
    color: #6b7280;
    font-size: 0.85rem;
}

.car-ai-insurance-features {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    flex: 1;
}

.car-ai-insurance-features li {
    color: #15803d;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.car-ai-insurance-skip-wrap {
    text-align: right;
    margin-top: 0.75rem;
}

.car-ai-checkout-wrap {
    margin-top: 0.5rem;
}

.car-ai-checkout-summary {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: #ffffff;
    margin-bottom: 0.85rem;
}

.car-ai-checkout-summary-title {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    color: #111827;
}

.car-ai-checkout-table {
    width: 100%;
    border-collapse: collapse;
}

.car-ai-checkout-table th,
.car-ai-checkout-table td {
    padding: 0.45rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #f3f4f6;
}

.car-ai-checkout-table th {
    text-align: left;
    font-weight: 500;
    color: #4b5563;
}

.car-ai-checkout-table td {
    text-align: right;
    font-weight: 600;
    color: #111827;
}

.car-ai-checkout-table tr:last-child th,
.car-ai-checkout-table tr:last-child td {
    border-bottom: none;
}

.car-ai-checkout-table .car-ai-checkout-total th,
.car-ai-checkout-table .car-ai-checkout-total td {
    font-size: 0.98rem;
    color: #0f172a;
}

.car-ai-checkout-btn {
    width: 100%;
    padding: 0.85rem 1rem;
}

.w-full { width: 100%; }

@media (max-width: 900px) {
    .car-ai-cars-grid,
    .car-ai-insurance-grid {
        grid-template-columns: 1fr;
    }
}

button.car-ai-btn.car-ai-btn-outline.w-full {
    max-height: 32px;
}

.car-ai-pickup-list {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

article.car-ai-pickup-card {
    width: 42%;
}

/* Shortcode mobile responsiveness */
@media only screen and (max-width: 767px) {
    .car-ai-app {
        min-height: auto;
        height: auto;
        overflow: visible;
    }

    #wave-container {
        height: 100%;
        min-height: 100%;
    }

    .hero-content {
        max-width: 100%;
        width: 100%;
        padding: 5rem 1rem 2rem;
        box-sizing: border-box;
    }

    .input-wrapper,
    .chat-input,
    .suggestion-chips {
        max-width: 100%;
        box-sizing: border-box;
    }

    .chip {
        max-width: 100%;
        white-space: normal;
    }

    .hero-greeting-text {
        font-size: 1.45rem;
    }

    .car-ai-overlay {
        padding: 1rem;
        align-items: flex-end;
    }

    .car-ai-overlay.is-visible .reservation-modal {
        max-height: calc(100svh - 2rem);
        overflow-y: auto;
    }

    .car-ai-booking-desk {
        position: relative;
        inset: auto;
        min-height: 100svh;
        height: auto;
        padding: 1rem 0.75rem 1.5rem;
    }

    .car-ai-desk-layout {
        flex-direction: column;
        gap: 1rem;
    }

    .car-ai-desk-sidebar {
        flex: none;
        width: 100%;
    }

    .car-ai-activity-card {
        margin-top: 0;
    }

    .car-ai-chat-panel {
        padding: 1.25rem 1rem;
        min-height: auto;
        border-radius: 16px;
    }

    .car-ai-chat-transcript {
        max-height: none;
        padding-right: 0;
    }

    .car-ai-user-bubble {
        max-width: 92%;
    }

    .car-ai-chat-bubble {
        padding: 1rem 1.1rem;
    }

    .car-ai-chat-input-bar {
        margin-top: 1.25rem;
    }

    .car-ai-city-pills {
        gap: 0.4rem;
    }

    .car-ai-city-pill {
        padding: 0.45rem 0.85rem;
        font-size: 0.8125rem;
    }

    .car-ai-cars-grid {
        grid-template-columns: 1fr;
    }

    .car-ai-car-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .car-ai-car-select {
        width: 100%;
        text-align: center;
    }

    .car-ai-cars-next {
        right: 0.5rem;
    }

    .car-ai-schedule-dates {
        flex-direction: column;
        align-items: stretch;
    }

    .car-ai-schedule-arrow {
        align-self: center;
        transform: rotate(90deg);
    }

    .car-ai-schedule-actions {
        flex-direction: column;
    }

    .car-ai-pickup-list {
        gap: 1rem;
    }

    article.car-ai-pickup-card {
        width: 100%;
    }

    .car-ai-pickup-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .car-ai-insurance-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding-top: 4.5rem;
    }

    .car-ai-booking-desk {
        padding: 0.75rem 0.5rem 1.25rem;
    }

    .car-ai-steps-title {
        font-size: 1rem;
    }

    .car-ai-step {
        font-size: 0.85rem;
    }

    .car-ai-car-top {
        padding: 0.85rem 0.85rem 0.25rem;
    }

    .car-ai-car-bottom {
        padding: 0.85rem;
    }

    .car-ai-car-image {
        max-width: 100%;
    }

    .car-ai-modal-actions {
        flex-direction: column;
    }

    .car-ai-modal-actions .car-ai-btn {
        width: 100%;
    }
}