/*
 * «Déjanos tu auto a cuenta»: un solo formulario continuo (sin tarjetas por pregunta), con logos de marca
 * a un toque, botones para año, kilometraje y financiamiento, y un selector tipo rueda (como el de un iPhone)
 * para «Otra marca» y «Otro año».
 */
.gimsa-intake-root .trade-stage .trade-in-heading { margin-bottom: 18px; }
.gimsa-intake-root .trade-stage .trade-in-heading .lead { margin-bottom: 0; }
.gimsa-intake-root .trade-free-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    padding: 3px 11px 3px 9px;
    border-radius: 999px;
    background: #e7f6ee;
    color: #12744a;
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.5;
    vertical-align: middle;
    white-space: nowrap;
}
.gimsa-intake-root .trade-free-note i { font-size: 16px; }

/* Distribución: marca arriba a todo lo ancho; modelo y versión juntos; año; y kilometraje con financiamiento. */
.gimsa-intake-root .trade-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "model" "version" "year" "mileage" "financing";
    gap: 22px;
    align-items: start;
}
@media (min-width: 761px) {
    .gimsa-intake-root .trade-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: "brand brand" "model version" "year year" "mileage mileage" "financing financing";
        gap: 22px 20px;
    }
}
/* En tabletas horizontales y pantallas anchas, kilometraje y financiamiento van lado a lado. */
@media (min-width: 901px) {
    .gimsa-intake-root .trade-grid { grid-template-areas: "brand brand" "model version" "year year" "mileage financing"; }
}
.gimsa-intake-root .trade-brand { grid-area: brand; }
.gimsa-intake-root .trade-model { grid-area: model; }
/* «No lo sé» junto al título de la versión, igual que «No tengo correo» junto al del correo. */
.gimsa-intake-root .trade-version { position: relative; }
.gimsa-intake-root .trade-version .email-unavailable-badge {
    position: absolute;
    top: -8px;
    right: 0;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 11px;
    transform: none;
}
.gimsa-intake-root .trade-version input:disabled { border-color: #d8e4ec; background: #f3f7fa; color: #8b9aa6; opacity: 1; }
.gimsa-intake-root .trade-version { grid-area: version; }
.gimsa-intake-root .trade-year { grid-area: year; }
.gimsa-intake-root .trade-mileage { grid-area: mileage; }
.gimsa-intake-root .trade-financing { grid-area: financing; }

/* Sin tarjetas: cada pregunta es solo su título y sus controles sobre el fondo de la página. */
.gimsa-intake-root .trade-block { display: flex; min-width: 0; flex-direction: column; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; gap: 10px; }
/* En un fieldset el título (legend) no recibe el espacio del gap: se le da el mismo que a las etiquetas de arriba. */
.gimsa-intake-root .stage .trade-block > legend.trade-label { float: none; margin-bottom: 10px; }

/* Mismo estilo de etiqueta que la pantalla «Empecemos por conocerte»: pequeña, firme y azul al enfocar. */
.gimsa-intake-root .trade-label,
.gimsa-intake-root .stage .trade-block > .trade-label {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    color: #405972;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
    transition: color .18s ease;
}
.gimsa-intake-root .stage .trade-block:focus-within > .trade-label { color: var(--control-focus, #0068d7); }

/* Logos de marca: máscara con el SVG y el color de la marca. */
.gimsa-intake-root .trade-brand-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.gimsa-intake-root .trade-brand-tile {
    position: relative;
    display: flex;
    min-height: 88px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 6px 10px;
    border: 1.5px solid #dbe5ee;
    border-radius: 18px;
    background: #fff;
    color: #1e3b57;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 30, 80, .04);
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.gimsa-intake-root .trade-brand-tile:active { transform: scale(.95); }
.gimsa-intake-root .trade-brand-tile:focus-visible { outline: 3px solid rgba(0, 104, 215, .35); outline-offset: 2px; }
.gimsa-intake-root .trade-brand-logo {
    display: grid;
    width: 38px;
    height: 34px;
    place-items: center;
    background: var(--brand, #1e3b57);
    -webkit-mask: var(--logo) center / contain no-repeat;
    mask: var(--logo) center / contain no-repeat;
}
.gimsa-intake-root .trade-brand-more { background: none; -webkit-mask: none; mask: none; color: #5d7b96; font-size: 30px; }
.gimsa-intake-root .trade-brand-more i { line-height: 1; }
.gimsa-intake-root .trade-brand-name { max-width: 100%; overflow: hidden; color: #1e3b57; font-size: 12.5px; font-weight: 750; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.gimsa-intake-root .trade-brand-check {
    position: absolute;
    top: 7px;
    right: 7px;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: #0068d7;
    color: #fff;
    font-size: 15px;
    opacity: 0;
    transform: scale(.5);
    transition: opacity .16s ease, transform .22s cubic-bezier(.3, .7, .4, 1.5);
}
.gimsa-intake-root .trade-brand-tile.is-selected { border-color: #0068d7; background: #eef6ff; box-shadow: 0 0 0 3px rgba(0, 104, 215, .1), 0 8px 20px rgba(0, 104, 215, .14); }
.gimsa-intake-root .trade-brand-tile.is-selected .trade-brand-check { opacity: 1; transform: scale(1); }
.gimsa-intake-root .trade-brand-tile--other { border-style: dashed; }
.gimsa-intake-root .trade-brand-tile--other.is-selected { border-style: solid; }
.gimsa-intake-root .trade-brand-tile--other.is-selected .trade-brand-more { color: #0068d7; }
.gimsa-intake-root .trade-brand-tile--other.is-selected .trade-brand-name { color: #07498f; }
.gimsa-intake-root .trade-brand .invalid-selection .trade-brand-tile { border-color: #dba8a8; background: #fffafa; }

/* Botones de un toque (año y kilometraje). */
.gimsa-intake-root .trade-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gimsa-intake-root .trade-chip {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 16px;
    border: 1.5px solid #d7e1e9;
    border-radius: 999px;
    background: #fff;
    color: #1e3b57;
    font: 700 15px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 30, 80, .035);
    transition: background .14s ease, border-color .14s ease, color .14s ease, transform .14s ease, box-shadow .14s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.gimsa-intake-root .trade-chip:active { transform: scale(.95); }
.gimsa-intake-root .trade-chip:focus-visible { outline: 3px solid rgba(0, 104, 215, .35); outline-offset: 2px; }
.gimsa-intake-root .trade-chip.is-selected { border-color: #0068d7; background: #0068d7; color: #fff; box-shadow: 0 8px 18px rgba(0, 104, 215, .24); }
.gimsa-intake-root .trade-chip-other { border-style: dashed; color: #36608a; }
.gimsa-intake-root .trade-chip-other i { font-size: 18px; }
.gimsa-intake-root .trade-chip-other.is-selected { border-style: solid; }
.gimsa-intake-root .trade-chips-years .trade-chip { min-width: 64px; padding: 0 12px; }
.gimsa-intake-root .trade-chips-years .trade-chip-other { min-width: 96px; }
.gimsa-intake-root .trade-chips-compact .trade-chip { min-height: 38px; padding: 0 13px; font-size: 14px; }
.gimsa-intake-root .trade-year .invalid-selection .trade-chip { border-color: #dba8a8; }

/* Campos de texto. */
.gimsa-intake-root .trade-block > input,
.gimsa-intake-root .trade-balance .money-wrap > input {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: 1px solid var(--control-border, #dbe3ec);
    border-radius: 16px;
    background: var(--control-surface, #f4f6f9);
    color: var(--control-ink, #17324e);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    box-shadow: inset 0 1px 2px rgba(0, 30, 80, .025);
}
.gimsa-intake-root .trade-balance .money-wrap > input { padding-left: 36px; }
.gimsa-intake-root .trade-block > input:focus,
.gimsa-intake-root .trade-balance .money-wrap > input:focus { border-color: var(--control-focus, #0068d7); background: #fff; box-shadow: 0 0 0 4px rgba(0, 104, 215, .13); outline: none; }
.gimsa-intake-root .trade-block > input.invalid { border-color: #cb4f4f; background: #fffafa; }
.gimsa-intake-root .trade-hint { color: #6e8296; font-size: 12px; line-height: 1.4; }
.gimsa-intake-root .trade-block .client-error,
.gimsa-intake-root .trade-block .field-error { margin-top: 0; }
.gimsa-intake-root .trade-block .invalid-selection { outline: 0; box-shadow: none; }

/* Kilometraje. */
.gimsa-intake-root .trade-km-control { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 8px; align-items: center; }
.gimsa-intake-root .trade-km-control .age-step { height: 56px; }
.gimsa-intake-root .trade-km-input { position: relative; }
.gimsa-intake-root .trade-km-input input {
    width: 100%;
    height: 56px;
    padding: 0 44px 0 12px;
    border: 1px solid var(--control-border, #dbe3ec);
    border-radius: 16px;
    background: var(--control-surface, #f4f6f9);
    color: var(--control-ink, #17324e);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    font-variant-numeric: tabular-nums;
    box-shadow: inset 0 1px 2px rgba(0, 30, 80, .025);
}
.gimsa-intake-root .trade-km-input input::placeholder { color: #9aabba; font-weight: 700; }
.gimsa-intake-root .trade-km-input input:focus { border-color: var(--control-focus, #0068d7); background: #fff; box-shadow: 0 0 0 4px rgba(0, 104, 215, .13); outline: none; }
.gimsa-intake-root .trade-km-input span { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: #6b8195; font-size: 14px; font-weight: 800; pointer-events: none; }
.gimsa-intake-root .trade-mileage.invalid-selection .trade-km-input input { border-color: #cb4f4f; background: #fffafa; }

/* Financiamiento. */
.gimsa-intake-root .segmented-stacked .segment > span { flex-direction: column; gap: 3px; min-height: 66px; padding: 10px 8px; text-align: center; }
.gimsa-intake-root .segmented-stacked .segment > span small { color: #688096; font-size: 12px; font-weight: 600; line-height: 1.25; }
.gimsa-intake-root .segmented-stacked .segment > input:checked + span small { color: #2a5f94; }
.gimsa-intake-root .trade-balance { display: grid; gap: 6px; margin-top: 6px; }
.gimsa-intake-root .trade-balance > label { color: #405972; font-size: 13px; font-weight: 700; }

@media (max-width: 760px) {
    .gimsa-intake-root .trade-brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .gimsa-intake-root .trade-brand-tile { min-height: 82px; padding: 10px 4px 9px; border-radius: 16px; }
    .gimsa-intake-root .trade-brand-logo { width: 34px; height: 30px; }
    .gimsa-intake-root .trade-brand-name { font-size: 12px; }
    .gimsa-intake-root .trade-chip { min-height: 46px; }
    .gimsa-intake-root .trade-chips-compact .trade-chip { min-height: 40px; }
    .gimsa-intake-root .trade-km-control { grid-template-columns: 52px minmax(0, 1fr) 52px; }
    .gimsa-intake-root .segmented-stacked .segment > span { min-height: 70px; }
    /* En celular, los años y los kilómetros de referencia van en UNA sola línea que se desliza de lado. */
    .gimsa-intake-root .trade-chips-years,
    .gimsa-intake-root .trade-chips-compact {
        flex-wrap: nowrap;
        margin: -4px -4px 0;
        padding: 4px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .gimsa-intake-root .trade-chips.is-scrollable { padding-right: 66px; scroll-padding-right: 66px; }
    .gimsa-intake-root .trade-rail { position: relative; }
    .gimsa-intake-root .trade-scroll-cue {
        position: absolute;
        top: 0;
        right: -4px;
        bottom: 0;
        z-index: 3;
        display: flex;
        width: 88px;
        align-items: center;
        justify-content: flex-end;
        gap: 2px;
        padding-right: 6px;
        background: linear-gradient(90deg, rgba(251, 252, 253, 0), #fbfcfd 46%);
        color: #35698f;
        font: inherit;
        font-size: 10px;
        font-weight: 850;
        border: 0;
        cursor: pointer;
        /* Es un botón: tocarlo desliza la fila (antes el toque caía en el año o kilometraje de abajo y lo elegía). */
        pointer-events: auto;
        -webkit-tap-highlight-color: transparent;
    }
    .gimsa-intake-root .trade-scroll-cue svg { width: 17px; height: 17px; animation: tradeScrollCue 1.25s ease-in-out infinite; }
    .gimsa-intake-root .trade-chips-years::-webkit-scrollbar,
    .gimsa-intake-root .trade-chips-compact::-webkit-scrollbar { display: none; }
    .gimsa-intake-root .trade-chips-years .trade-chip,
    .gimsa-intake-root .trade-chips-compact .trade-chip { flex: 0 0 auto; scroll-snap-align: start; }
}

/* ===== Selector tipo rueda (menú de cristal sobre la pantalla) ===== */
.gimsa-intake-root .wheel-shell,
.wheel-shell {
    position: fixed;
    inset: 0;
    z-index: 10080;
    display: grid;
    place-items: end center;
    padding: 0;
    /* Fondo blanco al 70 % (30 % translúcido) con desenfoque en toda la pantalla; el menú va encima, de cristal.
       Sin opacidad propia, para que el desenfoque se anime bien. */
    background: rgba(255, 255, 255, 0);
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
    transition: background-color .35s ease, -webkit-backdrop-filter .35s ease, backdrop-filter .35s ease;
}
.wheel-shell.is-in {
    background: rgba(255, 255, 255, .7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.wheel-backdrop { position: absolute; inset: 0; }
.wheel-sheet {
    position: relative;
    display: flex;
    width: min(440px, 100%);
    flex-direction: column;
    overflow: hidden;
    border-radius: 26px 26px 0 0;
    /* Cristal muy transparente solo en el menú (lo de atrás no se desenfoca), con un desenfoque suave. */
    border: 1px solid rgba(255, 255, 255, .55);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .16)),
        rgba(196, 212, 234, .1);
    -webkit-backdrop-filter: blur(6px) saturate(150%);
    backdrop-filter: blur(6px) saturate(150%);
    box-shadow: 0 -16px 44px rgba(11, 36, 64, .22), 0 2px 4px rgba(11, 36, 64, .1), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .16);
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    transform: translateY(60px) scale(.97);
    opacity: 0;
    transition: transform .5s cubic-bezier(.2, .9, .25, 1.08), opacity .3s ease;
}
.wheel-shell.is-in .wheel-sheet { transform: none; opacity: 1; }
@media (min-width: 700px) {
    .gimsa-intake-root .wheel-shell,
    .wheel-shell { place-items: center; padding: 24px; }
    .wheel-sheet { border-radius: 28px; padding-bottom: 16px; transform: translateY(28px) scale(.94); }
    .wheel-shell.is-in .wheel-sheet { transform: none; }
}
.wheel-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 14px 16px 8px; }
.wheel-head h3 { margin: 0; color: #17324e; font-size: 16px; font-weight: 800; text-align: center; letter-spacing: -.01em; }
.wheel-cancel,
.wheel-done {
    min-height: 44px;
    padding: 0 10px;
    border: 0;
    background: none;
    color: #0068d7;
    font: 600 16px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    cursor: pointer;
}
.wheel-cancel { justify-self: start; color: #5a7389; }
.wheel-done { justify-self: end; font-weight: 800; }
.wheel-done:disabled { color: #9db0c2; cursor: default; }
.wheel-body { position: relative; height: 230px; margin: 0 16px; }
.wheel-band {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    z-index: 0;
    height: 46px;
    margin-top: -23px;
    border-radius: 13px;
    background: rgba(118, 130, 150, .17);
    pointer-events: none;
}
.wheel-list {
    position: relative;
    z-index: 1;
    height: 100%;
    margin: 0;
    padding: 92px 0;
    overflow-y: auto;
    list-style: none;
    outline: none;
    perspective: 560px;
    perspective-origin: 50% 50%;
    scroll-snap-type: y mandatory;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26%, #000 74%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 26%, #000 74%, transparent 100%);
}
.wheel-list::-webkit-scrollbar { display: none; }
.wheel-list li {
    display: flex;
    height: 46px;
    align-items: center;
    justify-content: center;
    color: #2a3f55;
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -.01em;
    cursor: pointer;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    transform-origin: 50% 50%;
    will-change: transform, opacity;
    user-select: none;
    -webkit-user-select: none;
}
.wheel-list li.is-active { color: #0a2b52; font-weight: 700; }
/* Las marcas se alinean a la izquierda para que todos los logotipos queden en una columna. */
.wheel-list[data-wheel-list="brand"] li { justify-content: flex-start; padding-left: 28px; }
.wheel-foot { display: grid; gap: 6px; padding: 12px 16px 0; }
.wheel-choose {
    min-height: 54px;
    border: 0;
    border-radius: 16px;
    background: #0068d7;
    color: #fff;
    font: 600 17px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 104, 215, .3);
    transition: transform .14s ease, background .14s ease;
}
.wheel-choose b { font-weight: 800; }
.wheel-choose:active { transform: scale(.98); }
.wheel-choose:disabled { background: #a9c6e8; box-shadow: none; }
.wheel-manual { min-height: 44px; border: 0; background: none; color: #36608a; font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
    .gimsa-intake-root .trade-chip,
    .gimsa-intake-root .trade-brand-tile,
    .gimsa-intake-root .trade-brand-check,
    .wheel-shell,
    .wheel-sheet { transition-duration: .01ms; }
}

/* Buscador de marcas y logos en la rueda. */
.wheel-search { display: flex; align-items: center; gap: 8px; height: 42px; margin: 2px 16px 6px; padding: 0 12px; border-radius: 12px; background: rgba(118, 130, 150, .16); color: #4d6a84; }
.wheel-search i { font-size: 19px; }
.wheel-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #17324e; font: 500 16px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
.gimsa-intake-root .wheel-search input,
.gimsa-intake-root .wheel-search input:focus { border: 0; outline: 0; background: transparent; box-shadow: none; }
.wheel-search input::placeholder { color: #6f879c; }
.wheel-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.wheel-list li[hidden] { display: none; }
.wheel-list li { gap: 12px; }
/* Logotipo junto al nombre: siempre a color (los de una tinta con el color de la marca; los demás, su imagen). */
.wheel-logo { display: block; width: 46px; height: 28px; flex: 0 0 46px; }
.wheel-logo.is-mask { background: var(--brand, #0a2b52); -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.wheel-logo.is-image { background: var(--logo) center / contain no-repeat; }
.wheel-name { min-width: 0; white-space: nowrap; }
.wheel-empty { display: grid; height: 100%; margin: 0; place-items: center; padding: 0 20px; color: #4d6a84; font-size: 15px; font-weight: 600; text-align: center; }

@keyframes tradeScrollCue {
    0%, 100% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
}
@media (min-width: 761px) {
    .gimsa-intake-root .trade-scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .gimsa-intake-root .trade-scroll-cue svg { animation: none; }
}
