/* KSB Offerte v3 — Strak & Modern */

:root {
  --blauw:      #1a2e44;
  --blauw-mid:  #2a4a6a;
  --blauw-l:    #e8eef5;
  --oranje:     #c0622a;
  --oranje-l:   #fdf0e8;
  --grijs:      #6b7a8d;
  --grijs-l:    #f4f6f8;
  --border:     #dce3ea;
  --wit:        #ffffff;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 2px 12px rgba(26,46,68,.08);
  --shadow-lg:  0 8px 40px rgba(26,46,68,.12);
}

#ksb-offerte-wrap {
  max-width: 900px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--blauw);
}

/* ── Social proof header ── */
.ksb-header {
  background: var(--blauw);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.ksb-header-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ksb-header-titel {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin: 0;
  letter-spacing: -.3px;
}
.ksb-header-sub {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin: 0;
}
.ksb-proof-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.ksb-proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 8px 14px;
}
.ksb-proof-num {
  font-size: 18px;
  font-weight: 700;
  color: white;
  line-height: 1;
}
.ksb-proof-label {
  font-size: 11px;
  color: rgba(255,255,255,.65);
  line-height: 1.3;
  max-width: 70px;
}

/* ── Formulier body ── */
.ksb-form-body {
  background: var(--wit);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

/* ── Stappenbalk ── */
.ksb-steps {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}
.ksb-step {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ksb-step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grijs-l);
  color: #aab;
  font-size: 14px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.ksb-step.active .ksb-step-num {
  background: var(--blauw);
  color: white;
  border-color: var(--blauw);
  box-shadow: 0 0 0 4px rgba(26,46,68,.12);
}
.ksb-step.done .ksb-step-num {
  background: #16a34a;
  color: white;
  border-color: #16a34a;
}
.ksb-step-label {
  font-size: 13px;
  font-weight: 600;
  color: #aab;
  transition: color .3s;
}
.ksb-step.active .ksb-step-label,
.ksb-step.done  .ksb-step-label { color: var(--blauw); }
.ksb-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 14px;
}

/* ── Sectie label ── */
.ksb-sectie {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grijs);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ksb-sectie::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Keuze kaarten ── */
.ksb-keuze-groep {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ksb-keuze {
  flex: 1;
  min-width: 72px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--grijs);
  background: var(--wit);
  transition: all .18s;
  user-select: none;
  line-height: 1.3;
}
.ksb-keuze:hover {
  border-color: var(--blauw-mid);
  color: var(--blauw);
  background: var(--blauw-l);
}
.ksb-keuze.selected {
  border-color: var(--blauw);
  background: var(--blauw-l);
  color: var(--blauw);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(26,46,68,.14);
}
.ksb-keuze-icon { font-size: 18px; display: block; margin-bottom: 4px; }
.ksb-keuze-select { display: none; }

/* ── Grid layouts ── */
.ksb-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 36px;
  margin-bottom: 28px;
}
.ksb-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 24px;
}
@media (max-width: 660px) {
  .ksb-grid-2, .ksb-grid-3 { grid-template-columns: 1fr; }
  .ksb-header, .ksb-form-body { padding: 22px 20px; }
}

/* ── Veld blok ── */
.ksb-field-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ksb-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--blauw);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ksb-req { color: var(--oranje); }

/* ── Slider ── */
.ksb-slider-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ksb-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--blauw) 0%, var(--blauw) 17.5%, var(--border) 17.5%);
  outline: none;
  border: none;
  cursor: pointer;
}
.ksb-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: white;
  border: 2.5px solid var(--blauw);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(26,46,68,.25);
}
.ksb-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: white;
  border: 2.5px solid var(--blauw);
}
.ksb-slider-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--blauw);
  min-width: 32px;
  text-align: center;
}

/* ── Tip ── */
.ksb-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--grijs-l);
  color: var(--grijs);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  font-style: normal;
  border: 1px solid var(--border);
  transition: all .15s;
  @media (max-width: 660px) {
  .ksb-tip {
    width: 22px;
    height: 22px;
    font-size: 13px;
  }
}
}
.ksb-tip:hover { background: var(--blauw); color: white; border-color: var(--blauw); }
.ksb-tooltip-popup {
  position: fixed;
  z-index: 99999;
  background: var(--blauw);
  color: white;
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 8px;
  max-width: 220px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  box-shadow: var(--shadow-lg);
}
.ksb-tooltip-popup.show { opacity: 1; }

/* Inline tooltip op mobiel */
.ksb-inline-tip {
  display: none;
  background: var(--blauw-l);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blauw);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 13px;
  color: var(--blauw);
  line-height: 1.5;
  margin-top: 6px;
  animation: ksb-tip-in .18s ease;
}
.ksb-tip.active { background: var(--blauw); color: white; border-color: var(--blauw); }
@keyframes ksb-tip-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 660px) {
  .ksb-tooltip-popup { display: none !important; }
}

/* ── Inputs ── */
.ksb-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--blauw);
  background: white;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  font-family: inherit;
  -webkit-appearance: none;
}
.ksb-input:focus {
  border-color: var(--blauw);
  box-shadow: 0 0 0 3px rgba(26,46,68,.10);
}
.ksb-input::placeholder { color: #bcc5ce; }
.ksb-textarea { resize: vertical; min-height: 110px; line-height: 1.5; }

/* ── Upload zone ── */
.ksb-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 30px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--grijs-l);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.ksb-upload-zone:hover, .ksb-upload-zone.drag-over {
  border-color: var(--blauw);
  background: var(--blauw-l);
}
.ksb-upload-icon { font-size: 28px; color: var(--grijs); margin-bottom: 4px; }
.ksb-upload-zone p { margin: 0; font-size: 13px; color: var(--grijs); }
.ksb-upload-link { color: var(--blauw); text-decoration: underline; font-weight: 600; }
.ksb-upload-sub  { font-size: 11px !important; color: #aab !important; }
#ksb-file-list { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ksb-file-chip {
  background: var(--blauw-l);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--blauw);
  font-weight: 500;
}

/* ── Knoppen ── */
.ksb-actions { margin-top: 36px; display: flex; justify-content: flex-end; }
.ksb-actions-duo { justify-content: space-between; }
@media (max-width: 660px) {
  .ksb-actions-duo { justify-content: flex-end; }
  .ksb-btn-ghost { display: none; }
}

.ksb-btn-primary {
  background: var(--blauw);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, transform .1s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(26,46,68,.25);
  display: inline-flex; align-items: center; gap: 8px;
}
.ksb-btn-primary:hover  { background: var(--blauw-mid); box-shadow: 0 6px 20px rgba(26,46,68,.3); }
.ksb-btn-primary:active { transform: scale(.98); }
.ksb-btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.ksb-btn-ghost {
  background: transparent;
  color: var(--grijs);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 22px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
}
.ksb-btn-ghost:hover { border-color: var(--blauw); color: var(--blauw); }

.ksb-btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366;
  color: white;
  border-radius: var(--radius);
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  margin-top: 14px;
  transition: background .2s;
  box-shadow: 0 4px 14px rgba(37,211,102,.28);
}
.ksb-btn-wa:hover { background: #1db954; color: white; }

/* ── Foutmelding ── */
.ksb-msg { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; }
.ksb-msg-error { background: #fee2e2; color: #991b1b; border-left: 3px solid #e02020; }

/* ── Bedankt ── */
.ksb-bedankt-inner { text-align: center; padding: 48px 20px; }
.ksb-bedankt-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--blauw);
  color: white;
  font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.ksb-bedankt-inner h2 { font-size: 24px; color: var(--blauw); margin: 0 0 12px; }
.ksb-bedankt-inner p { color: var(--grijs); font-size: 15px; line-height: 1.6; margin: 0 0 6px; }

/* ── Mobiele upload knoppen ── */
.ksb-upload-knop {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--blauw);
  border-radius: var(--radius);
  background: var(--blauw);
  color: white;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .18s;
  text-align: center;
}
.ksb-upload-knop:hover { background: var(--blauw-mid); }
.ksb-upload-knop-ghost {
  background: white;
  color: var(--blauw);
  cursor: pointer;
  display: block;
}
.ksb-upload-knop-ghost:hover { background: var(--blauw-l); }

@media (max-width: 660px) {
  .ksb-upload-desktop { display: none !important; }
  .ksb-upload-mobiel  { display: block !important; }
  .ksb-upload-zone    { min-height: 120px; padding: 20px 16px; }
}
