/* wizard.css — funnel components restyled to freenet's REAL design (reskin).
 * Same class names as the views; only the look changes. Navy + lime green,
 * Open Sans / Montserrat, navy pill CTAs, freenet-red errors. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--fn-font-body);
  color: var(--fn-ink);
  background: var(--fn-soft);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* freenet header bar */
.fn-header {
  background: var(--fn-navy);
}
.fn-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}
.fn-header__mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: block;
}
.fn-header__word {
  font-family: var(--fn-font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: -.01em;
}

/* layout shell */
.wizard {
  max-width: var(--fn-maxw);
  margin: 0 auto;
  padding: var(--fn-gap-lg) var(--fn-gap) 80px;
}
.wizard__step {
  background: var(--fn-surface);
  border-radius: var(--fn-radius);
  box-shadow: var(--fn-shadow);
  padding: var(--fn-gap-lg);
}
.wizard__step > h1 {
  font-family: var(--fn-font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--fn-navy);
  margin: 0 0 var(--fn-gap-lg);
  letter-spacing: -.01em;
}
.wizard__step p { color: var(--fn-slate); }

/* progress: step N of 6 — lime green for completed */
.wizard__progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--fn-gap-lg);
}
.wizard__progress-dot {
  flex: 1 1 auto;
  height: 6px;
  border-radius: 999px;
  background: #cfd6e4;
}
.wizard__progress-dot.is-done { background: var(--fn-green); }
.wizard__progress-dot.is-current { background: var(--fn-green-2); }
.wizard__progress-label {
  flex: 0 0 auto;
  font-size: .8125rem;
  color: var(--fn-slate);
  font-weight: 700;
  margin-left: 4px;
}

/* form fields */
.field { margin-bottom: var(--fn-gap); }
.field > label {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  color: var(--fn-navy);
  margin-bottom: 6px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="date"],
.field input[type="tel"],
.field select {
  width: 100%;
  min-height: var(--fn-tap);
  padding: 0 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--fn-ink);
  background: var(--fn-surface);
  border: 1px solid #c7cede;
  border-radius: var(--fn-radius-input);
  appearance: none;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--fn-green-d);
  box-shadow: 0 0 0 3px rgba(132, 188, 52, .25);
}
.field__hint { font-size: .8125rem; color: var(--fn-slate); margin-top: 6px; }
.field__error { display: none; font-size: .8125rem; color: var(--fn-red); margin-top: 6px; font-weight: 700; }

/* invalid state — freenet red */
.field.is-invalid input,
.field.is-invalid select { border-color: var(--fn-red); }
.field.is-invalid .field__error { display: block; }

/* checkbox row (SEPA mandate) */
.field--check { display: flex; align-items: flex-start; gap: 12px; }
.field--check input[type="checkbox"] { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--fn-green-d); }
.field--check label { font-weight: 400; font-size: .9375rem; color: var(--fn-slate); }

/* buttons — freenet primary CTA is NAVY, pill-radius */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--fn-tap);
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--fn-font-body);
  border: none;
  border-radius: var(--fn-radius-btn);
  cursor: pointer;
  text-decoration: none;
}
.btn--primary { background: var(--fn-navy); color: #fff; width: 100%; min-height: 54px; }
.btn--primary:hover { background: var(--fn-navy-2); }
.btn--ghost { background: transparent; color: var(--fn-navy); border: 1px solid #c7cede; }
.wizard__actions { margin-top: var(--fn-gap-lg); }

/* tariff cards */
.tariff-list { display: grid; gap: 12px; }
.tariff-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-height: var(--fn-tap);
  padding: 16px 18px;
  text-align: left;
  background: var(--fn-surface);
  border: 1px solid #d7dce8;
  border-radius: var(--fn-radius);
  cursor: pointer;
  font-family: inherit;
}
.tariff-card:hover { border-color: var(--fn-green); }
.tariff-card.is-selected { border-color: var(--fn-green-d); background: var(--fn-green-light); box-shadow: 0 0 0 2px rgba(132, 188, 52, .35); }
/* recommended tariff — green emphasis + badge */
.tariff-card--recommended { border: 2px solid var(--fn-green-d); }
.tariff-card__badge {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--fn-navy);
  background: var(--fn-green);
  padding: 4px 10px;
  border-radius: var(--fn-radius-pill);
}
.tariff-card__row { display: flex; align-items: center; gap: 12px; }
.tariff-card__main { flex: 1 1 auto; min-width: 0; }
.tariff-card__name { display: block; font-family: var(--fn-font-display); font-weight: 800; font-size: 1.1rem; color: var(--fn-navy); }
.tariff-card__data { display: block; font-size: .8125rem; color: var(--fn-slate); font-weight: 600; margin-top: 2px; }
.tariff-card__price { flex: 0 0 auto; text-align: right; white-space: nowrap; }
.tariff-card__price .price { display: block; font-size: 1.15rem; }
.tariff-card__per { display: block; font-size: .72rem; color: var(--fn-slate); font-weight: 600; }
.tariff-card__chevron { flex: 0 0 auto; font-size: 1.6rem; line-height: 1; color: var(--fn-green-d); font-weight: 700; }

/* summary rows */
.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--fn-line);
}
.summary-row__label { color: var(--fn-slate); font-size: .875rem; }
.summary-row__value { text-align: right; color: var(--fn-ink); font-weight: 600; }
.wizard__step h2 {
  font-family: var(--fn-font-display);
  font-size: 1.15rem; font-weight: 800; color: var(--fn-navy);
  margin: var(--fn-gap-lg) 0 4px;
}

/* prices — navy display; IBAN mono for legibility */
.price { font-family: var(--fn-font-display); font-weight: 800; color: var(--fn-navy); font-variant-numeric: tabular-nums; }
.iban { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* confirmation success — lime green */
.confirm-success__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fn-green-d);
  font-weight: 800;
  font-family: var(--fn-font-display);
  margin-bottom: var(--fn-gap);
}
.confirm-success__ref { font-family: ui-monospace, Menlo, Consolas, monospace; }

/* green check bullets */
.checks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--fn-ink); }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--fn-green-d); font-weight: 900;
}

/* back navigation between steps */
.wizard__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: .875rem;
  font-weight: 700;
  color: var(--fn-navy);
  text-decoration: none;
  min-height: 44px;
}
.wizard__back:hover { color: var(--fn-green-d); }

/* sticky primary action on mobile — ONLY on the long review page (summary), where
   there are no input fields to hide. Short form steps keep a static CTA so the
   sticky bar never covers the last field. */
@media (max-width: 640px) {
  .wizard__step:has(.wizard__actions--sticky) { padding-bottom: 88px; }
  .wizard__actions--sticky {
    position: sticky;
    bottom: 0;
    margin: var(--fn-gap-lg) -24px -24px;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--fn-line);
    box-shadow: 0 -4px 16px rgba(9, 32, 67, .08);
    border-bottom-left-radius: var(--fn-radius);
    border-bottom-right-radius: var(--fn-radius);
  }
}
