/* ══════════════════════════════════════════════════════
   HANSEKREDIT – Form Wizard (Shared Styles)
   Used on all pages for the multi-step inquiry form.
   ══════════════════════════════════════════════════════ */

/* ── FORM SECTION (dark background) ── */
.form-section {
  background: #001233;
  padding: 96px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.form-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,114,255,.18) 0%, transparent 70%);
  pointer-events: none;
}
.form-section .section-label { color: rgba(255,255,255,.55); position: relative; }
.form-section .section-title { color: var(--white); position: relative; }
.form-section .section-sub { color: rgba(255,255,255,0.65); max-width: 480px; margin: 0 auto 48px; position: relative; }

/* ── Form card ── */
.form-wrapper {
  background: var(--white);
  border-radius: 24px;
  padding: 40px 36px 36px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06);
  position: relative;
}

/* ── Trust bar ── */
.form-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: #F4F6F9;
  border-radius: 10px;
  margin-bottom: 28px;
}
.form-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #444;
}
.form-trust svg { width: 13px; height: 13px; stroke: #059669; }

/* ── Step progress tracker ── */
.step-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}
.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
}
.step-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid #E5E5E5;
  background: #fff;
  color: #aaa;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
  position: relative;
  z-index: 1;
}
.step-node.active .step-circle { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 0 0 4px rgba(0,114,255,.15); }
.step-node.done .step-circle { border-color: #059669; background: #059669; color: #fff; }
.step-label-sm { font-size: 10px; font-weight: 700; color: #bbb; letter-spacing: .04em; text-transform: uppercase; transition: color .25s; white-space: nowrap; }
.step-node.active .step-label-sm { color: var(--blue); }
.step-node.done .step-label-sm { color: #059669; }
.step-connector {
  width: 52px; height: 2px;
  background: #E5E5E5;
  margin: 0 4px;
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: background .25s;
}
.step-connector.done { background: #059669; }

/* ── Steps ── */
.form-step { display: none; }
.form-step.active { display: block; }

.step-title {
  font-size: 21px;
  font-weight: 800;
  color: #001845;
  margin-bottom: 6px;
}
.step-desc {
  font-size: 14px;
  color: #777;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ── Option cards ── */
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.option-btn {
  border: 1.5px solid #E8ECF0;
  border-radius: 14px;
  padding: 14px 10px 12px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: #FAFBFC;
  color: #333;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
  line-height: 1.3;
}
.option-btn:hover { border-color: var(--blue); background: rgba(0,114,255,.04); color: var(--blue); }
.option-btn.selected {
  border-color: var(--blue);
  background: rgba(0,114,255,.07);
  color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,114,255,.12);
}
.option-btn .opt-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(0,114,255,.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
.option-btn.selected .opt-icon { background: rgba(0,114,255,.15); }
.option-btn .opt-icon svg { width: 20px; height: 20px; stroke: var(--blue); }
.option-btn--wide { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 12px; padding: 13px 16px; }

/* ── Inputs ── */
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-input {
  width: 100%;
  border: 1.5px solid #E0E4E8;
  border-radius: 12px;
  padding: 13px 14px;
  font-family: var(--font);
  font-size: 15px;
  color: #111;
  transition: border-color .2s;
  margin-bottom: 12px;
  outline: none;
  background: #FAFBFC;
}
.form-input:focus { border-color: var(--blue); background: #fff; }
.form-input::placeholder { color: #B0B8C1; }
.form-input.full { margin-bottom: 12px; }

/* ── DSGVO Checkbox ── */
.dsgvo-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 16px;
  text-align: left;
}
.dsgvo-row input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.dsgvo-row label {
  font-size: 12px;
  color: #666;
  line-height: 1.55;
  cursor: pointer;
}
.dsgvo-row label a { color: var(--blue); text-decoration: underline; }
.dsgvo-row.invalid input[type="checkbox"] { outline: 2px solid var(--orange); outline-offset: 1px; }

/* ── Submit ── */
.form-submit {
  width: 100%;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 12px;
  padding: 16px 20px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 24px rgba(255,95,0,.35);
}
.form-submit:hover { background: #e55500; transform: translateY(-2px); box-shadow: 0 10px 32px rgba(255,95,0,.45); }
.form-submit:disabled { opacity: .7; transform: none; cursor: not-allowed; }
.form-submit svg { width: 17px; height: 17px; flex-shrink: 0; }

.form-micro {
  font-size: 11px;
  color: #9AA3AF;
  text-align: center;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.form-micro span { display: flex; align-items: center; gap: 4px; }
.form-micro svg { width: 11px; height: 11px; stroke: #9AA3AF; }

/* ── Back button ── */
.back-btn {
  background: none;
  border: none;
  color: #9AA3AF;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
  padding: 0;
  transition: color .2s;
}
.back-btn:hover { color: var(--blue); }

/* ── Success state ── */
.success-state { display: none; }

/* ── Alternativweg ── */
.form-alternativ {
  max-width: 560px;
  margin: 32px auto 0;
  text-align: center;
  position: relative;
}
.form-alternativ-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  margin-bottom: 14px;
}
.form-alternativ-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form-alternativ-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  transition: background .2s;
}
.form-alternativ-row a:hover { background: rgba(255,255,255,.15); }
.form-alternativ-row a svg { width: 16px; height: 16px; }
.form-alternativ-oder {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .form-wrapper { padding: 28px 16px 24px; }
  .option-grid { grid-template-columns: 1fr 1fr; }
  .step-connector { width: 28px; }
  .step-label-sm { font-size: 9px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .form-alternativ-row { flex-direction: column; gap: 10px; }
  .form-alternativ-oder { display: none; }
}
