/*
 * VehicleCoverageRates — стиль воронки. Полюс, противоположный CarCoverageRates:
 * холодный техно-минимализм вместо тёплого "бумажного бланка". Не переиспользует
 * ни один класс/цвет ни эталонной воронки (небесно-голубой #00b3ff, system-ui,
 * радиус 20px), ни CarCoverageRates (`/car/funnel.css`, песочный фон,
 * чернильный синий + янтарь, Roboto Slab, боксы с рамками).
 *
 * Направление: "современный инструмент", не бланк и не типовой SaaS-шаблон.
 * Почти прямые углы (радиус 2px), заливок почти нет — структура держится на
 * тонких линиях-разделителях, а не на рамках карточек. Один акцент —
 * холодная бирюза, применяется точечно (прогресс, активные состояния,
 * кнопка). Шрифты узкие и техничные: Barlow Condensed в заголовках,
 * IBM Plex Sans в тексте — ни одного шрифта общего с CarCoverageRates.
 */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  /* поверхности — холодный, почти белый серо-голубой, не тёплый песок */
  --v2-bg: #f2f5f6;
  --v2-bg-deep: #e5ebed;
  --v2-surface: #ffffff;
  --v2-surface-alt: #eaf0f1;

  /* графитовый, почти чёрный — основной текст, НЕ чернильно-синий CarCoverageRates */
  --v2-ink: #12181b;
  --v2-ink-soft: #55636b;

  /* холодная бирюза — единственный акцент, применяется точечно */
  --v2-accent: #0e9c93;
  --v2-accent-deep: #076f68;
  --v2-accent-wash: #e7f5f3;

  --v2-line: #d6dfe2;
  --v2-line-strong: #b3c0c4;
  --v2-text: #171d20;
  --v2-text-muted: #5c6a70;
  --v2-error: #a8281f;
  --v2-error-bg: #fbeceb;

  --v2-radius: 2px;
  --v2-font-head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --v2-font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.v2-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--v2-bg);
  color: var(--v2-text);
  font-family: var(--v2-font-body);
  font-size: 15px;
  line-height: 1.5;
}

.v2-app *,
.v2-app *::before,
.v2-app *::after {
  box-sizing: border-box;
}

/* ---------- Topbar ---------- */

.v2-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--v2-line-strong);
  background: var(--v2-surface);
}

.v2-brand {
  font-family: var(--v2-font-head);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--v2-ink);
  text-decoration: none;
}

.v2-topbar__badge {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v2-ink-soft);
  white-space: nowrap;
}

/* ---------- Main / progress ---------- */

.v2-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 56px;
}

.v2-progress {
  width: 100%;
  max-width: 600px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.v2-progress__track {
  flex: 1;
  height: 2px;
  background: var(--v2-line);
  overflow: hidden;
}

.v2-progress__fill {
  height: 100%;
  background: var(--v2-accent);
  transition: width 240ms ease;
}

.v2-progress__label {
  flex: none;
  font-family: var(--v2-font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--v2-ink-soft);
  min-width: 2.6em;
  text-align: right;
}

/* ---------- Panel (no card box, no shadow — a thin top rule instead) ---------- */

.v2-card {
  width: 100%;
  max-width: 600px;
  padding-top: 22px;
  border-top: 2px solid var(--v2-ink);
}

.v2-badge {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-accent-deep);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--v2-accent);
}

.v2-title {
  margin: 0 0 6px;
  font-family: var(--v2-font-head);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--v2-ink);
}

.v2-subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--v2-text-muted);
}

.v2-title + .v2-body,
.v2-subtitle + .v2-body {
  margin-top: 22px;
}

.v2-body {
  margin-top: 14px;
}

.v2-error {
  margin: 16px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--v2-error);
  color: var(--v2-error);
  font-size: 13px;
  font-weight: 500;
}

/* ---------- Buttons ---------- */

.v2-btn {
  font-family: var(--v2-font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: var(--v2-radius);
  padding: 13px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, opacity 120ms ease;
}

.v2-btn--primary {
  background: var(--v2-accent-deep);
  color: #f4fdfc;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.v2-btn--primary:hover {
  background: #065b56;
}
.v2-btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.v2-btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--v2-ink-soft);
  padding-left: 0;
  padding-right: 0;
}
.v2-btn--ghost::before {
  content: '←';
  margin-right: 6px;
}
.v2-btn--ghost:hover {
  color: var(--v2-ink);
}
.v2-btn--ghost:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.v2-btn--block {
  display: block;
  width: 100%;
  text-align: center;
}

.v2-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--v2-line);
}

/* ---------- Radio options — hairline list, not boxed cards ---------- */

.v2-options {
  display: flex;
  flex-direction: column;
}

.v2-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 15px 4px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--v2-line);
  font-family: var(--v2-font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--v2-text);
  cursor: pointer;
  transition: color 120ms ease, padding-left 120ms ease;
}

.v2-option:last-child {
  border-bottom: 1px solid var(--v2-line);
}

.v2-option:hover {
  color: var(--v2-accent-deep);
  padding-left: 8px;
}

.v2-option__mark {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--v2-line-strong);
  background: transparent;
}

.v2-option.is-active {
  color: var(--v2-accent-deep);
  font-weight: 600;
  padding-left: 8px;
}
.v2-option.is-active .v2-option__mark {
  border-color: var(--v2-accent);
  background: var(--v2-accent);
}

/* ---------- Vehicle year / make / model pickers ---------- */

.v2-picker {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.v2-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--v2-line);
  border: 1px solid var(--v2-line);
}

.v2-tile {
  flex: 1 1 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 78px;
  padding: 10px 8px;
  background: var(--v2-surface);
  border: none;
  font-family: var(--v2-font-body);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--v2-text);
  cursor: pointer;
  transition: color 120ms ease, box-shadow 120ms ease;
}
.v2-tile:hover {
  color: var(--v2-accent-deep);
}
.v2-tile img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  transition: filter 120ms ease;
}
.v2-tile:hover img,
.v2-tile.is-active img {
  filter: none;
}
.v2-tile.is-active {
  color: var(--v2-accent-deep);
  font-weight: 600;
  box-shadow: inset 0 0 0 2px var(--v2-accent);
}

.v2-tile--year {
  flex-basis: 72px;
  min-height: 52px;
  font-family: var(--v2-font-head);
  font-size: 16px;
}

.v2-picker__search {
  padding-top: 18px;
  border-top: 1px solid var(--v2-line);
}

.v2-picker__search-wrap {
  position: relative;
}

.v2-picker__results {
  position: absolute;
  z-index: 5;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--v2-surface);
  border: 1px solid var(--v2-line-strong);
  max-height: 220px;
  overflow-y: auto;
}

.v2-picker__result {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--v2-line);
  font-family: var(--v2-font-body);
  font-size: 14px;
  color: var(--v2-text);
  cursor: pointer;
}
.v2-picker__result:last-child {
  border-bottom: none;
}
.v2-picker__result:hover {
  color: var(--v2-accent-deep);
  background: var(--v2-surface-alt);
}

.v2-picker__no-results {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--v2-text-muted);
}

.v2-hint {
  margin: 0;
  font-size: 13px;
  color: var(--v2-text-muted);
}

/* ---------- Inputs — underline style, no boxed borders ---------- */

.v2-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v2-ink-soft);
}

.v2-input,
.v2-select {
  width: 100%;
  font-family: var(--v2-font-body);
  font-size: 15px;
  color: var(--v2-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--v2-line-strong);
  border-radius: 0;
  padding: 10px 2px;
}
.v2-input:focus,
.v2-select:focus {
  outline: none;
  border-bottom: 2px solid var(--v2-accent);
  padding-bottom: 9px;
}

.v2-input--narrow {
  max-width: 108px;
}

.v2-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.v2-row {
  display: flex;
  gap: 16px;
}
.v2-row__grow {
  flex: 1;
}

.v2-dob {
  display: flex;
  gap: 16px;
}
.v2-dob__field {
  flex: 1;
}

/* ---------- Loading ---------- */

.v2-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 34px 0;
  color: var(--v2-text-muted);
  font-size: 13px;
}

.v2-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--v2-line);
  border-top-color: var(--v2-accent);
  animation: v2-spin 750ms linear infinite;
}

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

/* ---------- Final loading step ---------- */

.v2-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 0 12px;
  text-align: center;
}

.v2-final__ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--v2-line);
  border-top-color: var(--v2-accent);
  animation: v2-spin 850ms linear infinite;
}

.v2-final p {
  margin: 0;
  font-family: var(--v2-font-head);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: var(--v2-ink);
}

/* ---------- Phone / TCPA ---------- */

.v2-final-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.v2-tcpa-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--v2-text);
  cursor: pointer;
}
.v2-tcpa-check input {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  accent-color: var(--v2-accent-deep);
}

.v2-tcpa {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--v2-line);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--v2-text-muted);
}
.v2-tcpa p {
  margin: 0;
}
.v2-tcpa a {
  color: var(--v2-accent-deep);
}

/* ---------- Secure note ---------- */

.v2-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: var(--v2-text-muted);
}
.v2-secure__icon {
  width: 13px;
  height: 13px;
  opacity: 0.7;
  filter: grayscale(1);
}

/* ---------- Footer ---------- */

.v2-footer {
  border-top: 1px solid var(--v2-line-strong);
  background: var(--v2-bg-deep);
}

.v2-footer__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 36px;
}

.v2-footer__brand {
  font-family: var(--v2-font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--v2-ink);
  margin-bottom: 12px;
}

.v2-footer__disclaimer {
  margin: 0 0 18px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--v2-text-muted);
}

.v2-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 14px;
}
.v2-footer__links a {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--v2-ink-soft);
  text-decoration: none;
}
.v2-footer__links a:hover {
  color: var(--v2-accent-deep);
}

.v2-footer__copy {
  margin: 0;
  font-size: 11px;
  color: var(--v2-text-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  .v2-topbar {
    padding: 14px 16px;
  }
  .v2-main {
    padding: 28px 16px 44px;
  }
  .v2-title {
    font-size: 26px;
  }
  .v2-tile {
    flex-basis: 82px;
    min-height: 70px;
  }
  .v2-tile--year {
    flex-basis: 60px;
    min-height: 48px;
  }
  .v2-row,
  .v2-dob {
    flex-direction: column;
    gap: 12px;
  }
}
