:root {
  --ink: #07111f;
  --ink-2: #102033;
  --ink-3: #1b3048;
  --paper: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #eef4f8;
  --line: #dbe5ee;
  --muted: #657386;
  --muted-dark: #aab8c9;
  --cyan: #13b7c8;
  --cyan-2: #087995;
  --mint: #1ec99b;
  --coral: #f26d5b;
  --success: #11966e;
  --danger: #cc4b37;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(7, 17, 31, .12);
  --shadow-soft: 0 10px 30px rgba(7, 17, 31, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: inherit; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(219, 229, 238, .78);
  background: rgba(247, 249, 252, .9);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; min-width: 190px; }
.brand img { width: 150px; height: auto; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.platform-link { padding: 9px 11px; border-radius: var(--radius); color: var(--muted); font-size: 13px; font-weight: 700; }
.platform-link:hover { color: var(--ink); background: var(--surface-2); }
.secure-label { display: flex; align-items: center; gap: 8px; color: var(--cyan-2); font-size: 13px; font-weight: 750; }
.secure-label svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

main { min-height: calc(100vh - 140px); }
.intro {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 72px 24px 122px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(7,17,31,.98), rgba(7,17,31,.9) 52%, rgba(7,17,31,.72)),
    url("huj-preview/assets/huj-hero.png") center / cover;
  overflow: hidden;
}
.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, transparent 82%);
}
.intro > * { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 21px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); color: #c8f7ff; background: rgba(8,121,149,.16); font-size: 12px; font-weight: 750; text-transform: none; letter-spacing: 0; }
.eyebrow.light { margin-bottom: 18px; color: var(--cyan-2); background: rgba(19,183,200,.1); border-color: rgba(19,183,200,.18); }
.signal { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(30,201,155,.16); }
h1, h2 { margin-top: 0; letter-spacing: 0; }
h1 { max-width: 780px; margin: 0 auto; font-size: clamp(38px, 5vw, 64px); font-weight: 850; line-height: 1.03; }
.intro-copy { max-width: 650px; margin: 22px auto; color: rgba(255,255,255,.7); font-size: 17px; line-height: 1.65; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; color: rgba(255,255,255,.76); font-size: 13px; font-weight: 650; }
.trust-row b { display: inline-grid; place-items: center; width: 21px; height: 21px; margin-right: 6px; border-radius: 50%; color: #baffea; background: rgba(30,201,155,.16); }

.application-shell { position: relative; z-index: 2; width: min(1120px, calc(100% - 40px)); min-height: 670px; margin: -66px auto 72px; display: grid; grid-template-columns: 285px minmax(0, 1fr); border: 1px solid rgba(219,229,238,.72); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.progress-panel { position: relative; padding: 42px 34px; color: white; background: linear-gradient(165deg, var(--ink), #0a2637); overflow: hidden; }
.progress-panel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 36px 36px; }
.progress-panel::after { content: ""; position: absolute; width: 260px; height: 260px; left: -140px; bottom: -140px; border: 46px solid rgba(19,183,200,.1); border-radius: 50%; }
.progress-kicker { position: relative; margin: 0 0 30px; color: #c8f7ff; font-size: 10px; font-weight: 800; letter-spacing: 1.8px; }
.steps { position: relative; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; display: flex; gap: 14px; min-height: 79px; opacity: .47; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 35px; left: 15px; height: 31px; width: 1px; background: rgba(255,255,255,.25); }
.steps li.active, .steps li.complete { opacity: 1; }
.step-number { flex: none; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; font-size: 12px; font-weight: 800; }
.steps .active .step-number { border-color: transparent; color: white; background: linear-gradient(135deg, var(--cyan-2), var(--cyan), var(--mint)); box-shadow: 0 8px 20px rgba(19,183,200,.24); }
.steps .complete .step-number { border-color: rgba(30,201,155,.6); color: transparent; }
.steps .complete .step-number::before { content: "✓"; position: absolute; color: #9cf5d9; }
.steps b { display: block; margin: 2px 0 4px; font-size: 14px; }
.steps small { color: var(--muted-dark); font-size: 12px; }
.help-card { position: absolute; z-index: 1; left: 32px; right: 32px; bottom: 34px; display: flex; gap: 12px; padding: 15px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); background: rgba(255,255,255,.07); }
.help-icon { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; color: #c8f7ff; }
.help-card b, .help-card small { display: block; }
.help-card b { margin-bottom: 3px; font-size: 12px; }
.help-card small { color: var(--muted-dark); font-size: 10px; line-height: 1.35; }

.form-panel { min-width: 0; padding: 48px 56px 34px; }
.form-step { display: none; animation: reveal .28s ease; }
.form-step.active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } }
.section-heading { margin-bottom: 29px; }
.section-heading h2 { margin: 0 0 8px; font-size: 30px; font-weight: 820; line-height: 1.16; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
h3 { margin: 28px 0 16px; color: var(--ink-2); font-size: 13px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }

.tariff-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tariff-card { position: relative; min-height: 186px; padding: 23px 18px 17px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.tariff-card:hover { border-color: rgba(19,183,200,.55); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.tariff-card:has(input:checked) { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan), 0 12px 28px rgba(19,183,200,.13); background: linear-gradient(155deg, rgba(19,183,200,.055), white 58%); }
.tariff-card input { position: absolute; opacity: 0; }
.tariff-check { position: absolute; top: 15px; right: 15px; width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #bdcbd5; border-radius: 50%; color: transparent; font-size: 11px; }
.tariff-card:has(input:checked) .tariff-check { color: white; border-color: transparent; background: linear-gradient(135deg, var(--cyan-2), var(--mint)); }
.tariff-card small, .tariff-card strong, .tariff-card > span:not(.tariff-check):not(.recommendation), .tariff-card b, .tariff-card em { display: block; }
.tariff-card small { color: var(--cyan-2); font-size: 9px; font-weight: 850; letter-spacing: 1.3px; }
.tariff-card strong { margin: 1px 0 10px; font-size: 27px; font-weight: 850; }
.tariff-card > span:not(.tariff-check):not(.recommendation) { min-height: 38px; color: var(--muted); font-size: 12px; }
.tariff-card b { font-size: 14px; font-weight: 800; }
.tariff-card em { color: var(--muted); font-size: 10px; font-style: normal; }
.recommendation { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 4px 10px; border-radius: 20px; color: white; background: linear-gradient(135deg, #ed7a54, var(--coral)); font-size: 8px; font-weight: 850; letter-spacing: 1px; }
.fine-print { margin: 9px 0 24px; color: #8290a0; font-size: 9px; }
.quote-fields { margin-bottom: 14px; }
.quote-action { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 18px; border: 1px solid rgba(19,183,200,.2); border-radius: var(--radius); background: linear-gradient(135deg, rgba(19,183,200,.07), rgba(30,201,155,.05)); }
.quote-action b, .quote-action > div > span { display: block; }
.quote-action b { margin-bottom: 4px; color: var(--ink-2); font-size: 13px; }
.quote-action > div > span { color: var(--muted); font-size: 10px; }
.quote-button { flex: none; color: white; background: linear-gradient(135deg, var(--cyan-2), var(--cyan) 52%, var(--mint)); box-shadow: 0 10px 22px rgba(19,183,200,.2); }
.quote-button.loading span { display: none; }
.quote-button.loading::after { content: ""; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.45); border-top-color: white; border-radius: 50%; animation: quote-spin .7s linear infinite; }
@keyframes quote-spin { to { transform: rotate(360deg); } }
.quote-message { display: none; margin: 12px 0 0; padding: 11px 13px; border-radius: var(--radius); font-size: 11px; line-height: 1.45; }
.quote-message.visible { display: block; }
.quote-message.error { color: #912f21; border: 1px solid rgba(204,75,55,.18); background: #fff1ee; }
.quote-message.success { color: #087457; border: 1px solid rgba(17,150,110,.18); background: #edfff8; }
.quote-results { margin-top: 29px; animation: reveal .3s ease; }
.quote-results-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.quote-results-heading small { color: var(--cyan-2); font-size: 9px; font-weight: 850; letter-spacing: 1.3px; }
.quote-results-heading h3 { margin: 4px 0 0; font-size: 17px; text-transform: none; letter-spacing: 0; }
.quote-results-heading > span { color: var(--muted); font-size: 10px; }
.tariff-card .tariff-price { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.tariff-card .tariff-price strong { display: block; margin: 0; color: var(--ink); font-size: 20px; line-height: 1.1; }
.tariff-card .tariff-price span { display: block; min-height: 0; margin-top: 3px; color: var(--muted); font-size: 9px; }
.insurance-status-field { max-width: 430px; margin-top: 22px; }

.field-grid { display: grid; gap: 17px; margin-bottom: 18px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
.field-grid.three { grid-template-columns: repeat(3, 1fr); }
.field-grid.compact-first { grid-template-columns: .65fr 1fr 1fr; }
.field-grid.address { grid-template-columns: 1.7fr .6fr .65fr 1fr; }
.field { display: block; }
.field > span { display: block; margin-bottom: 7px; color: var(--ink-2); font-size: 12px; font-weight: 700; }
input, select { width: 100%; height: 46px; padding: 0 13px; border: 1px solid #cbd8e2; border-radius: var(--radius); outline: none; color: var(--ink); background: #fbfdff; transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease; }
input:hover, select:hover { border-color: #a9bdcb; background: white; }
input:focus, select:focus { border-color: var(--cyan-2); background: white; box-shadow: 0 0 0 3px rgba(19,183,200,.12); }
.field.invalid input, .field.invalid select, .question-card.invalid { border-color: var(--danger); }
.error { display: none; margin-top: 5px; color: var(--danger); font-size: 10px; }
.invalid > .error, .question-card.invalid > .error { display: block; }
.hint { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.conditional { display: none; max-width: 260px; margin: 17px 0 27px; }
.conditional.visible { display: block; }

.question-card { padding: 20px; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfdff; }
.question-card legend { float: left; width: 100%; margin-bottom: 7px; font-size: 15px; font-weight: 780; }
.question-card p { clear: both; margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.choice-row { display: flex; gap: 10px; }
.choice-row label { min-width: 100px; }
.choice-row input { position: absolute; opacity: 0; }
.choice-row span { display: grid; place-items: center; height: 40px; border: 1px solid #cbd8e2; border-radius: var(--radius); background: white; cursor: pointer; font-size: 13px; font-weight: 700; }
.choice-row input:checked + span { color: var(--cyan-2); border-color: var(--cyan); background: rgba(19,183,200,.08); box-shadow: inset 0 0 0 1px rgba(19,183,200,.15); }
.security-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.security-note span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--cyan-2); background: rgba(19,183,200,.1); }

.review { border: 1px solid var(--line); border-radius: var(--radius); background: #fbfdff; overflow: hidden; }
.review-section { padding: 15px 18px; display: grid; grid-template-columns: 150px 1fr; gap: 14px; border-bottom: 1px solid var(--line); font-size: 12px; }
.review-section:last-child { border-bottom: 0; }
.review-section b { color: var(--muted); }
.review-section span { white-space: pre-line; }
.consents { margin: 22px 0 5px; }
.consents label { display: flex; gap: 10px; margin: 12px 0; color: var(--ink-3); font-size: 11px; line-height: 1.45; }
.consents input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--cyan-2); }
.sepa-consent { margin-top: 16px; }
.submit-message { display: none; margin: 15px 0 0; padding: 12px; border: 1px solid rgba(204,75,55,.18); border-radius: var(--radius); color: #912f21; background: #fff1ee; font-size: 12px; }
.submit-message.visible { display: block; }

.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding-top: 23px; border-top: 1px solid var(--line); }
.button { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; font-size: 13px; font-weight: 750; line-height: 1; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button.primary { margin-left: auto; color: white; background: linear-gradient(135deg, var(--cyan-2), var(--cyan) 52%, var(--mint)); box-shadow: 0 13px 28px rgba(19,183,200,.25); }
.button.secondary { display: none; color: var(--ink); border-color: var(--line); background: white; }
.button:disabled { opacity: .6; cursor: wait; transform: none; }
#submitButton { display: none; }
.step-hint { color: #8290a0; font-size: 10px; }
.mobile-progress { display: none; }

.success-state { display: none; max-width: 500px; margin: 90px auto; text-align: center; }
.success-state.visible { display: block; animation: reveal .35s ease; }
.success-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 50%; color: white; background: linear-gradient(135deg, var(--cyan-2), var(--mint)); box-shadow: 0 14px 30px rgba(19,183,200,.22); font-size: 26px; }
.success-state h2 { margin: 0 0 13px; font-size: 32px; }
.success-state > p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.6; }
.reference { display: inline-block; margin-top: 16px; padding: 10px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); font-size: 12px; }

footer { min-height: 76px; max-width: 1120px; margin: auto; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 11px; }
.footer-brand img { width: 126px; }
footer nav { display: flex; gap: 24px; }
footer nav a:hover { color: var(--cyan-2); }

@media (max-width: 820px) {
  .intro { padding: 58px 24px 100px; }
  .application-shell { grid-template-columns: 1fr; width: min(680px, calc(100% - 24px)); margin-top: -52px; }
  .progress-panel { display: none; }
  .form-panel { padding: 30px 25px; }
  .mobile-progress { display: block; margin-bottom: 27px; color: var(--muted); font-size: 11px; }
  .mobile-progress i { display: block; height: 5px; margin-top: 8px; border-radius: 10px; background: #e0eaf0; overflow: hidden; }
  .mobile-progress b { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan-2), var(--cyan), var(--mint)); transition: width .25s; }
}

@media (max-width: 580px) {
  body { overflow-x: hidden; }
  .site-header { min-height: 64px; padding: 0 16px; }
  .brand { min-width: 0; }
  .brand img { width: 128px; }
  .platform-link { display: none; }
  .secure-label { font-size: 0; }
  .intro { padding: 48px 18px 85px; }
  h1 { font-size: 34px; }
  .intro-copy { font-size: 15px; }
  .trust-row { gap: 9px 12px; font-size: 10px; }
  .application-shell { margin-bottom: 36px; border-radius: var(--radius); }
  .form-panel { padding: 25px 18px; }
  .tariff-grid { grid-template-columns: 1fr; }
  .tariff-card { min-height: 128px; }
  .quote-action { align-items: stretch; flex-direction: column; }
  .quote-button { width: 100%; }
  .quote-results-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .field-grid.two, .field-grid.three, .field-grid.compact-first, .field-grid.address { grid-template-columns: 1fr; }
  .field-grid { gap: 14px; margin-bottom: 14px; }
  .section-heading h2 { font-size: 25px; }
  .step-hint { display: none; }
  .button { padding: 0 14px; }
  .review-section { grid-template-columns: 1fr; gap: 4px; }
  footer { padding: 24px 16px; flex-direction: column; }
  footer nav { flex-wrap: wrap; justify-content: center; gap: 12px 20px; }
}
