/* =========================================================
   ========================================================= */

/* 
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');
*/

.multi-step-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Open Sans', sans-serif;
}

/* ---------- Added from uploaded CSS (was missing in your keep CSS) ---------- */
.form-step {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    /* box-shadow: 4px 5px 4px 0px rgba(0, 0, 0, 0.25); */
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-step.hidden {
    display: none;
}

.back-button-container {
    margin-bottom: 24px;
}

.btn-back svg {
    width: 20px;
    height: 20px;
}

/* ---------- Step Titles (your keep version) ---------- */
.form-step-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    border-bottom: 2px solid #34ccff;
    padding-bottom: 10px;
    display: inline-block;
}

.form-step-subtitle,
.section-title,
.radio-label,
.service-type-intro {
    color: #1a1a1a;
}

.form-step-subtitle {
    font-size: 16px;
    margin: 0 0 30px;
}

/* ---------- Section Titles (your keep version) ---------- */
.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 30px;
}

.section-title:first-child {
    margin-top: 0;
}

/* ---------- Fields (merged + safer coverage) ---------- */
.form-fields label {
    display: block;
    margin-bottom: 15px;
    width: 100%;
}

/* Your keep styles, but extended to also catch inputs inside .form-step */
:where(.form-fields input,
    .form-fields select,
    .car-detail-row textarea,
    .form-step input,
    .form-step select,
    .form-step textarea) {
    width: 100%;
    padding: 15px;
    background-color: #f2f2f2;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

:where(.form-fields input:focus,
    .form-fields select:focus,
    .car-detail-row textarea:focus,
    .form-step input:focus,
    .form-step select:focus,
    .form-step textarea:focus) {
    border-color: #34ccff;
    background-color: #fff;
}

.car-detail-row textarea {
    height: 120px;
    resize: vertical;
}

:where(.form-fields input::placeholder,
    .form-step input::placeholder,
    .form-fields textarea::placeholder,
    .form-step textarea::placeholder) {
    color: #bababa;
    opacity: 1;
}

/* ---------- Radio Groups (your keep version + small add) ---------- */
.radio-group {
    margin-bottom: -30px;
}

.radio-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.radio-label {
    font-size: 16px;
    font-weight: 400;
}

/* Added from uploaded file (only if you use .multiline) */
.radio-label.multiline {
    line-height: 37px;
    white-space: normal;
    max-width: 301px;
}

.radio-options {
    display: flex;
    gap: 5px;
}

/* ---------- Custom Radio Styling (your keep version + CF7 label helper) ---------- */
.custom-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    position: relative;
    font-weight: 500;
}

/* Hide default radio input (accessible) */
.custom-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* CF7 label text (added for consistent alignment) */
.custom-radio .wpcf7-list-item-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
}

/* Icon circle */
.custom-radio-icon {
    height: 20px;
    width: 20px;
    background-color: #e0e0e0;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: background-color 0.2s;
}

.custom-radio input[type="radio"]:checked~.custom-radio-icon {
    background-color: #34ccff;
}

.custom-radio input[type="radio"]:checked~.wpcf7-list-item-label {
    color: #1a1a1a;
}

/* Handle CF7 generated spans */
.custom-radio .wpcf7-list-item {
    margin: 0;
}

/* ---------- Service Type (your keep version + optional .selected fallback) ---------- */
.service-type-intro {
    font-size: 14px;
    margin-bottom: 20px;
    color: #666;
}

.service-type-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
    justify-content: flex-start;
}

.service-card:hover {
    border-color: #34ccff;
    box-shadow: 0 4px 12px rgba(52, 204, 255, 0.15);
}

.service-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Selected state (your keep) */
.service-card:has(input:checked) {
    border: 2px solid #34ccff;
    background-color: #fff;
}

/* Optional fallback if you also toggle .selected via JS (from uploaded) */
.service-card.selected {
    border-color: #34ccff;
    background: rgba(52, 204, 255, 0.10);
}

.service-icon {
    width: 80px;
    margin-right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.service-icon svg,
.service-icon img {
    max-height: 60px;
    width: auto;
    max-width: 100%;
}

.service-card .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: center;
}

.service-card .wpcf7-list-item label {
    font-size: 18px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    display: block;
    width: auto;
}

.service-card:has(input:checked) .wpcf7-list-item label {
    color: #1a1a1a;
}

/* ---------- Buttons (scoped to avoid affecting other forms) ---------- */
.multi-step-form-container .btn-continue,
.multi-step-form-container input.wpcf7-submit.amv-feedback-submit,
.multi-step-form-container .wpcf7-submit,
.multi-step-form-container input[type="submit"] {
    background-color: #34ccff;
    color: #fff;
    border: none;
    /* New styles per user request (amv-hero-quote-card__btn) */
    width: 100%;
    height: 54px;
    margin-top: 10px;
    background: #34CCFF;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #34CCFF;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(52, 204, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Disabled State (Grey) */
.multi-step-form-container .btn-continue.btn-disabled,
.multi-step-form-container .wpcf7-submit.btn-disabled,
.multi-step-form-container input[type="submit"].btn-disabled {
    background: #cccccc !important;
    /* Changed from background-color to background to override shorthand */
    border-color: #cccccc !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: none;
    margin-top: 30px;
}

.multi-step-form-container .btn-continue:not(.btn-disabled):hover,
.multi-step-form-container .wpcf7-submit:not(.btn-disabled):hover,
.multi-step-form-container input[type="submit"]:not(.btn-disabled):hover {
    background: #ffffff;
    color: #000000 !important;
    border-color: #34CCFF;
    box-shadow: 0 6px 20px rgba(52, 204, 255, 0.35);
    transform: translateY(-1px);
}

.multi-step-form-container .btn-continue:not(.btn-disabled):active,
.multi-step-form-container .wpcf7-submit:not(.btn-disabled):active,
.multi-step-form-container input[type="submit"]:not(.btn-disabled):active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(52, 204, 255, 0.25);
}

.btn-back {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 20px;
    padding: 0;
}

.btn-back:hover {
    color: #34ccff;
}

/* ---------- Validation (your keep version) ---------- */
.multi-step-form-container .wpcf7-not-valid-tip {
    font-size: 13px;
    color: #dc2626;
    margin-top: 6px;
    display: block;
}

.multi-step-form-container .wpcf7-not-valid {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
}

.multi-step-form-container .wpcf7-response-output {
    margin: 16px 0 0 !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    border: none !important;
}

.multi-step-form-container .wpcf7-validation-errors {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

.multi-step-form-container .wpcf7-mail-sent-ok {
    background: #f0fdf4 !important;
    color: #16a34a !important;
}

@media (max-width: 768px) {
    .form-step {
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .radio-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .radio-options {
        width: 100%;
        justify-content: space-between;
    }
}

/* =========================================================
   STEP 2 (CF7) - Make it look like the reference card
   Put this AFTER your current CSS
   ========================================================= */

.multi-step-form-container {
    max-width: 550px !important;
    /* match the compact card */
    margin: 0 auto !important;
    padding: 0 14px !important;
}

/* The step "card" */
.multi-step-form-container .form-step {
    /* background: #fff !important;
    border-radius: 18px !important;
    padding: 22px !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18) !important;
    border: 1px solid rgba(0, 0, 0, .06) !important; */
}

/* Title */
.multi-step-form-container .form-step-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    border: 0 !important;
    /* remove your full underline */
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    position: relative !important;
}

/* Short underline like the reference */
.multi-step-form-container .form-step-title::after {
    content: "" !important;
    display: block !important;
    width: 95px !important;
    height: 4px !important;
    /* background: #34ccff !important; */
    border-radius: 6px !important;
    margin-top: 10px !important;
}

/* Subtitle */
.multi-step-form-container .form-step-subtitle {
    margin: 0 0 16px !important;
    font-size: 12px !important;
    color: #6b7280 !important;
}

/* Field spacing */
.multi-step-form-container .form-fields label {
    margin: 0 0 14px !important;
}

/* Inputs: pill / soft */
.multi-step-form-container .form-fields input,
.multi-step-form-container .form-fields select,
.multi-step-form-container .form-fields textarea {
    width: 100% !important;
    height: 48px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    background: #f3f4f6 !important;
    border: 1px solid transparent !important;
    font-size: 14px !important;
    color: #111827 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

/* Make textarea nicer if used in other steps */
.multi-step-form-container .form-fields textarea {
    height: auto !important;
    min-height: 90px !important;
    padding: 12px 14px !important;
}

/* Focus */
.multi-step-form-container .form-fields input:focus,
.multi-step-form-container .form-fields select:focus,
.multi-step-form-container .form-fields textarea:focus {
    background: #fff !important;
    border-color: rgba(52, 204, 255, .55) !important;
    box-shadow: 0 0 0 3px rgba(52, 204, 255, .15) !important;
    outline: none !important;
}

/* Placeholder */
.multi-step-form-container .form-fields input::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

/* Remove number spinners (optional) */
.multi-step-form-container input[type="number"]::-webkit-outer-spin-button,
.multi-step-form-container input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.multi-step-form-container input[type="number"] {
    -moz-appearance: textfield;
}

/* Select dropdown arrow spacing */
.multi-step-form-container .form-fields select {
    padding-right: 40px !important;
    cursor: pointer !important;
}

/* NEXT button (your <div class="btn-continue">) */
.multi-step-form-container .btn-continue {
    height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    background: #34ccff !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    /* keep like your screenshot */
    letter-spacing: .8px !important;
    cursor: pointer !important;
    user-select: none !important;
    margin-top: 10px !important;
    box-shadow: 0 10px 20px rgba(52, 204, 255, .28) !important;
}

.multi-step-form-container .btn-continue:not(.btn-disabled):hover {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #34CCFF !important;
    box-shadow: 0 6px 20px rgba(52, 204, 255, 0.35) !important;
    transform: translateY(-1px);
}

.multi-step-form-container .btn-continue:not(.btn-disabled):active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(52, 204, 255, 0.25) !important;
}

/* Mobile tightening */
@media (max-width: 480px) {
    .multi-step-form-container .form-step {
        padding: 18px !important;
    }

    .multi-step-form-container .form-step-title {
        font-size: 20px !important;
    }

    .multi-step-form-container .form-fields input,
    .multi-step-form-container .form-fields select {
        height: 46px !important;
    }

    .multi-step-form-container .btn-continue {
        height: 52px !important;
    }
}

/* Quote summary (injected by JS) */
.quote-summary {
    background: #eef8ff;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(52, 204, 255, .25);
}

.quote-summary__title {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .6px;
    color: #0f172a;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.quote-summary__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    font-size: 13px;
    color: #0f172a;
}

.quote-summary__item span {
    color: #475569;
}

@media (max-width: 480px) {
    .quote-summary__grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   RADIO VISUAL FIX (CF7 structure) - show blue selected dot
   ========================================================= */

/* Base: the dot */
.multi-step-form-container .custom-radio .custom-radio-icon {
    width: 14px !important;
    height: 14px !important;
    border-radius: 999px !important;
    background: #d1d5db !important;
    /* gray */
    margin-right: 8px !important;
    position: relative !important;
    flex: 0 0 auto !important;
}

/* Add inner circle so it looks like Figma */
.multi-step-form-container .custom-radio .custom-radio-icon::after {
    content: "" !important;
    position: absolute !important;
    inset: 3px !important;
    /* inner dot size */
    border-radius: 999px !important;
    background: transparent !important;
    /* becomes blue when checked */
    transition: background .2s ease !important;
}

/* ✅ Works with your CF7 markup: when a radio inside this label is checked */
.multi-step-form-container label.custom-radio:has(input[type="radio"]:checked) .custom-radio-icon {
    background: rgba(52, 204, 255, .25) !important;
    /* soft outer ring */
}

.multi-step-form-container label.custom-radio:has(input[type="radio"]:checked) .custom-radio-icon::after {
    background: #34ccff !important;
    /* blue dot */
}

/* Text like Figma (selected darker) */
.multi-step-form-container label.custom-radio .wpcf7-list-item-label {
    color: #9ca3af !important;
    /* unselected */
    font-weight: 500 !important;
}

.multi-step-form-container label.custom-radio:has(input[type="radio"]:checked) .wpcf7-list-item-label {
    color: #111827 !important;
}

/* Optional: nicer spacing so radio + label align like the design */
.multi-step-form-container .radio-options {
    gap: 18px !important;
}

.multi-step-form-container label.custom-radio {
    display: inline-flex !important;
    align-items: center !important;
}

/* =========================================================
   FIGMA LOOK - Dynamic Vehicles (Step 3)
   ========================================================= */

/* Make step3 a bit wider so 3 columns can fit */
.multi-step-form-container #step3.form-step {
    max-width: 640px;
    margin: 0 auto;
}

/* Container spacing between vehicles */
.dynamic-vehicles-container {
    margin-top: 14px;
}

.dynamic-vehicle-group {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

.dynamic-vehicle-group .dyn-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    background: #fff;
    user-select: none;
}

.dynamic-vehicle-group .dyn-body {
    display: none;
    padding: 0 16px 16px;
}

.dynamic-vehicle-group .dyn-body.dyn-body--open {
    display: block;
}

.dynamic-vehicle-group .dyn-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: .05em;
    cursor: pointer;
    padding: 0;
}

.dynamic-vehicle-group .dyn-toggle__chevron {
    transition: transform .2s;
}

.dynamic-vehicle-group .dyn-toggle.dyn-toggle--open .dyn-toggle__chevron {
    transform: rotate(180deg);
}

.dynamic-vehicle-group .dyn-badge {
    display: inline-block;
    background: #e8f4fb;
    color: #0f172a;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .06em;
    padding: 13px 28px;
    border-radius: 999px;
}

.dynamic-vehicle-group .dyn-section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #0f172a;
    margin: 20 0 15px;
}

.dynamic-vehicle-group .dyn-section-heading svg {
    flex-shrink: 0;
}

/* 3-column fields like Figma (falls back to 1 column on mobile) */
.dynamic-vehicle-group .dyn-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

/* Labels */
.dynamic-vehicle-group .dyn-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

/* Override your “pill” global input styles for this dynamic block */
.dynamic-vehicle-group input[type="text"] {
    width: 100% !important;
    height: 44px !important;
    padding: 0 12px !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    font-size: 14px !important;
    color: #0f172a !important;
    box-shadow: none !important;
}

.dynamic-vehicle-group input[type="text"]:focus {
    border-color: rgba(52, 204, 255, .7) !important;
    box-shadow: 0 0 0 3px rgba(52, 204, 255, .15) !important;
    outline: none !important;
}

/* Running question + options */
.dynamic-vehicle-group .dyn-running__label {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 10px;
}

.dynamic-vehicle-group .dyn-running__options {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 10px;
}

.dynamic-vehicle-group .dyn-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1.5px solid #e0e0e0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    background: #fff;
    transition: border-color .2s, background .2s;
}

.dynamic-vehicle-group .dyn-radio:has(input:checked) {
    border-color: #34ccff;
    background: rgba(52, 204, 255, .08);
}

.dynamic-vehicle-group .dyn-radio input[type="radio"] {
    accent-color: #34ccff;
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Mobile */
@media (max-width: 640px) {
    .multi-step-form-container #step3.form-step {
        max-width: 420px;
    }

    .dynamic-vehicle-group .dyn-fields {
        grid-template-columns: 1fr;
        /* stack Year/Make/Model */
    }

    .dynamic-vehicle-group .dyn-badge {
        font-size: 12px;
        padding: 8px 16px;
    }

    .dynamic-vehicle-group .dyn-section-heading {
        font-size: 14px;
    }

    .dynamic-vehicle-group .dyn-body {
        padding: 0 10px 10px;
    }

    .dynamic-vehicle-group .dyn-header {
        padding: 10px 12px;
    }
}

/* =========================================================
   STEPS INDICATOR (Step 1, Step 2, Step 3)
   ========================================================= */
.amv-steps-indicator {
    display: flex;
    gap: 10px;
    /* Space between pills */
    margin: 0 auto 30px;
    /* Centered, bottom margin */
    max-width: 1080px;
    /* Match form width */
    width: 100%;
    justify-content: center;
}

.amv-steps-indicator .step-pill {
    flex: 1;
    /* Equal width */
    text-align: center;
    padding: 10px 0;
    border-radius: 6px;
    /* Slightly rounded as per image */
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background-color: #bfbfbf;
    /* Inactive Gray */
    transition: background-color 0.3s ease;
}

/* Active State (Blue) */
.amv-steps-indicator .step-pill.active {
    background-color: #29abe2;
    cursor: pointer;
    /* Blue matching buttons */
}

/* Mobile Tweaks */
@media (max-width: 640px) {
    .amv-steps-indicator {
        max-width: 420px;
        margin-bottom: 20px;
    }

    .amv-steps-indicator .step-pill {
        font-size: 12px;
        padding: 8px 0;
    }
}

/* =========================================================
   QUOTE PAGE HEADER OVERRIDES
   ========================================================= */

/* Flash prevention: hide nav and page title before JS runs.
   :not(.quote-header-phone) ensures the pill button injected by JS stays visible. */
.page-quote-header .top_nav .media-body> :not(.quote-header-phone),
.page-quote-header .top_mobile_menu_wr,
.page-quote-header .page_title {
    display: none !important;
}

/* Top Bar Custom Content */
.quote-top-bar {
    display: flex;
    justify-content: flex-end;
    /* Align right */
    align-items: center;
    gap: 10px;
    height: 100%;
    min-height: 40px;
    /* Ensure visibility */
    color: #fff;
    /* Blue text */
    font-size: 13px;
    font-weight: 600;
}

.quote-top-bar svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Main Header Phone Section — Figma pill button */
.quote-header-phone {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    border: 2px solid #27aae1;
    background-color: #ffffff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    width: fit-content;
    margin-left: auto;
    text-decoration: none;
}

.quote-header-phone:hover {
    background-color: #27aae1;
}

.quote-header-phone svg {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
    transition: none;
}

.quote-header-phone svg path {
    fill: #27aae1;
    transition: fill 0.2s ease;
}

.quote-header-phone:hover svg path {
    fill: #ffffff;
}

.quote-header-phone .phone-text {
    font-size: 18px;
    font-weight: 700;
    color: #27aae1;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.quote-header-phone:hover .phone-text {
    color: #ffffff;
}

/* Mobile adjustments for header */
@media (max-width: 768px) {

    /* Hide desktop phone injected in the main nav */
    .top_nav .media-body .quote-header-phone {
        display: none !important;
    }

    /* Make the mobile logo area stack: logo then phone */
    .top_nav .mobile_logo {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }

    /* Ensure logo link is full-width so phone sits under it cleanly */
    .top_nav .mobile_logo>a:first-child {
        display: inline-flex;
        align-items: center;
    }

    /* Show the mobile phone */
    .mobile_logo .quote-header-phone--mobile {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;

        /* keep it on ONE line */
        white-space: nowrap !important;
        flex-wrap: nowrap !important;

        /* make it sit nicely under logo */
        margin-left: 19px !important;
        margin-top: -28px !important;
        padding: 2px 0 !important;
        border-radius: 0 !important;
    }

    /* Size down so it doesn't wrap */
    .mobile_logo .quote-header-phone--mobile svg {
        width: 20px !important;
        height: 20px !important;
        flex: 0 0 auto !important;
    }

    .mobile_logo .quote-header-phone--mobile .phone-text {
        font-size: 14px !important;
        line-height: 1 !important;
        display: inline-block !important;
    }
}


/* =========================================================
   AUTOCOMPLETE DROPDOWN STYLES
   ========================================================= */

/* Autocomplete dropdown container */
.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
    display: none;
}

/* Individual autocomplete items */
.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #0f172a;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

/* Hover state */
.autocomplete-item:hover {
    background-color: #f3f4f6;
}

/* Active state (keyboard navigation) */
.autocomplete-item.autocomplete-active {
    background-color: #34ccff;
    color: #ffffff;
}

/* Scrollbar styling for autocomplete list */
.autocomplete-list::-webkit-scrollbar {
    width: 8px;
}

.autocomplete-list::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 0 6px 6px 0;
}

.autocomplete-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.autocomplete-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* =========================================================
   SUMMARY CARD - match screenshot style
   ========================================================= */

.summary-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 14px 40px -18px rgba(17, 24, 39, .18);
    padding: 10px 10px;
    max-width: 320px;
    width: 100%;
    margin: 0 auto 20px;
}

/* Header */
.summary-header {
    margin-bottom: 16px;
}

.summary-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.02em;
    margin: 0 0 10px 0;
}

.summary-underline {
    height: 3px;
    width: 52px;
    background: #29ABE2;
    border-radius: 99px;
}

/* Content stack */
.summary-content {
    display: flex;
    flex-direction: column;
}

/* Each row like “Pickup / Toronto…” */
.summary-field {
    padding: 14px 0;
    border-bottom: 1px solid #EEF2F7;
}

.summary-field:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Label */
.summary-label {
    font-size: 11px;
    font-weight: 500;
    color: #A8B0BE;
    letter-spacing: .02em;
    margin: 0 0 4px 0;
}

/* Value */
.summary-value {
    font-size: 15px;
    color: #111827;
    line-height: 1.25;
    word-break: break-word;
}

.summary-section {
    display: flex;
    flex-direction: column;
}

/* Side-by-side layout for date + vehicle */
.summary-section--row {
    flex-direction: row;
    gap: 0;
}

.summary-section--row .summary-field {
    flex: 1;
}

/* Mobile tweaks */
@media (max-width: 480px) {
    .summary-card {
        max-width: 100%;
        padding: 22px 18px;
        margin-top: 50px;
    }
}

/* =========================================================
   PRICE CARD - match Figma design
   ========================================================= */

.amv-price-card {
    background-color: #ffffff;
    border: 1px solid #e0f2fe;
    border-radius: 16px;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    margin-top: 24px;
    font-family: 'Open Sans', sans-serif;
    padding: 1px;
}

.amv-price-card__header {
    background-color: #27aae1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.amv-price-card__badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 9999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.amv-price-card__price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    color: #ffffff;
}

.amv-price-card__amount {
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    color: #ffffff !important;
}

.amv-price-card__currency {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    opacity: 0.8;
    line-height: 20px;
}

.amv-price-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.amv-price-card__breakdown-details {
    margin: 0;
    padding: 0;
}

.amv-price-card__breakdown-details>summary {
    list-style: none;
    /* Hide default marker */
}

.amv-price-card__breakdown-details>summary::-webkit-details-marker {
    display: none;
}

.amv-price-card__breakdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    width: 100%;
}

.amv-price-card__breakdown-toggle span {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    line-height: 20px;
}

.amv-price-card__chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amv-price-card__breakdown-details[open] .amv-price-card__chevron {
    transform: rotate(180deg);
}

.amv-price-card__breakdown-content {
    background-color: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.amv-price-card__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    line-height: 20px;
}

.amv-price-card__row-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 400;
}

.amv-price-card__row-value {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

.amv-price-card__row-included {
    background-color: #e0f2fe;
    color: #27aae1;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0 8px;
    border-radius: 4px;
    line-height: 20px;
}

.amv-price-card__grand-total {
    border-top: 1px dashed #d1d5db;
    padding-top: 13px;
    margin-top: 1px;
    align-items: center;
}

.amv-price-card__grand-total .amv-price-card__row-label {
    color: #374151;
    font-weight: 700;
    text-transform: uppercase;
}

.amv-price-card__grand-total .amv-price-card__row-value {
    color: #27aae1;
    font-size: 20px;
    font-weight: 700;
}

.amv-price-card__features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 8px;
    margin: 0;
}

.amv-price-card__feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.amv-price-card__feature-icon {
    background-color: #e0f2fe;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    width: 28px;
    height: 28px;
    box-sizing: border-box;
}

.amv-price-card__feature-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    flex-shrink: 0;
}

.amv-price-card__feature-text {
    display: flex;
    flex-direction: column;
}

.amv-price-card__feature-title {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.amv-price-card__feature-desc {
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

.amv-price-card__footer {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

/* ---------- Transport Type Cards ---------- */
.section-title--icon {
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.section-title--icon svg {
    flex-shrink: 0;
}

.transport-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.transport-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    transition: border-color .2s;
    position: relative;
}

.transport-card:has(input:checked) {
    border-color: #34ccff;
    background: rgba(39, 170, 225, .06);
}

.transport-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.transport-card .wpcf7-list-item-label {
    display: none;
}

.transport-card .wpcf7-form-control-wrap,
.transport-card .wpcf7-form-control,
.transport-card .wpcf7-list-item {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.transport-card__content {
    flex: 1;
}

.transport-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.transport-card__desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.transport-card__check {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all .2s;
    margin-top: 2px;
}

.transport-card:has(input:checked) .transport-card__desc {
    color: #34ccff;
}

.transport-card:has(input:checked) .transport-card__check {
    border-color: #34ccff;
    background: #34ccff;
}

.transport-card:has(input:checked) .transport-card__check::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

@media (max-width: 480px) {
    .transport-type-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- End Transport Type Cards ---------- */

.amv-price-card__disclaimer {
    color: #959595;
    font-size: 10px;
    font-weight: 400;
    text-align: center;
    line-height: 15px;
    font-family: 'Inter', sans-serif;
}