/* DA Vanafprijs Calculator — Frontend Styles
   Version: 3.1.0 */

/* ── Keyframes ───────────────────────────────────────────────────────── */
@keyframes daFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes daPop    { 0% { transform: scale(.4); opacity: 0; } 50% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes daShine  { 0% { left: -100%; } 100% { left: 200%; } }
@keyframes daFloat  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes daSpin   { to { transform: rotate(360deg); } }

/* ── Reset scoped to .da-calc ────────────────────────────────────────── */
.da-calc *,
.da-calc *::before,
.da-calc *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Container ───────────────────────────────────────────────────────── */
.da-calc {
  --p1:  #1F41AD;
  --p2:  #0554EC;
  --wa1: #16a34a;
  --wa2: #22c55e;
  --txt:  #0f1729;
  --txt2: #4a5068;
  --txt3: #8990a5;
  --err:  #ef4444;
  --ok:   #16a34a;

  width: 100%;
  max-width: 1100px;
  background: rgba(255, 255, 255, .97);
  border-radius: 20px;
  padding: 28px 36px 0;
  font-family: 'DM Sans', sans-serif;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 1px rgba(31, 65, 173, .05),
    0 12px 48px rgba(31, 65, 173, .10),
    0 2px 8px rgba(0, 0, 0, .04);
}

/* Dot pattern */
.da-calc::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(31, 65, 173, .03) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* Glow orb */
.da-calc::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(5, 84, 236, .06) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
}

.da-calc > * { position: relative; z-index: 1; }

/* ── Header ──────────────────────────────────────────────────────────── */
.da-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.da-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.da-hdr-right { display: flex; align-items: center; gap: 12px; }

.da-badge {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--p2);
  background: linear-gradient(135deg, rgba(31, 65, 173, .06), rgba(5, 84, 236, .06));
  padding: 5px 14px;
  border-radius: 20px;
}

.da-back-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--p1);
  cursor: pointer;
  border: none;
  background: none;
  padding: 3px 6px 3px 2px;
  border-radius: 8px;
  transition: background .2s;
  line-height: 1;
}
.da-back-btn:hover { background: rgba(31, 65, 173, .05); }

/* ── Progress bar ────────────────────────────────────────────────────── */
.da-progress {
  height: 3px;
  background: rgba(31, 65, 173, .06);
  border-radius: 4px;
  margin-bottom: 20px;
  flex-shrink: 0;
  overflow: hidden;
}

.da-progress-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--p1), var(--p2));
  transition: width .5s cubic-bezier(.22, 1, .36, 1);
  position: relative;
  overflow: hidden;
}

.da-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
  animation: daShine 2s ease-in-out infinite;
}

/* ── Body ────────────────────────────────────────────────────────────── */
.da-body {
  flex: 1;
  overflow: hidden;
  animation: daFadeUp .32s cubic-bezier(.22, 1, .36, 1) both;
}

/* ── Step 0: Category cards — full-width stretch ─────────────────────── */
.da-cats {
  display: flex;
  gap: 14px;
  padding: 12px 0 8px;
}

.da-cat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px 24px;
  background: linear-gradient(160deg, #f6f8ff, #eef1ff);
  border: 1.5px solid rgba(31, 65, 173, .06);
  border-radius: 16px;
  cursor: pointer;
  transition: all .3s cubic-bezier(.22, 1, .36, 1);
  position: relative;
  overflow: hidden;
}

.da-cat::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(160deg, rgba(31, 65, 173, .04), rgba(5, 84, 236, .06));
  transition: opacity .3s;
}
.da-cat:hover::before { opacity: 1; }
.da-cat:hover {
  border-color: var(--p2);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(31, 65, 173, .12), 0 2px 8px rgba(31, 65, 173, .06);
}
.da-cat:active { transform: translateY(-1px); transition-duration: .1s; }

.da-cat-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--p1), var(--p2));
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(31, 65, 173, .2);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.da-cat:hover .da-cat-icon {
  transform: scale(1.06);
  animation: daFloat 2s ease-in-out infinite;
}

.da-cat-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--txt);
  position: relative;
  z-index: 1;
}

/* ── Step 1: Split layout ────────────────────────────────────────────── */
.da-split {
  display: flex;
  gap: 32px;
  padding: 4px 0 10px;
  align-items: stretch;
}

.da-split-left {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f6f8ff, #eef1ff);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  border: 1.5px solid rgba(31, 65, 173, .05);
}

.da-split-left-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--p1), var(--p2));
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(31, 65, 173, .18);
  margin-bottom: 12px;
}

.da-split-left-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--txt);
  margin-bottom: 4px;
}

.da-split-left-sub { font-size: 11px; color: var(--txt3); }

.da-subs-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-content: start;
  padding: 4px 0;
}

/* Sub items */
.da-sub-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fafbff, #f5f7ff);
  border: 1.5px solid rgba(31, 65, 173, .05);
  border-radius: 12px;
  cursor: pointer;
  transition: all .22s cubic-bezier(.22, 1, .36, 1);
  position: relative;
}

.da-sub-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--p1), var(--p2));
  border-radius: 0 3px 3px 0;
  transition: height .22s cubic-bezier(.22, 1, .36, 1);
}

.da-sub-item:hover {
  border-color: rgba(31, 65, 173, .15);
  background: linear-gradient(135deg, #f0f2ff, #eaedff);
  transform: translateX(4px);
}
.da-sub-item:hover::after { height: 60%; }

.da-sub-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  flex-shrink: 0;
  color: var(--p1);
  box-shadow: 0 1px 4px rgba(31, 65, 173, .06);
  transition: all .22s;
}
.da-sub-item:hover .da-sub-icon {
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: #fff;
  box-shadow: 0 3px 10px rgba(31, 65, 173, .15);
}

.da-sub-label { font-weight: 600; font-size: 13px; color: var(--txt); flex: 1; }

.da-sub-arrow {
  color: var(--p2);
  opacity: 0;
  transition: all .22s;
  transform: translateX(-6px);
}
.da-sub-item:hover .da-sub-arrow { opacity: 1; transform: translateX(0); }

.da-free-badge {
  font-size: 9px;
  font-weight: 700;
  color: var(--ok);
  background: #f0fdf4;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
  flex-shrink: 0;
}

/* ── Step 2: Result split ────────────────────────────────────────────── */
.da-result {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 10px 0;
}

.da-result-left {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: linear-gradient(160deg, #f6f8ff, #eef1ff);
  border-radius: 16px;
  border: 1.5px solid rgba(31, 65, 173, .05);
}

.da-result-service {
  font-size: 11px;
  font-weight: 600;
  color: var(--p2);
  background: linear-gradient(135deg, rgba(31, 65, 173, .05), rgba(5, 84, 236, .05));
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.da-result-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 10px;
  color: var(--txt3);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.da-result-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 48px;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.04em;
  line-height: 1.05;
  filter: drop-shadow(0 2px 8px rgba(31, 65, 173, .08));
}

.da-result-note {
  font-size: 11px;
  color: var(--txt3);
  max-width: 260px;
  line-height: 1.5;
  margin-top: 4px;
}

.da-result-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

.da-result-cta-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--txt);
}

.da-result-trust {
  font-size: 12px;
  color: var(--txt3);
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 4px;
}

/* ── Step 3: Form split ──────────────────────────────────────────────── */
.da-form-split {
  display: flex;
  gap: 32px;
  padding: 6px 0 10px;
  align-items: stretch;
}

.da-form-left {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: linear-gradient(160deg, #f6f8ff, #eef1ff);
  border-radius: 16px;
  border: 1.5px solid rgba(31, 65, 173, .05);
}

.da-form-left-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--p1), var(--p2));
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(31, 65, 173, .18);
  margin-bottom: 10px;
}

.da-form-left-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--txt);
  margin-bottom: 2px;
}

.da-form-left-cat {
  font-size: 11px;
  color: var(--txt3);
  margin-bottom: 8px;
}

.da-form-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 32px;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.03em;
}

.da-form-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
}

.da-form-right-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--txt);
  margin-bottom: 10px;
}

/* Form fields layout */
.da-form-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.da-form-row {
  display: flex;
  gap: 10px;
}

.da-form-row > .da-field {
  flex: 1;
}

/* Input with icon */
.da-field { position: relative; }

.da-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--txt3);
  display: flex;
  pointer-events: none;
}

.da-input {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 13px 14px 13px 40px;
  border: 1.5px solid rgba(31, 65, 173, .08);
  border-radius: 11px;
  background: #f8f9ff;
  color: var(--txt);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.da-input:focus {
  border-color: var(--p2);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(5, 84, 236, .06);
}
.da-input.da-error { border-color: var(--err); background: #fef2f2; }
.da-input::placeholder { color: #b0b5c5; font-weight: 400; }

/* Textarea */
.da-textarea {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 14px;
  border: 1.5px solid rgba(31, 65, 173, .08);
  border-radius: 11px;
  background: #f8f9ff;
  color: var(--txt);
  outline: none;
  resize: vertical;
  min-height: 70px;
  max-height: 120px;
  transition: border-color .2s, box-shadow .2s, background .2s;
  display: block;
}
.da-textarea:focus {
  border-color: var(--p2);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(5, 84, 236, .06);
}
.da-textarea::placeholder { color: #b0b5c5; font-weight: 400; }

/* Error message */
.da-error-msg {
  font-size: 11px;
  color: var(--err);
  padding: 0 2px;
  margin-top: -2px;
  margin-bottom: -2px;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.da-btn-primary {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .25s cubic-bezier(.22, 1, .36, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.da-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .12), transparent);
  opacity: 0;
  transition: opacity .25s;
}
.da-btn-primary:hover::before { opacity: 1; }
.da-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 65, 173, .25);
}
.da-btn-primary:active { transform: translateY(0); transition-duration: .08s; }
.da-btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* WhatsApp button */
.da-btn-wa {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--wa1), var(--wa2));
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .25s cubic-bezier(.22, 1, .36, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.da-btn-wa::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .12), transparent);
  opacity: 0;
  transition: opacity .25s;
}
.da-btn-wa:hover::before { opacity: 1; }
.da-btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 163, 74, .3);
}
.da-btn-wa:active { transform: translateY(0); transition-duration: .08s; }

/* Bel / Call button */
.da-btn-call {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--p1);
  background: none;
  border: 1.5px solid rgba(31, 65, 173, .15);
  padding: 14px 20px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color .2s, background .2s;
  white-space: nowrap;
  text-decoration: none;
}
.da-btn-call:hover {
  border-color: var(--p2);
  background: rgba(31, 65, 173, .03);
}

/* Secondary / back button */
.da-btn-secondary {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--p1);
  background: none;
  border: 1.5px solid rgba(31, 65, 173, .12);
  padding: 14px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  white-space: nowrap;
}
.da-btn-secondary:hover {
  border-color: var(--p2);
  background: rgba(31, 65, 173, .03);
}

.da-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Spinner */
.da-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: daSpin .6s linear infinite;
  flex-shrink: 0;
}

/* ── Step 4: Success ─────────────────────────────────────────────────── */
.da-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  text-align: center;
  gap: 8px;
}

.da-success-icon { animation: daPop .5s cubic-bezier(.22, 1, .36, 1) forwards; }

.da-success-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--txt);
}

.da-success-text {
  font-size: 13px;
  color: var(--txt2);
  max-width: 400px;
  line-height: 1.5;
}

/* ── USP strip ───────────────────────────────────────────────────────── */
.da-usps {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  gap: 40px;
  align-items: center;
  padding: 14px 0 16px;
  margin-top: auto;
  position: relative;
}

.da-usps::before {
  content: '';
  position: absolute;
  top: 0;
  left: -36px;
  right: -36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 65, 173, .08), transparent);
}

.da-usp {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--txt2);
}

.da-usp-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(31, 65, 173, .06), rgba(5, 84, 236, .06));
  border-radius: 7px;
  color: var(--p1);
  flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .da-calc {
    max-width: 100%;
    padding: 20px 20px 0;
    border-radius: 16px;
  }

  /* Step 0: stack vertically, row layout per card */
  .da-cats { flex-direction: column; gap: 10px; }
  .da-cat  { flex: none; flex-direction: row; padding: 18px 16px; gap: 14px; align-items: center; }
  .da-cat-icon { width: 44px; height: 44px; flex-shrink: 0; }

  /* Steps 1/2/3: stack panels */
  .da-split, .da-result, .da-form-split { flex-direction: column; gap: 16px; }

  .da-split-left { flex: none; flex-direction: row; align-items: center; text-align: left; padding: 14px 16px; gap: 12px; }
  .da-split-left-icon { margin-bottom: 0; }
  .da-subs-grid { grid-template-columns: 1fr; }

  .da-result-left { flex: none; padding: 16px 20px; }
  .da-result-price { font-size: 36px; }
  .da-result-right { align-items: flex-start; }

  /* Step 2 mobile: offerte vol breedte, WA+Bel naast elkaar */
  .da-btns-result .da-btn-primary { width: 100%; justify-content: center; }
  .da-btns-result .da-btn-wa,
  .da-btns-result .da-btn-call    { flex: 1; justify-content: center; }

  .da-form-left { flex: none; flex-direction: row; align-items: center; text-align: left; padding: 14px 16px; gap: 12px; }
  .da-form-left-icon { margin-bottom: 0; }
  .da-form-price { font-size: 28px; }

  /* Email + telefoon stacked on mobile */
  .da-form-row { flex-direction: column; }

  .da-btns { flex-direction: column; }
  .da-btn-primary, .da-btn-secondary { width: 100%; justify-content: center; }

  .da-usps { gap: 16px; }
  .da-usp  { font-size: 10px; }
}

/* Step 2 button row — special responsive wrapper */
.da-btns-result {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .da-btns-result {
    flex-direction: column;
  }
  .da-btns-result > :nth-child(2),
  .da-btns-result > :nth-child(3) {
    flex-direction: row;
  }
  /* WA and Bel side by side in a sub-row on mobile */
  .da-btns-result {
    flex-wrap: wrap;
  }
  .da-btns-result .da-btn-primary {
    width: 100%;
    flex: none;
  }
  .da-btns-result .da-btn-wa,
  .da-btns-result .da-btn-call {
    flex: 1;
  }
}
