/* ============================================================
   Modern-Wave Offerte Tool — donker thema (huisstijl)
   ============================================================ */

:root {
  --brand:       #2A7DE1;
  --brand-2:     #1F9DE0;
  --brand-deep:  #004dbc;
  --grad:        linear-gradient(90deg, #1f5de0, #1f9de0);
  --grad-soft:   linear-gradient(135deg, #1f5de0, #1f9de0);

  --bg:          #070C18;
  --bg-soft:     #0B1322;
  --card:        #0F1A30;
  --card-2:      #13203A;
  --input:       #0D1830;
  --ink:         #EAF1FF;
  --muted:       #93A4C4;
  --muted-2:     #6E80A2;
  --line:        rgba(255,255,255,.09);
  --line-2:      rgba(255,255,255,.16);
  --glow:        rgba(31,125,224,.35);

  --ok:          #34D399;
  --warn:        #FBBF24;
  --danger:      #F87171;
  --radius:      18px;
  --radius-sm:   12px;
  --shadow:      0 24px 60px rgba(0,0,0,.45);
  --shadow-sm:   0 10px 30px rgba(0,0,0,.30);
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --head:        'Poppins', var(--font);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 600px at 85% -5%, rgba(31,125,224,.16), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(31,157,224,.10), transparent 55%),
    var(--bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.18; margin: 0 0 .4em; color: #fff; }
p { margin: 0 0 1em; }
a { color: var(--brand-2); }
b { color: #fff; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,12,24,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1000px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 30px; width: auto; display: block; }
.brand .brand-text { display: none; }
.topbar .tagline { font-size: 13px; color: var(--muted); }

/* ---------- Progress ---------- */
.progress-wrap { max-width: 1000px; margin: 0 auto; padding: 0 22px; }
.progress-bar {
  height: 5px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; margin-top: 16px;
}
.progress-fill {
  height: 100%; width: 0%; background: var(--grad);
  border-radius: 99px; transition: width .45s ease; box-shadow: 0 0 14px var(--glow);
}
.progress-label { font-size: 12.5px; color: var(--muted); margin: 8px 2px 0; display: flex; justify-content: space-between; }

/* ---------- Layout ---------- */
.app { max-width: 1000px; margin: 0 auto; padding: 28px 22px 90px; }
.step { display: none; animation: fade .4s ease; }
.step.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)), var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 36px;
}
@media (max-width: 600px){ .card { padding: 22px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
  color: var(--brand-2); background: rgba(31,125,224,.12); border: 1px solid rgba(31,125,224,.25);
  padding: 6px 13px; border-radius: 99px; margin-bottom: 18px;
}
.eyebrow svg { width: 14px; height: 14px; }
.step h2 { font-size: 28px; letter-spacing: -.3px; }
.step .lead { color: var(--muted); font-size: 16px; max-width: 62ch; }

/* ---------- Hero (intro) ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(7,12,24,.94) 30%, rgba(7,12,24,.62) 70%, rgba(31,125,224,.34)),
    var(--hero-img, none);
  background-size: cover; background-position: center right;
}
.hero-inner { padding: 54px 46px; position: relative; z-index: 2; max-width: 640px; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  box-shadow: inset 0 -90px 80px -40px rgba(7,12,24,.9);
}
.hero h1 { font-size: 40px; letter-spacing: -.6px; line-height: 1.08; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: rgba(234,241,255,.82); font-size: 17px; max-width: 52ch; }
.hero .pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 30px; }
.hero .pill { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; padding: 7px 14px; border-radius: 99px; font-size: 13.5px; }
@media (max-width: 640px){ .hero-inner { padding: 34px 24px; } .hero h1 { font-size: 30px; } .hero { background-position: center; } }

/* ---------- Forms ---------- */
.field { margin-bottom: 24px; }
.field > label, .field-label { display: block; font-weight: 600; color: #fff; margin-bottom: 8px; font-size: 15px; }
.field .hint { font-size: 13.5px; color: var(--muted); margin: -3px 0 11px; }
.field .req { color: var(--brand-2); }

input[type=text], input[type=email], input[type=tel], input[type=number], textarea, select {
  width: 100%; padding: 13px 15px; font-family: var(--font); font-size: 15px; color: var(--ink);
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--input);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(42,125,225,.20); }
input.invalid, select.invalid { border-color: var(--danger); }
textarea { resize: vertical; min-height: 90px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
@media (max-width: 600px){ .grid2, .grid3 { grid-template-columns: 1fr; } }

/* Number stepper */
.stepper { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: var(--input); }
.stepper button {
  width: 46px; border: none; background: rgba(31,125,224,.16); color: var(--brand-2); font-size: 22px; font-weight: 600; cursor: pointer; line-height: 1;
}
.stepper button:hover { background: rgba(31,125,224,.3); }
.stepper input { width: 78px; border: none; text-align: center; border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line); border-radius: 0; box-shadow: none !important; background: transparent; }
.stepper input:focus { border-color: var(--line); }

/* Choice cards */
.choices { display: grid; gap: 12px; }
.choices.cols2 { grid-template-columns: 1fr 1fr; }
.choices.cols3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 600px){ .choices.cols2, .choices.cols3 { grid-template-columns: 1fr; } }
.choice {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1.5px solid var(--line-2);
  border-radius: var(--radius-sm); cursor: pointer; background: var(--card-2); transition: all .15s; position: relative;
}
.choice:hover { border-color: rgba(42,125,225,.6); background: #16243F; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .mark {
  flex: 0 0 22px; height: 22px; border: 2px solid var(--line-2); border-radius: 6px; margin-top: 1px; display: grid; place-items: center; transition: all .15s;
}
.choice.radio .mark { border-radius: 50%; }
.choice .mark svg { width: 13px; height: 13px; opacity: 0; transform: scale(.6); transition: all .15s; color: #fff; }
.choice input:checked ~ .mark { background: var(--brand); border-color: var(--brand); }
.choice input:checked ~ .mark svg { opacity: 1; transform: scale(1); }
.choice:has(input:checked) { border-color: var(--brand); background: rgba(42,125,225,.14); box-shadow: 0 0 0 3px rgba(42,125,225,.16); }
.choice .body { flex: 1; }
.choice .ctitle { display: block; font-weight: 600; color: #fff; }
.choice .cdesc { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.48; }
.cbadge {
  display: inline-block; margin-left: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .3px;
  padding: 3px 9px; border-radius: 99px; vertical-align: middle; text-transform: uppercase;
  background: var(--grad); color: #fff;
}

/* conditional reveal */
.reveal { display: none; margin-top: 8px; padding: 18px; background: rgba(255,255,255,.03); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); }
.reveal.show { display: block; animation: fade .3s ease; }
.reveal .field:last-child { margin-bottom: 0; }

.callout {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px;
  background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.28); color: #F4D9A0; margin: 4px 0 18px;
}
.callout.info { background: rgba(31,125,224,.10); border-color: rgba(31,125,224,.3); color: #BFD6F5; }
.callout svg { flex: 0 0 18px; margin-top: 2px; }

/* ---------- Buttons ---------- */
.actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; border-radius: 99px; font-family: var(--head);
  font-weight: 600; font-size: 15px; cursor: pointer; border: 1.5px solid transparent; transition: all .18s; text-decoration: none;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(31,125,224,.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(31,125,224,.55); }
.btn-ghost { background: rgba(255,255,255,.04); color: #fff; border-color: var(--line-2); }
.btn-ghost:hover { border-color: rgba(42,125,225,.6); background: rgba(255,255,255,.08); }
.btn-lg { padding: 17px 36px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.full { width: 100%; justify-content: center; }

/* ---------- Quote / overview ---------- */
.summary-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px){ .summary-grid { grid-template-columns: 1fr; } }

.svc {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; margin-bottom: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), transparent), var(--card-2);
}
.svc.svc-compact { padding: 11px 16px; background: rgba(255,255,255,.02); opacity: .85; }
.svc.svc-compact .name { font-size: 14px; }
.svc.svc-compact .qty { font-size: 12px; }
.svc.svc-compact .price { font-size: 14px; }
.svc-head { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.svc-head .name { font-family: var(--head); font-weight: 600; color: #fff; font-size: 16px; }
.svc-head .qty { font-size: 13px; color: var(--muted); font-weight: 500; }
.svc-head .price { font-weight: 700; color: var(--brand-2); white-space: nowrap; font-size: 16px; }
.svc-head .price small { font-weight: 500; color: var(--muted); font-size: 12px; }
.svc .svc-wat { font-size: 14px; color: #CBD8EE; margin: 12px 0 0; background: rgba(31,125,224,.08); border-left: 3px solid var(--brand); padding: 9px 13px; border-radius: 0 8px 8px 0; }
.svc .svc-wat b { color: #fff; }
.svc .why { font-size: 14.5px; color: var(--muted); margin: 10px 0 0; }
.svc .why b { color: #fff; font-weight: 600; }
.svc .value {
  margin-top: 12px; font-size: 13.7px; color: #BFEFD7; background: rgba(52,211,153,.10); border: 1px solid rgba(52,211,153,.26);
  padding: 9px 13px; border-radius: 9px; display: flex; gap: 9px;
}
.svc .value svg { flex: 0 0 16px; margin-top: 2px; color: var(--ok); }

.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; margin-left: 8px; vertical-align: middle; }
.tag.once { background: rgba(251,191,36,.16); color: #FBBF24; }
.tag.month { background: rgba(31,125,224,.18); color: var(--brand-2); }

.totalcard {
  position: sticky; top: 96px; background: linear-gradient(160deg, #15294B, #0B1526);
  color: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  border: 1px solid var(--line-2);
}
.totalcard h3 { color: #fff; font-size: 18px; }
.totalcard .line { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.10); font-size: 14.5px; }
.totalcard .line.big { font-size: 18px; font-weight: 700; border-bottom: none; padding-top: 16px; }
.totalcard .line.big .amt { color: var(--brand-2); }
.totalcard .line .sub { color: rgba(255,255,255,.6); font-size: 12px; font-weight: 400; }
.totalcard .muted { color: rgba(255,255,255,.62); font-size: 12.5px; margin-top: 14px; line-height: 1.55; }
.totalcard .amt { font-weight: 700; }
.totalcard .amt small { font-weight: 400; color: rgba(255,255,255,.7); font-size: 12px; }

.section-title { font-size: 12.5px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); font-weight: 600; margin: 26px 0 12px; }

/* review chips */
.review-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin: 0 0 8px; padding: 0; list-style: none; }
@media (max-width: 600px){ .review-list { grid-template-columns: 1fr; } }
.review-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.review-list li span:first-child { color: var(--muted); }
.review-list li span:last-child { font-weight: 600; color: #fff; text-align: right; }

/* ---------- Photo / brand elements ---------- */
.photo-band {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); margin: 0 0 22px; background: var(--card);
}
.photo-band .pb-text { padding: 30px 32px; align-self: center; }
.photo-band .pb-img { background-size: cover; background-position: center; min-height: 260px; }
@media (max-width: 700px){ .photo-band { grid-template-columns: 1fr; } .photo-band .pb-img { min-height: 200px; } }

/* Signature/Davy highlight card */
.davy-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2); background: linear-gradient(160deg, #15294B, #0B1526); box-shadow: var(--shadow-sm); margin-bottom: 4px;
}
.davy-card .dc-photo { background: #000 var(--davy-img, none); background-size: cover; background-position: top center; min-height: 230px; }
.davy-card .dc-body { padding: 24px 26px; }
.davy-card .dc-price { font-family: var(--head); font-weight: 700; font-size: 24px; color: #fff; }
.davy-card .dc-price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.davy-card ul { list-style: none; padding: 0; margin: 14px 0 0; }
.davy-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #DCE7F8; padding: 5px 0; }
.davy-card li svg { flex: 0 0 16px; margin-top: 3px; color: var(--brand-2); }
@media (max-width: 600px){ .davy-card { grid-template-columns: 1fr; } .davy-card .dc-photo { min-height: 220px; } }

/* ---------- Agreement ---------- */
.agreement {
  max-height: 320px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 20px 22px; background: var(--bg-soft); font-size: 13px; color: #B6C4DD;
}
.agreement::-webkit-scrollbar { width: 10px; }
.agreement::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.agreement h4 { color: #fff; font-size: 13.5px; margin: 18px 0 6px; }
.agreement h4:first-child { margin-top: 0; }
.agreement h4.agr-title { font-size: 16px; color: var(--brand-2); border-bottom: 1px solid var(--line-2); padding-bottom: 10px; margin-bottom: 14px; }
.agreement p { margin: 0 0 9px; }
.agreement p.agr-sub { margin: 6px 0 4px; }
.agreement b { color: #DCE7F8; }

/* signature */
.sigpad-wrap { border: 1.5px dashed rgba(42,125,225,.5); border-radius: var(--radius-sm); background: #fff; position: relative; }
.sigpad-wrap canvas { display: block; width: 100%; height: 180px; border-radius: var(--radius-sm); touch-action: none; cursor: crosshair; }
.sigpad-wrap .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #9AA8C2; font-size: 14px; pointer-events: none; }
.sigpad-wrap.signed .placeholder { display: none; }
.sig-clear { font-size: 13px; color: var(--brand-2); background: none; border: none; cursor: pointer; margin-top: 8px; padding: 4px; }

/* ---------- Confirmation ---------- */
.success-hero {
  position: relative; border-radius: var(--radius); overflow: hidden;
  margin: -8px 0 26px; min-height: 200px; display: grid; place-items: center;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(180deg, rgba(7,12,24,.35), rgba(7,12,24,.78)),
    var(--succ-img, none);
  background-size: cover; background-position: center 35%;
}
.done-icon {
  width: 78px; height: 78px; border-radius: 50%; background: var(--grad);
  display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 12px 34px var(--glow);
}
.success-hero .done-icon { margin: 0; position: relative; z-index: 2; animation: pop .5s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.done-icon svg { width: 38px; height: 38px; color: #fff; }
.center { text-align: center; }

/* print doc */
#printDoc { display: none; }

@media print {
  body { background: #fff; }
  .topbar, .progress-wrap, #app, .no-print { display: none !important; }
  #printDoc { display: block !important; }
}
