/* Switch Plus iPhone booking — mobile-first styles */

:root {
  --navy: #071f46;
  --navy-soft: #10305f;
  --accent: #2f6bff;
  --accent-dark: #1c4fd6;
  --ink: #0d1526;
  --muted: #5a6a83;
  --line: #dfe5ef;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --danger: #c02626;
  --danger-bg: #fdecec;
  --ok: #0f7b47;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(7, 31, 70, 0.08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.hidden { display: none !important; }

.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

/* ---------------------------------------------------------------- hero */

.hero {
  background: linear-gradient(150deg, var(--navy), var(--navy-soft));
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}

.brand {
  color: #fff;            /* drives the wordmark via currentColor */
  margin-bottom: 18px;
  line-height: 0;
}

.brand-logo {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

@media (min-width: 560px) {
  .brand-logo { max-width: 260px; }
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-copy {
  margin: 0;
  color: #c3d4f2;
  font-size: 15px;
}

/* --------------------------------------------------------------- steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  list-style: none;
  margin: 18px 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.steps .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e3e9f4;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  transition: background .2s, color .2s;
}

.steps em { font-style: normal; }

.steps li.active { color: var(--navy); font-weight: 600; }
.steps li.active .dot { background: var(--accent); color: #fff; }
.steps li.done .dot { background: var(--ok); color: #fff; }
.steps li.done .dot::after { content: "✓"; }
.steps li.done .dot { font-size: 0; }
.steps li.done .dot::after { font-size: 14px; }

/* ---------------------------------------------------------------- card */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px;
}

.section-heading { margin-bottom: 18px; }

.eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.card h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}

/* -------------------------------------------------------------- fields */

.field { margin-bottom: 16px; }

.field label,
.field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.optional { font-weight: 400; color: var(--muted); }

input, select, textarea {
  width: 100%;
  padding: 12px 13px;
  font: inherit;
  font-size: 16px; /* stops iOS zoom on focus */
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 46px;
  transition: border-color .15s, box-shadow .15s;
}

textarea { resize: vertical; min-height: 84px; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6a83' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .16);
}

input:disabled, select:disabled { background: #f2f4f8; color: #9aa6b8; }

input.invalid, select.invalid, textarea.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(192, 38, 38, .12);
}

.field-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }

.field-error {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--danger);
  min-height: 0;
}
.field-error:empty { display: none; }

.grid { display: grid; gap: 0 14px; }
.grid.two { grid-template-columns: 1fr; }

@media (min-width: 560px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
  .shell { padding: 32px 20px 64px; }
  .card { padding: 30px 28px; }
  .steps li { font-size: 13px; }
}

/* ----------------------------------------------------------- price box */

.price-box {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #eef3ff;
  border: 1px solid #d3e0ff;
}

.price-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.price-box strong { font-size: 24px; letter-spacing: -0.02em; color: var(--navy); display: block; }

.price-main { min-width: 0; }

.monthly {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
}

.monthly-note {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

.stock {
  font-size: 13px;
  color: var(--ok);
  font-weight: 600;
  white-space: nowrap;   /* keeps "Only 1 left" off the monthly line */
  flex-shrink: 0;
  padding-top: 2px;
}
.stock.low { color: #b45309; }

/* ------------------------------------------------------------- payment */

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.radio {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  background: #fff;
  transition: border-color .15s, background .15s;
}

.radio input { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); margin: 0; }
.radio:has(input:checked) { border-color: var(--accent); background: #f2f6ff; }

/* Partner pages: the payment row is replaced by a plain statement of what this
   page is, and the two-column installment grid collapses when the provider
   column is hidden. */
.preset-banner {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: #f2f6ff;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}

.grid.two.single { grid-template-columns: 1fr; }

/* The extra questions an installment company asks for. Set apart so it reads
   as "this bit is because you picked Forsa", not as more of the same form. */
.provider-block {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: #fafbfd;
  padding: 14px 14px 2px;
  margin-bottom: 16px;
}
.provider-block .payment-options { margin-bottom: 10px; }
.provider-block .radio { font-size: 14px; padding: 11px 12px; }

.hint { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

#nationalId { letter-spacing: .06em; font-variant-numeric: tabular-nums; }

@media (max-width: 420px) {
  .provider-block .payment-options { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- summary */

.summary {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 11px 14px;
  font-size: 14px;
  background: #fbfcfe;
}
.summary-row + .summary-row { border-top: 1px solid var(--line); }
.summary-row span { color: var(--muted); }
.summary-row strong { text-align: right; font-weight: 600; }

.notice {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff8e8;
  border: 1px solid #f2e0b5;
  color: #6b5218;
  font-size: 13.5px;
  line-height: 1.5;
}

.form-error {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--danger-bg);
  border: 1px solid #f3c9c9;
  color: var(--danger);
  font-size: 14px;
}

/* ------------------------------------------------------------- actions */

.actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.button {
  flex: 1;
  min-height: 50px;
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .05s;
}

.button:hover:not(:disabled) { background: var(--accent-dark); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { opacity: .6; cursor: not-allowed; }

.button.secondary {
  flex: 0 0 auto;
  min-width: 108px;
  background: #eef1f7;
  color: var(--navy);
}
.button.secondary:hover:not(:disabled) { background: #e3e8f2; }

/* ------------------------------------------------ loading / error / done */

.loading, .error, .success { text-align: center; padding: 28px 8px; }

.spinner {
  display: inline-block;
  width: 34px; height: 34px;
  border: 3px solid #dfe5ef;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin-bottom: 12px;
}

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

.error strong { display: block; margin-bottom: 6px; font-size: 17px; }
.error p { color: var(--muted); margin: 0 0 18px; }
.error .button { flex: 0 0 auto; min-width: 160px; }

.success .check {
  width: 62px; height: 62px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e7f6ee;
  color: var(--ok);
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
}

.success h2 { margin: 4px 0 8px; }
.success p { color: var(--muted); margin: 0 0 8px; }
.success .summary { text-align: left; }
.reference { font-size: 15px; }
.reference strong { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.success .button { flex: 0 0 auto; min-width: 200px; margin-top: 8px; }

.foot {
  margin-top: 22px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Honeypot — off-screen rather than display:none, which some bots detect. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
