/* Anfrage-Formular — Struktur und Verhalten 1:1 nach dem Formular der
   ZinsFakten-/ZinsFelix-Kampagne, Farbwelt an die Original-Seite angepasst
   (dunkles Marine #121534, roter Button #d10a10). */

.lead-form {
  background: #121534;
  border: 2px solid #121534;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  margin: 26px auto;
  padding: 25px 20px;
  box-shadow: 3px 3px 6px #00000030;
  color: #fff;
}
.lead-form * { box-sizing: border-box; font-family: inherit; }
.lead-form .form-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .9rem; font-size: 14px; line-height: 1.5; }
.lead-form .form-product { font-weight: 700; color: #fff; }
.lead-form .step-counter { color: #b9c0d4; white-space: nowrap; font-size: 13px; }
.lead-form .step-counter b { color: #fff; }
.lead-form .step-progress { height: 4px; background: #ffffff2e; border-radius: 999px; margin: 14px 0 22px; overflow: hidden; }
.lead-form .step-progress span { display: block; height: 100%; width: 33.333%; background: #d10a10; border-radius: 999px; transition: width .28s ease; }

.lead-form .form-step { margin: 0; min-width: 0; border: 0; padding: 0; }
.lead-form .form-step[hidden] { display: none; }
.lead-form .form-step legend {
  float: none; width: 100%; padding: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 24px; line-height: 1.25; font-weight: 600; color: #fff;
  margin-bottom: 8px;
}
.lead-form .step-sub { font-size: 13px; color: #b9c0d4; margin: 0 0 16px; }
.lead-form .step-note { font-size: 13px; line-height: 1.7; color: #b9c0d4; margin: 16px 0 0; }

.lead-form .term-options,
.lead-form .amount-options { display: grid; gap: 10px; }
.lead-form .term-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lead-form .amount-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lead-form .option { position: relative; display: block; cursor: pointer; }
.lead-form .option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lead-form .option > span {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 2px; text-align: center; min-height: 74px; padding: 12px 8px;
  border: 1px solid #ffffff3d; border-radius: 8px; background: #ffffff12;
  color: #fff; transition: border-color .15s ease, background .15s ease;
}
.lead-form .term-option strong { font-size: 20px; font-weight: 700; }
.lead-form .term-option small { font-size: 12px; color: #b9c0d4; }
.lead-form .amount-option > span { min-height: 54px; font-size: 15px; font-weight: 600; }
.lead-form .option:hover > span { border-color: #ffffff8a; background: #ffffff1f; }
.lead-form .option input:checked + span { border-color: #d10a10; background: #d10a1026; box-shadow: inset 0 0 0 1px #d10a10; }
.lead-form .option input:focus-visible + span { outline: 3px solid #ffffff8a; outline-offset: 3px; }
.lead-form .option input[aria-invalid="true"] + span { border-color: #ff6b6b; background: #d10a1026; }
.lead-form .amount-warning {
  font-size: 13px; line-height: 1.7; color: #ffd9a8; background: #ffffff14;
  border-left: 3px solid #d8a35c; padding: 12px 14px; margin: 14px 0 0;
}
.lead-form .amount-warning[hidden] { display: none; }

.lead-form .field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form .field { min-width: 0; margin-bottom: 4px; }
.lead-form .field label { display: block; font-size: 13px; font-weight: 600; color: #dfe3ee; margin-bottom: 2px; }
.lead-form input[type=text],
.lead-form input[type=email],
.lead-form input[type=tel] {
  width: 100%; min-width: 0; font-size: 16px; padding: 12px 15px; margin-top: 6px;
  border: 1px solid #ffffff3d; border-radius: 6px;
  background: #121534; color: #fff; line-height: 1.2;
}
.lead-form input::placeholder { color: #ffffffb3; }
.lead-form input:focus { outline: none; border-color: #d10a10; box-shadow: 0 0 0 2px #d10a1040; }
.lead-form input[aria-invalid="true"] { border-color: #ff6b6b; }

.lead-form .phone-entry { position: relative; display: block; min-width: 0; width: 100%; }
.lead-form .phone-entry input[type=tel] { padding-left: 48px !important; }
.lead-form .phone-entry__flag {
  position: absolute; z-index: 1; pointer-events: none; left: 15px; top: 50%; transform: translateY(-50%);
  display: block; width: 21px; height: 15px; border: 1px solid rgba(0,0,0,.18); border-radius: 2px;
  background: linear-gradient(to bottom, #151515 0 33.333%, #d00 33.333% 66.666%, #ffce00 66.666% 100%);
}
.lead-form .phone-entry__error { display: block; color: #ff9d9d; font-size: 13px; line-height: 1.5; margin-top: 6px; }
.lead-form .phone-entry__error[hidden] { display: none; }

.lead-form .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.lead-form .consent-check {
  display: flex; align-items: start; gap: 12px;
  font-size: 13px; line-height: 1.75; color: #c9cfdf; margin: 18px 0 0; cursor: pointer;
}
.lead-form .consent-check input { width: 21px; height: 21px; margin: 3px 0 0; accent-color: #d10a10; flex: none; }
.lead-form .consent-check a { color: #fff; font-weight: 600; }
.lead-form .submit-button {
  width: 100%; margin-top: 20px; min-height: 52px; padding: 14px;
  border: 0; border-radius: 6px; background: #d10a10; color: #fff;
  font-size: 16px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; box-shadow: 3px 3px 6px #00000030; transition: .2s ease;
}
.lead-form .submit-button:hover:not(:disabled) { opacity: .92; }
.lead-form .submit-button:disabled { background: #5c6070; cursor: not-allowed; opacity: .8; }
.lead-form .submit-note { font-size: 12px; line-height: 1.7; color: #b9c0d4; margin: 12px 0 0; text-align: center; }

.lead-form .form-nav { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.lead-form .form-nav .button {
  min-height: 50px; padding: 14px 18px; border-radius: 6px; border: 1px solid transparent;
  font-size: 15px; font-weight: 700; cursor: pointer; text-align: center;
}
.lead-form .form-nav .button--primary { background: #d10a10; color: #fff; flex: 1; }
.lead-form .form-nav .button--primary:hover { opacity: .92; }
.lead-form .form-nav .button--text { background: transparent; color: #fff; border-color: #ffffff3d; flex: none; }
.lead-form .form-nav .button--text:hover { background: #ffffff1f; }
.lead-form .form-nav .button[hidden] { display: none; }

.lead-form .form-status {
  font-size: 14px; line-height: 1.7; margin: 20px 0 0; padding: 14px 16px;
  background: #ffffff14; border-left: 3px solid #ffffff5c; color: #dfe3ee;
  overflow-wrap: anywhere;
}
.lead-form .form-status.is-error { border-color: #ff6b6b; background: #d10a1026; color: #ffd7d7; }
.lead-form .form-status:focus { outline: 2px solid #ffffff8a; outline-offset: 3px; }
.lead-form .recipient-note { font-size: 12px; line-height: 1.7; color: #b9c0d4; margin: 14px 0 0; }
.lead-form .form-contact { font-size: 14px; line-height: 1.6; border-top: 1px solid #ffffff2e; padding-top: 16px; margin: 20px 0 0; color: #dfe3ee; }
.lead-form .form-contact a { color: #fff; text-decoration: underline; font-weight: 700; }
.lead-form .form-legal { font-size: 12px; line-height: 1.7; color: #b9c0d4; margin: 14px 0 0; }
.lead-form .hp { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.lead-form .enquiry-success { padding: 24px 0 12px; text-align: center; outline: none; }
.lead-form .enquiry-success[hidden] { display: none !important; }
.lead-form .receipt-mark { display: block; width: 68px; height: 68px; margin: 0 auto 22px; color: #fff; }
.lead-form .receipt-mark circle { fill: #ffffff1f; stroke: currentColor; stroke-width: 1.25; stroke-opacity: .3; }
.lead-form .receipt-mark path { fill: none; stroke: currentColor; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.lead-form[data-confirmed] .receipt-mark circle { animation: lf-arrive .45s ease-out both; }
.lead-form[data-confirmed] .receipt-mark path { animation: lf-draw .65s cubic-bezier(.25,.65,.3,1) .12s both; }
.lead-form .enquiry-success h3 {
  margin: 0 0 16px; color: #fff;
  font-family: "Newsreader", Georgia, serif; font-size: 30px; line-height: 1.2; font-weight: 600;
}
.lead-form .enquiry-success > p { max-width: 380px; margin: 0 auto 20px; font-size: 15px; line-height: 1.75; color: #c9cfdf; }
.lead-form .receipt-reference { display: inline-block; margin: 0 auto 22px; padding: 10px 14px; border: 1px solid #ffffff3d; font-size: 12px; letter-spacing: .035em; color: #fff; overflow-wrap: anywhere; }
.lead-form .receipt-next { max-width: 380px; margin: 0 auto; padding-top: 20px; border-top: 1px solid #ffffff2e; }
.lead-form .receipt-next h2 { margin: 0 0 9px; font-family: "Public Sans", system-ui, sans-serif; font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 0; }
.lead-form .receipt-next p { margin: 0; font-size: 14px; line-height: 1.75; color: #b9c0d4; }
@keyframes lf-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes lf-arrive { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 600px) {
  .lead-form { padding: 20px 15px; border-radius: 12px; }
  .lead-form .field-pair { grid-template-columns: 1fr; gap: 0; }
  .lead-form .term-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lead-form .term-option strong { font-size: 17px; white-space: nowrap; }
  .lead-form .term-option small { font-size: 11px; }
  .lead-form .amount-options { grid-template-columns: 1fr; }
  .lead-form .form-step legend { font-size: 21px; }
  .lead-form .form-nav { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .lead-form .form-nav .button { width: 100%; }
  .lead-form .enquiry-success h3 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .lead-form[data-confirmed] .receipt-mark circle,
  .lead-form[data-confirmed] .receipt-mark path { animation: none; stroke-dashoffset: 0; }
}

