/* =============================================================================
 * Zonder Zorgen — order-flow page CSS (bestellen.html)
 *
 * Everything specific to the 4-step order flow. The shared visual identity
 * (reset, tokens, buttons, nav, footer) comes from css/site.css, which must
 * be loaded BEFORE this file. Owned by whoever works on the order flow;
 * brand-level changes belong in site.css.
 * ===========================================================================*/

/* ── Order-flow additions to the shared .btn ──────────────────── */
.btn-orange:disabled {
  background: #f0c79a;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn[aria-busy="true"] { pointer-events: none; opacity: .75; }
.btn .spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
  display: none;
}
.btn[aria-busy="true"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════════════
   PAGE HEADER — brand banner + progress
══════════════════════════════════════════════════════════════════ */
.order-header {
  position: relative;
  overflow: hidden;
  /* The shared nav is fixed and floats over the page — clear it. */
  padding: calc(var(--nav-h) + 56px) max(48px, calc((100% - 1200px) / 2)) 60px;
  background-image: url('/assets/img/hero-bg.jpg');
  background-size: cover;
  background-position: center center;
}
.order-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.order-header-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}
.order-header-eyebrow {
  font-size: 14px;
  font-style: italic;
  color: rgba(255,255,255,.8);
  margin-bottom: 10px;
}
.order-header h1 {
  font-weight: 700;
  font-size: 40px;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 12px;
}
.order-header p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
  max-width: 620px;
}

/* ── Progress bar ── */
.progress-wrap {
  background: var(--light);
  padding: 0 max(48px, calc((100% - 1200px) / 2));
}
.progress-bar {
  max-width: 1200px;
  margin: 0 auto;
  transform: translateY(-28px);
  display: flex;
  align-items: center;
  padding: 18px 28px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(0,0,0,.10);
}
/* Step chips are natural width; the connectors flex to fill, so the four
   steps distribute evenly across the bar (proper alignment). */
.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid #e2e2e2;
  color: #999;
  background: #fff;
  transition: all .2s;
}
/* Current step = blue; completed steps (and their connectors) = orange. */
.step-dot.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.step-dot.done   { background: var(--orange); border-color: var(--orange); color: #fff; }
.step-label { font-size: 13px; color: #999; white-space: nowrap; }
.step-label.active { color: var(--blue); font-weight: 600; }
.step-label.done   { color: var(--orange); font-weight: 600; }
.step-connector {
  flex: 1 1 auto;
  min-width: 16px;
  height: 2px;
  background: #e2e2e2;
  margin: 0 12px;
  border-radius: 2px;
}
.step-connector.done { background: var(--orange); }

/* ══════════════════════════════════════════════════════════════════
   FLOW LAYOUT
══════════════════════════════════════════════════════════════════ */
.order-section {
  background: var(--light);
  padding: 8px max(48px, calc((100% - 1200px) / 2)) 90px;
  min-height: 50vh;
}
.order-shell {
  max-width: 1200px;
  margin: 0 auto;
}

.screen { display: none; }
.screen.active { display: block; animation: fade .25s ease; }
@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.layout-two-col {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

/* ── Cards ── */
.package-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  border: 2px solid var(--blue);
  margin-bottom: 40px;
}
.package-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(0,123,255,.10);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: .3px;
}
.package-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.package-header h2 { font-weight: 700; font-size: 26px; color: var(--dark); }
.package-price { white-space: nowrap; }
.package-price .price-amount { font-weight: 700; font-size: 28px; color: var(--blue); }
.package-price .price-suffix { font-weight: 400; font-size: 13px; color: #888; }
.package-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  margin-top: 22px;
}
.package-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #555;
}
.pkg-check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.addons-title { font-weight: 700; font-size: 22px; color: var(--dark); margin-bottom: 6px; }
.addons-sub {
  font-size: 14px;
  color: #888;
  margin-bottom: 22px;
  max-width: 560px;
  line-height: 1.6;
}

.addon-list { display: flex; flex-direction: column; gap: 14px; }
.addon-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #fff;
  border: 2px solid #eee;
  border-radius: 16px;
  padding: 20px 22px;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.addon-card:hover { border-color: rgba(255,138,21,.4); }
.addon-card.selected {
  border-color: var(--orange);
  background: rgba(255,138,21,.05);
  box-shadow: 0 6px 18px rgba(255,138,21,.10);
}
.addon-card.disabled {
  cursor: not-allowed;
  background: #f6f6f6;
  border-color: #eee;
  opacity: .55;
  pointer-events: none;
}
.addon-card-body { flex: 1; min-width: 0; }
.addon-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.addon-name  { font-weight: 700; font-size: 16px; color: var(--dark); }
.addon-price { font-weight: 600; font-size: 14px; color: var(--orange); white-space: nowrap; }
.addon-desc  { font-size: 13px; color: #777; line-height: 1.55; }
.addon-requirement {
  font-size: 12px;
  font-style: italic;
  color: var(--blue);
  margin-top: 8px;
  line-height: 1.5;
}
.addon-card.disabled .addon-requirement { color: #999; }
.addon-toggle {
  flex-shrink: 0;
  margin-top: 2px;
  width: 46px; height: 26px;
  border-radius: 13px;
  background: #ddd;
  position: relative;
  transition: background .2s;
}
.addon-toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .2s;
}
.addon-card.selected .addon-toggle { background: var(--orange); }
.addon-card.selected .addon-toggle::after { transform: translateX(20px); }

/* ── Summary (sticky: follows the user down the page on desktop) ── */
.order-summary {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.summary-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: 0 14px 40px rgba(0,0,0,.10);
}
.summary-card h3 { font-weight: 700; font-size: 18px; color: var(--dark); margin-bottom: 18px; }
.summary-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: #555;
  padding: 9px 0;
}
/* Divider between rows only — a bottom border on every row would double up
   with .summary-total's own 2px top rule right below the last row. */
.summary-line + .summary-line {
  border-top: 1px solid #f0f0f0;
}
.summary-line.base { color: var(--dark); font-weight: 600; }
.summary-line.addon span:last-child { color: var(--orange); font-weight: 600; }
.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--dark);
}
.summary-total span:first-child { font-weight: 600; font-size: 15px; color: var(--dark); }
.summary-total span:last-child  { font-weight: 700; font-size: 26px; color: var(--blue); }
.summary-note { font-size: 12px; color: #999; margin-top: 10px; line-height: 1.5; }
/* Server-quoted first payment ("vandaag te betalen") under the monthly total */
.summary-due {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}
.summary-due span:last-child {
  font-weight: 700;
  font-size: 18px;
  color: var(--orange);
  white-space: nowrap;
}
.summary-due-note { font-size: 12px; color: #999; margin-top: 4px; line-height: 1.5; }
.summary-cta { width: 100%; margin-top: 20px; justify-content: center; }

/* The Turnstile widget lives inside the step-1 summary card, right above the
   CTA it guards. It stays empty/invisible unless Cloudflare needs the user to
   interact — then the challenge appears where the user is already looking. */
.cf-slot { display: flex; justify-content: center; }
.cf-slot iframe { max-width: 100%; }

/* ── Number-reservation countdown ── */
.reserve-timer {
  background: rgba(0,123,255,.06);
  border: 1px solid rgba(0,123,255,.25);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--dark);
}
.reserve-timer strong { font-variant-numeric: tabular-nums; }
.reserve-timer.warn {
  background: rgba(255,138,21,.08);
  border-color: rgba(255,138,21,.45);
}
.reserve-timer.expired {
  background: #fff4f4;
  border-color: #f3c9c9;
  color: #b42323;
}
.reserve-timer .link-btn { margin-top: 4px; }

/* Small inline text-button (used in hints / the expired-reservation prompt) */
.link-btn {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  color: var(--blue);
  font: 600 13px 'Poppins', sans-serif;
  text-decoration: underline;
  cursor: pointer;
}
.link-btn:hover { color: var(--orange); }

/* ── Step 2: number choice ── */
.flow-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  max-width: 760px;
}
.flow-card .lead {
  font-size: 14px;
  color: #777;
  line-height: 1.6;
  margin-bottom: 24px;
}
.num-type-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.num-type-card {
  border: 2px solid #eee;
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s;
}
.num-type-card:hover { border-color: rgba(255,138,21,.4); }
.num-type-card.selected { border-color: var(--orange); background: rgba(255,138,21,.05); }
.num-type-card .ico { color: var(--orange); margin-bottom: 8px; display: flex; justify-content: center; }
.num-type-title { font-size: 15px; font-weight: 700; color: var(--dark); }
.num-type-sub   { font-size: 12px; color: #888; margin-top: 4px; }

.field-select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--dark);
  background: #fff;
  margin-bottom: 18px;
}
.field-select:focus { outline: none; border-color: var(--orange); }

.num-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.num-pill {
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--dark);
  background: #fff;
  transition: all .15s;
  font-variant-numeric: tabular-nums;
}
.num-pill:hover { border-color: rgba(255,138,21,.5); color: var(--orange); }
.num-pill.selected {
  border-color: var(--orange);
  color: var(--orange);
  font-weight: 700;
  background: rgba(255,138,21,.06);
}
.num-empty,
.num-loading { font-size: 13px; color: #999; padding: 8px 0; }

/* ── Step 3: form ── */
.form-grid { display: grid; gap: 16px; }
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; }
.form-label {
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
  font-weight: 600;
}
.form-label .opt { color: #aaa; font-weight: 400; }
.form-label .req { color: var(--orange); }
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--dark);
  background: #fff;
}
.form-input:focus { outline: none; border-color: var(--orange); }
.form-input.invalid { border-color: #e23b3b; background: #fff6f6; }
/* Placeholders are examples, not values — keep them clearly lighter than
   typed input (#333). Explicit opacity: Firefox dims placeholders on its own. */
.form-input::placeholder { color: #c9c9c9; opacity: 1; }
.form-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin: 6px 0 2px;
}

/* KvK-number field with its "look up" affordance */
.kvk-row { display: flex; gap: 10px; }
.kvk-row .form-input { flex: 1; min-width: 0; }
.kvk-lookup-btn {
  flex-shrink: 0;
  padding: 0 18px;
  border: 2px solid var(--blue);
  border-radius: 12px;
  background: #fff;
  color: var(--blue);
  font: 600 13px 'Poppins', sans-serif;
  cursor: pointer;
  transition: all .2s;
}
.kvk-lookup-btn:hover { background: var(--blue); color: #fff; }
.kvk-lookup-btn:disabled { opacity: .55; cursor: default; }

/* Feedback under enriched fields (KvK match, address match) — advisory only */
.lookup-hint {
  font-size: 12.5px;
  color: #777;
  line-height: 1.55;
  margin-top: 7px;
}
.lookup-hint strong { color: var(--dark); }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #666;
  margin-top: 6px;
  line-height: 1.5;
}
.check-row input {
  margin-top: 3px;
  width: 16px; height: 16px;
  accent-color: var(--orange);
  flex-shrink: 0;
}
.check-row a { color: var(--blue); text-decoration: none; }
.check-row a:hover { text-decoration: underline; }
.check-row.invalid { color: #b42323; }
.check-row.invalid input { outline: 2px solid rgba(226,59,59,.55); outline-offset: 1px; border-radius: 3px; }

/* ── Step 4: success ── */
.success-card {
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  max-width: 620px;
  margin: 0 auto;
}
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0,123,255,.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--blue);
}
.success-card h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.success-card .sub { font-size: 14px; color: #777; line-height: 1.6; }
.success-summary {
  background: var(--light);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 24px 0;
  text-align: left;
}
.success-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  padding: 6px 0;
  color: #777;
}
.success-row strong { color: var(--dark); text-align: right; }

/* First payment = contractual signature */
.pay-block {
  background: rgba(0,123,255,.06);
  border: 1px solid rgba(0,123,255,.22);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 16px;
  text-align: left;
}
.pay-block > strong { display: block; font-size: 15px; color: var(--dark); margin-bottom: 6px; }
.pay-block > p { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 14px; }
.pay-cta { width: 100%; justify-content: center; }
.pay-block .pay-amount {
  position: relative; /* anchors the info popover */
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 14px;
}
.pay-block .pay-amount strong { font-size: 22px; color: var(--blue); }
.pay-block .pay-amount .pay-vat { font-size: 12px; font-weight: 400; color: #888; }
.pay-note { font-size: 12px; color: #999; margin-top: 10px; line-height: 1.5; }

/* ── Info popover ("waarom dit bedrag?") ── */
.info-wrap { display: inline-flex; }
.info-btn {
  width: 18px; height: 18px;
  padding: 0;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font: 700 11px 'Poppins', sans-serif;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
}
.info-btn:hover,
.info-btn[aria-expanded="true"] { background: var(--blue); color: #fff; }
.info-pop {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--dark);
  color: rgba(255,255,255,.92);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.55;
  text-align: left;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  z-index: 50;
}
.info-pop strong { display: block; color: #fff; font-size: 13px; margin-bottom: 6px; }
.info-pop p { margin: 0 0 6px; }
.info-pop p:last-child { margin-bottom: 0; }
.info-pop ul { margin: 0 0 6px; padding-left: 18px; }
.info-pop li { margin-bottom: 4px; }
/* Itemized first-payment breakdown (server data) inside the popover */
.info-pop .pop-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
}
.info-pop .pop-row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.info-pop .pop-row.total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.25);
  font-weight: 700;
  color: #fff;
}
#payBreakdown { margin-bottom: 8px; }

.paid-block {
  background: rgba(34,165,89,.08);
  border: 1px solid rgba(34,165,89,.3);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--dark);
  text-align: left;
}

.wa-block {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--light);
  border-radius: 14px;
  padding: 18px 20px;
  text-align: left;
}
.wa-block .wa-ico {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-text { font-size: 13px; color: #777; line-height: 1.5; }
.wa-text strong { display: block; color: var(--dark); font-size: 14px; margin-bottom: 2px; }
.btn-wa {
  background: #25d366;
  color: #fff;
  width: 100%;
  justify-content: center;
  margin-top: 12px;
  padding: 12px 20px;
  font-size: 14px;
}
.btn-wa:hover { background: #1eb857; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,211,102,.35); }

/* ── Nav row + errors ── */
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}
.alert {
  display: none;
  align-items: flex-start;
  gap: 10px;
  background: #fff4f4;
  border: 1px solid #f3c9c9;
  color: #b42323;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.alert.show { display: flex; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .order-header { padding: calc(var(--nav-h) + 44px) 28px 56px; }
  .order-header h1 { font-size: 28px; }
  .progress-wrap { padding: 0 28px; }
  .progress-bar { padding: 14px 16px; }
  .step-label { display: none; }
  .step-connector { margin: 0 8px; }

  .order-section { padding: 8px 28px 64px; }
  .layout-two-col { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .package-card,
  .flow-card { padding: 24px 22px; }
  .package-features { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .num-grid { grid-template-columns: repeat(2, 1fr); }
}
