:root {
    --td-navy: #002c5f;
    --td-navy-hover: #001f44;
    --td-deep-navy: #001432;
    --td-cyan: #00b4ff;
    --td-ink: #0f1b2d;
    --td-muted: #6b7280;
    --td-input: #f1f4f9;
    --td-border: #e3e8f0;
    --td-error: #d92d20;
    --td-success: #12b76a;
    --td-section: #f5f8fc;
}

/* ==========================================================================
   Showcase card link integration (preserved for lineup section above)
   ========================================================================== */
.models-showcase .models-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.models-showcase .models-card-actions .models-view-details {
    margin-top: 0;
}

.models-showcase .models-book-drive {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 6px;
    color: #fff;
    background: rgba(0, 20, 50, .25);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.models-showcase .models-book-drive:hover {
    transform: translateY(-2px);
    border-color: var(--td-cyan);
    color: #fff;
    background: rgba(0, 44, 95, .82);
}

.models-showcase .models-side-content .models-card-actions {
    gap: 12px;
    margin-top: 9px;
}

.models-showcase .models-side-content .models-book-drive {
    min-height: 28px;
    padding: 0;
    border: 0;
    border-bottom: 2px solid var(--td-cyan);
    border-radius: 0;
    background: transparent;
    font-size: 11px;
}

.models-showcase .models-side-content .models-book-drive:hover {
    transform: none;
    background: transparent;
}

/* ==========================================================================
   REQUEST A TEST DRIVE - CORE SECTION ARCHITECTURE
   ========================================================================== */
.test-drive-experience,
.test-drive-experience * {
    box-sizing: border-box;
}

.test-drive-experience {
    position: relative;
    padding: clamp(44px, 6vw, 92px) 24px;
    background:
        radial-gradient(ellipse at 92% 8%, rgba(0, 180, 255, .08), transparent 31%),
        #fff;
    color: var(--td-ink);
    font-family: Outfit, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    scroll-margin-top: 130px; /* Prevents sticky/fixed header from obscuring the top on anchor jump */
}

/* Master rounded container */
.test-drive-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(420px, .94fr);
    align-items: center;
    gap: clamp(24px, 3vw, 48px);
    width: min(100%, 1320px);
    margin: 0 auto;
}

/* ==========================================================================
   LEFT CONTENT - TEST DRIVE INTRO AND CONTACT DETAILS
   ========================================================================== */
.test-drive-visual {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 0;
    background: transparent;
}

.test-drive-visual::before,
.test-drive-visual::after {
    display: none;
}

.test-drive-visual-content {
    position: relative;
    width: 100%;
    max-width: 680px;
    padding: 0;
    color: var(--td-ink);
}

/* Cyan eyebrow header */
.test-drive-eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 22px;
    color: var(--td-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .4em;
    line-height: 1.2;
    text-transform: uppercase;
}

.test-drive-eyebrow span {
    width: 60px;
    height: 2px;
    flex: 0 0 auto;
    background: var(--td-cyan);
}

/* High-impact headline */
#content .test-drive-experience .test-drive-visual-title,
.test-drive-experience .test-drive-visual-title {
    margin: 0;
    color: var(--td-navy) !important;
    font-family: Outfit, sans-serif;
    font-size: clamp(48px, 4.4vw, 76px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.05;
}

#content .test-drive-experience .test-drive-visual-title span,
.test-drive-experience .test-drive-visual-title span {
    color: var(--td-cyan) !important;
}

.test-drive-visual-intro {
    margin: 18px 0 0;
    color: #5b6577;
    font-size: clamp(17px, 1.35vw, 21px);
    line-height: 1.45;
}

/* 3-row feature list */
.test-drive-benefits {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.test-drive-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 44, 95, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 8px 24px rgba(0, 44, 95, .045);
}

.test-drive-benefit-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 1px solid rgba(0, 44, 95, .1);
    border-radius: 50%;
    background: rgba(0, 180, 255, .08);
    transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.test-drive-benefits li:hover .test-drive-benefit-icon {
    transform: translateY(-1px);
    background: rgba(0, 180, 255, .14);
    border-color: rgba(0, 180, 255, .42);
}

.test-drive-benefit-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--td-navy);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.test-drive-benefits li > span:last-child {
    display: grid;
    gap: 4px;
}

.test-drive-benefits strong {
    color: var(--td-navy);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.test-drive-benefits small {
    color: var(--td-muted);
    font-size: 13.5px;
    line-height: 1.35;
}

.test-drive-contact-block {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 44, 95, .12);
}

.test-drive-contact-block > p {
    margin: 0 0 12px;
    color: var(--td-muted);
    font-size: 13px;
    font-weight: 600;
}

.test-drive-contact-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.test-drive-contact-options a {
    display: grid;
    gap: 5px;
    padding: 15px 16px;
    border: 1px solid rgba(0, 44, 95, .12);
    border-radius: 14px;
    color: var(--td-navy);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 8px 24px rgba(0, 44, 95, .045);
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.test-drive-contact-options a:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 180, 255, .55);
    background: #fff;
}

.test-drive-contact-options span {
    color: var(--td-muted);
    font-size: 11px;
    line-height: 1.3;
}

.test-drive-contact-options strong {
    color: var(--td-navy);
    font-size: 14px;
    line-height: 1.3;
}

.test-drive-contact-options a:focus-visible {
    outline: 3px solid rgba(0, 180, 255, .7);
    outline-offset: 3px;
}

/* ==========================================================================
   RIGHT PANEL - FLOATING FORM CARD (~36% width)
   ========================================================================== */
.test-drive-form-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(28px, 3.2vw, 46px);
    border: 1px solid rgba(0, 44, 95, .07);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(0, 44, 95, .13);
}

.test-drive-form-content {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* Form header */
.test-drive-form-heading .test-drive-eyebrow {
    gap: 12px;
    margin-bottom: 14px;
    color: var(--td-muted);
    font-size: 12px;
    letter-spacing: .35em;
}

.test-drive-form-heading .test-drive-eyebrow span {
    width: 50px;
}

.test-drive-form-heading h2,
.test-drive-success h2 {
    margin: 0;
    color: var(--td-navy);
    font-family: Outfit, sans-serif;
    font-size: clamp(28px, 2.3vw, 38px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
}

.test-drive-form-heading > p:last-child {
    margin: 8px 0 22px;
    color: #5b6577;
    font-size: 15px;
    line-height: 1.5;
}

/* Form fields layout */
.test-drive-request-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.test-drive-consent-field,
.test-drive-consent-error,
.test-drive-request-status,
.test-drive-submit {
    grid-column: 1 / -1;
}

.test-drive-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.test-drive-field {
    display: grid;
    gap: 6px;
}

.test-drive-field > label {
    margin: 0;
    color: var(--td-navy);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

/* Input container */
.test-drive-control {
    position: relative;
    display: flex;
    height: 56px;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1.5px solid var(--td-border);
    border-radius: 12px;
    background: var(--td-input);
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.test-drive-control > svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: var(--td-muted);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: stroke 180ms ease;
}

.test-drive-control:focus-within {
    border-color: var(--td-cyan);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 180, 255, .15);
}

.test-drive-control:focus-within > svg {
    stroke: var(--td-cyan);
}

/* Invalid field states */
.test-drive-field.is-invalid .test-drive-control {
    border-color: var(--td-error);
    background: #fff8f8;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, .12);
}

.test-drive-field.is-invalid .test-drive-control > svg {
    stroke: var(--td-error);
}

.test-drive-control input,
.test-drive-control select {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--td-ink);
    background: transparent;
    font-family: Outfit, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
}

.test-drive-control input::placeholder {
    color: #8894a6;
    opacity: 1;
}

/* Phone control with +91 country prefix */
.test-drive-country-code {
    padding-right: 12px;
    border-right: 1px solid #d5deea;
    color: var(--td-ink);
    font-size: 15px;
    font-weight: 600;
}

/* Custom styled select with chevron down */
.test-drive-select-control {
    position: relative;
}

.test-drive-select-control select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 28px;
    cursor: pointer;
}

.test-drive-control > .test-drive-select-chevron {
    position: absolute;
    right: 16px;
    pointer-events: none;
    width: 18px;
    height: 18px;
    stroke: var(--td-muted);
    transition: transform 180ms ease, stroke 180ms ease;
}

.test-drive-control:focus-within > .test-drive-select-chevron {
    stroke: var(--td-cyan);
}

/* Validation error text */
.test-drive-error {
    display: none;
    margin: 2px 0 0;
    color: var(--td-error);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.35;
}

.test-drive-field.is-invalid .test-drive-error,
.test-drive-consent-error.is-visible {
    display: block;
}

/* Custom Checkbox */
.test-drive-consent-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 2px;
}

.test-drive-consent-field input[type="checkbox"] {
    position: relative;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin: 2px 0 0;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #a4b3c7;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 180ms ease;
}

.test-drive-consent-field input[type="checkbox"]:hover {
    border-color: var(--td-navy);
}

.test-drive-consent-field input[type="checkbox"]:checked {
    border-color: var(--td-navy);
    background-color: var(--td-navy);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b4ff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 14px 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.test-drive-consent-field input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 180, 255, .25);
    border-color: var(--td-cyan);
}

.test-drive-consent-field label {
    margin: 0;
    color: var(--td-muted);
    font-size: 13.5px;
    line-height: 1.45;
    cursor: pointer;
}

.test-drive-consent-field a {
    color: var(--td-navy);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.test-drive-consent-field a:hover {
    color: var(--td-cyan);
}

.test-drive-request-status {
    min-height: 18px;
    margin: 0;
    color: var(--td-error);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

/* Submit Button */
.test-drive-submit {
    position: relative;
    display: inline-flex;
    width: 100%;
    height: 58px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: var(--td-navy);
    font-family: Outfit, sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 44, 95, .2);
    transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.test-drive-submit svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    transition: transform 200ms ease;
}

.test-drive-submit:hover {
    background: var(--td-navy-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 44, 95, .32);
}

.test-drive-submit:hover svg {
    transform: translateX(4px);
}

.test-drive-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 44, 95, .25);
}

.test-drive-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 180, 255, .35), 0 12px 28px rgba(0, 44, 95, .32);
}

.test-drive-submit.is-loading {
    pointer-events: none;
    opacity: .88;
}

.test-drive-submit.is-loading::after {
    display: inline-block;
    width: 18px;
    height: 18px;
    content: "";
    border: 2.5px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: test-drive-spin .7s linear infinite;
}

.test-drive-submit.is-loading svg {
    display: none;
}

/* ==========================================================================
   SUCCESS PANEL STATE
   ========================================================================== */
.test-drive-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 10px;
    text-align: center;
    animation: test-drive-success-pop 360ms cubic-bezier(.22, 1, .36, 1);
}

.test-drive-success-icon {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 50%;
    background: rgba(18, 183, 106, .12);
}

.test-drive-success-icon svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: var(--td-success);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}

.test-drive-success h2 {
    margin: 0;
    color: var(--td-navy);
    font-size: clamp(26px, 2.4vw, 34px);
    font-weight: 800;
}

.test-drive-success p {
    margin: 12px 0 24px;
    color: #5b6577;
    font-size: 16px;
    line-height: 1.6;
}

.test-drive-success button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1.5px solid var(--td-navy);
    border-radius: 10px;
    color: var(--td-navy);
    background: transparent;
    font-family: Outfit, sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 180ms ease;
}

.test-drive-success button:hover {
    background: var(--td-navy);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 44, 95, .2);
}

@keyframes test-drive-spin {
    to { transform: rotate(360deg); }
}

@keyframes test-drive-success-pop {
    from { opacity: 0; transform: scale(.85); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & DESKTOP MEDIUM 768px - 1279px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 980px) {
    .test-drive-experience {
        padding: 44px 20px;
        scroll-margin-top: 100px;
    }

    @media (min-width: 981px) and (max-width: 1350px) {
        .test-drive-shell {
            grid-template-columns: minmax(0, 1fr) minmax(380px, .95fr);
            gap: 30px;
        }

        .test-drive-request-form {
            grid-template-columns: minmax(0, 1fr);
        }

        .test-drive-consent-field,
        .test-drive-consent-error,
        .test-drive-request-status,
        .test-drive-submit {
            grid-column: auto;
        }
    }

    .test-drive-shell {
        display: block;
        min-height: auto;
    }

    .test-drive-visual {
        min-height: 0;
    }

    .test-drive-visual-content {
        max-width: 100%;
        padding: 0 0 38px;
    }

    #content .test-drive-experience .test-drive-visual-title,
    .test-drive-experience .test-drive-visual-title {
        font-size: clamp(44px, 5.5vw, 60px);
    }

    .test-drive-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        margin-top: 28px;
    }

    .test-drive-benefits li {
        align-items: flex-start;
        gap: 12px;
    }

    .test-drive-benefit-icon {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
    }

    .test-drive-benefit-icon svg {
        width: 22px;
        height: 22px;
    }

    .test-drive-benefits strong {
        font-size: 14px;
    }

    .test-drive-benefits small {
        font-size: 12px;
    }

    .test-drive-form-panel {
        min-height: auto;
        margin: 0;
        padding: 40px;
        border-radius: 24px;
    }

    .test-drive-form-content {
        max-width: 680px;
    }

    .test-drive-request-form {
        grid-template-columns: minmax(0, 1fr);
        column-gap: 20px;
        row-gap: 16px;
    }

    .test-drive-consent-field,
    .test-drive-consent-error,
    .test-drive-request-status,
    .test-drive-submit {
        grid-column: 1 / -1;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE < 768px)
   ========================================================================== */
@media (max-width: 767px) {
    .test-drive-experience {
        padding: 24px 12px;
        scroll-margin-top: 80px;
    }

    .test-drive-shell {
        display: block;
        min-height: auto;
    }

    .test-drive-visual {
        min-height: auto;
    }

    .test-drive-visual-content {
        padding: 0 0 28px;
    }

    .test-drive-eyebrow {
        gap: 10px;
        margin-bottom: 16px;
        font-size: 11px;
        letter-spacing: .32em;
    }

    .test-drive-eyebrow span {
        width: 40px;
    }

    #content .test-drive-experience .test-drive-visual-title,
    .test-drive-experience .test-drive-visual-title {
        font-size: clamp(34px, 9vw, 44px);
    }

    .test-drive-visual-intro {
        margin-top: 14px;
        font-size: 16px;
    }

    .test-drive-benefits {
        gap: 16px;
        margin-top: 24px;
    }

    .test-drive-contact-block {
        margin-top: 24px;
        padding-top: 18px;
    }

    .test-drive-contact-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .test-drive-contact-options a {
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 8px;
        padding: 11px 12px;
    }

    .test-drive-contact-options strong {
        font-size: 12px;
        text-align: right;
    }

    .test-drive-benefit-icon {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
    }

    .test-drive-benefit-icon svg {
        width: 22px;
        height: 22px;
    }

    .test-drive-benefits strong {
        font-size: 15px;
    }

    .test-drive-benefits small {
        font-size: 12.5px;
    }

    .test-drive-form-panel {
        min-height: auto;
        margin: 0;
        padding: 26px 18px;
        border-radius: 18px;
    }

    .test-drive-form-heading .test-drive-eyebrow {
        margin-bottom: 12px;
        font-size: 11px;
    }

    .test-drive-form-heading h2,
    .test-drive-success h2 {
        font-size: clamp(25px, 7vw, 30px);
    }

    .test-drive-form-heading > p:last-child {
        margin: 8px 0 18px;
        font-size: 14px;
    }

    .test-drive-request-form {
        gap: 14px;
    }

    .test-drive-control {
        height: 52px;
        gap: 10px;
        padding: 0 14px;
    }

    .test-drive-field > label {
        font-size: 13.5px;
    }

    .test-drive-control input,
    .test-drive-control select {
        font-size: 14.5px;
    }

    .test-drive-consent-field label {
        font-size: 12.5px;
    }

    .test-drive-submit {
        height: 54px;
        font-size: 15px;
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .test-drive-experience *,
    .test-drive-experience *::before,
    .test-drive-experience *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
