/* ══════════════════════════════════════════════════════════════
   formulare.css — Formular-spezifische Styles
   Gilt für alle Stand-Alone-Formulare (Formular-*.html)
   Layout-Shell wird von .form-page* (inuvet.css) übernommen
   ══════════════════════════════════════════════════════════════ */

/* ─── Language Switch: Logo bleibt zentriert, Select absolut rechts ─── */
.form-page__header { position: relative; }

.form-lang-switch {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font);
  font-size: var(--text-sm);
  color: var(--fg-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.form-lang-switch:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

/* ─── reCAPTCHA Platzhalter (alle Formulare) ─── */
.form-captcha {
  border: 1px solid var(--border-light);
  padding: calc(var(--base) * 0.75) var(--base);
  display: flex;
  align-items: center;
  gap: var(--base);
  margin-bottom: var(--half-module);
  max-width: calc(var(--module) * 10);
}

.form-captcha__checkbox {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.form-captcha__label {
  font-size: var(--text-base);
  color: var(--fg);
  flex: 1;
}

.form-captcha__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}

.form-captcha__brand-logo {
  font-size: var(--text-m);
  line-height: 1;
}

.form-captcha__brand-name {
  font-size: var(--text-xs);
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════════════════════════
   STAND-ALONE FORMULAR LAYOUT (form-page)
   ══════════════════════════════════════════════════════════════ */

/* ─── Seitenhintergrund + Zentrierung ─── */
.form-page {
  min-height: 100vh;
  background: var(--accent-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--half-module) var(--base) var(--module);
  font-weight: 400;
}

/* ─── Weißer Card-Container ─── */
.form-page__card {
  background: var(--bg);
  width: 100%;
  max-width: 640px;
  padding: var(--half-module) var(--module) calc(var(--module) * 1.5);
}

@media (max-width: 480px) {
  .form-page__card { padding: var(--half-module) var(--half-module) var(--module); }
}

/* ─── Header — Logo zentriert ─── */
.form-page__header {
  display: flex;
  justify-content: center;
  padding-bottom: var(--half-module);
  margin-bottom: var(--module);
  border-bottom: 1px solid var(--border-light);
}

.form-page__header svg,
.form-page__header img {
  height: calc(var(--module) * 1.75);
  width: auto;
  display: block;
}

/* ─── Seiten-Titel (H1) ─── */
.form-page__title {
  font-size: var(--text-l);
  font-weight: 700;
  color: var(--fg);
  line-height: var(--lh-h2);
  margin-bottom: var(--module);
}
.nw-intro__greeting {
  font-weight: 600;
}

/* ─── Datenschutzhinweis ─── */
.form-page__privacy {
  font-size: var(--text-xs);
  color: var(--fg-muted);
  margin-top: var(--half-module);
  line-height: var(--lh-base);
}

/* ─── Rechtlicher Footer (Impressum) ─── */
.form-page__footer {
  width: 100%;
  max-width: 640px;
  margin-top: var(--half-module);
  font-size: var(--text-xs);
  color: var(--fg-muted);
  line-height: var(--lh-base);
  text-align: center;
}

/* ══════════════════════════════════════════════════════════════
   REKLAMATIONSFORMULAR (Formular-Reklamation)
   ══════════════════════════════════════════════════════════════ */

/* ─── form-grid Abstand nach unten ─── */
#reklamationForm .form-grid {
  margin-bottom: var(--half-module);
}

/* ─── Checkbox group ─── */
.rk-check-group {
  display: flex;
  flex-direction: column;
  gap: calc(var(--base) * 0.5);
  margin-bottom: var(--half-module);
}

/* ══════════════════════════════════════════════════════════════
   MELDEFORMULAR UNERWÜNSCHTE WIRKUNGEN (Formular-Nebenwirkungen-TB + TA)
   ══════════════════════════════════════════════════════════════ */

/* ─── Intro-Block ─── */
.nw-intro {
  font-size: var(--text-base);
  color: var(--fg);
  line-height: var(--lh-base);
  margin-bottom: var(--module);
}

.nw-intro p { margin-bottom: calc(var(--base) * 0.75); }
.nw-intro p:last-child { margin-bottom: 0; }

/* ─── Pflichtfeld-Hinweis ─── */
.nw-pflicht {
  font-size: var(--text-xs);
  color: var(--fg-muted);
  margin-top: calc(var(--base) * 0.75);
}

/* ─── Hilfetext unter einem Formularfeld ─── */
.nw-hint {
  font-size: var(--text-xs);
  color: var(--fg-muted);
  line-height: var(--lh-base);
  margin-top: 0;
  margin-bottom: 0;
}
/* Nur standalone Hints (direkte Kinder des Forms) brauchen unteren Abstand */
#nebenwirkungenForm > .nw-hint,
#nebenwirkungenTAForm > .nw-hint { margin-bottom: var(--half-module); }

/* ─── Gruppen-Label für Radio-Felder (kein Floating Label) ─── */
.nw-group-label {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  margin-bottom: calc(var(--base) * 0.5);
  display: block;
}

* + .nw-group-label { margin-top: var(--half-module); }

/* ─── Radio-Gitter 2×2 für Geschlecht ─── */
.nw-radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--base) * 0.5);
  margin-bottom: var(--half-module);
}

/* ─── Radio-Zeile für Ja / Nein ─── */
.nw-radio-row {
  display: flex;
  gap: var(--module);
  margin-bottom: var(--half-module);
}

/* ─── Grid: kein Stretch, damit Labels vertikal zentriert bleiben ─── */
#nebenwirkungenForm .form-grid,
#nebenwirkungenTAForm .form-grid { align-items: start; }

/* ─── Hint direkt unter dem Feld — form-field margin-bottom überschreiben ─── */
.form-field:has(+ .nw-hint) { margin-bottom: calc(var(--base) * 0.35); }

/* ══════════════════════════════════════════════════════════════
   MELDEFORMULAR TIERARZTPRAXIS (Formular-Nebenwirkungen-TA)
   ══════════════════════════════════════════════════════════════ */

/* ─── Vertikale Radio-Gruppe ─── */
.ta-radio-col {
  display: flex;
  flex-direction: column;
  gap: calc(var(--base) * 0.5);
  margin-bottom: var(--half-module);
}

/* ─── Sonstige-Option mit Inline-Textfeld ─── */
.ta-rolle-other { align-items: center; flex-wrap: nowrap; }

.ta-rolle-other__input {
  flex: 1;
  min-width: 0;
  height: 1.5rem;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font-family: var(--font);
  font-size: var(--text-sm);
  color: var(--fg);
  padding: 0 calc(var(--base) * 0.25);
  transition: border-color var(--anim-fast);
}

.ta-rolle-other__input:focus {
  outline: none;
  border-bottom-color: var(--fg);
}
