/* =====================================================================
   VPA Tagung – Formular-CSS (zentral)
   ---------------------------------------------------------------------
   Gilt für die Gravity-Forms-Anmeldeformulare (Präsenz & Online).
   Vorher in Elementor → Website-Einstellungen → Benutzerdefiniertes CSS.
   Eingebunden über functions.php des Child-Themes.

   GF-EDITOR – CSS-Klassen (Erscheinungsbild → CSS-Klasse):
     • Ticketfeld (Produktfeld, Radio) → ticket-auswahl
     • Gruppen-Dropdown                → gruppen-auswahl
     • Feld „Gruppenrabatt“            → gruppenrabatt
   Schritt-Überschriften in den HTML-Feldern: .ot-step, .ot-step-nr,
   .ot-step-titel, .ot-step-hinweis
   ===================================================================== */

/* =====================================================================
   0) DESIGN-TOKENS (einmalig)
   ===================================================================== */
:root {
  --ot-crimson:      #8A4130;   /* CTA / Auswahl        */
  --ot-crimson-dark: #703527;
  --ot-wine:         #571522;   /* dunkle Flächen       */
  --ot-ink:          #241B1D;   /* Textfarbe            */
  --ot-cream:        #F4EFE6;
  --ot-kraft:        #C29A66;   /* Karton-Akzent        */
  --ot-kraft-soft:   #EFE3D0;
  --ot-muted:        #6E6161;
  --ot-text:         #41383A;
  --ot-border:       #D9CDBB;
  --ot-bg:           #FDFBF8;   /* Feld-Hintergrund     */
}


/* =====================================================================
   =============  A) TICKETAUSWAHL (Radio-Karten)  =====================
   ===================================================================== */

/* A1) CONTAINER – Karten untereinander, volle Formularbreite */
.gform_wrapper .gfield.ticket-auswahl .ginput_container_radio,
.gform_wrapper .gfield.ticket-auswahl .gfield_radio {
  width: 100% !important;
  max-width: 100% !important;
}
.gform_wrapper .gfield.ticket-auswahl .gfield_radio {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.gform_wrapper .gfield.ticket-auswahl ul.gfield_radio,
.gform_wrapper .gfield.ticket-auswahl ul.gfield_radio > li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* A2) EINZELNE OPTION */
.gform_wrapper .gfield.ticket-auswahl .gchoice {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: block !important;
}
.gform_wrapper .gfield.ticket-auswahl .gchoice input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  pointer-events: none;
}

/* A3) LABEL = KARTE */
.gform_wrapper .gfield.ticket-auswahl .gchoice label,
.gform_wrapper .gfield.ticket-auswahl .gchoice .gform-field-label {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 14px;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  position: relative;
  margin: 0 !important;
  padding: 18px 20px !important;
  border: 1.5px solid var(--ot-border) !important;
  border-radius: 12px !important;
  background: var(--ot-bg) !important;
  font-family: 'Public Sans', system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--ot-ink) !important;
  line-height: 1.45 !important;
  cursor: pointer;
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
  overflow: visible !important;
}
.gform_wrapper .gfield.ticket-auswahl .gchoice label:hover {
  border-color: var(--ot-kraft) !important;
}

/* A4) PREIS (eigene .ticket-preis im Choice-Label) */
.gform_wrapper .gfield.ticket-auswahl .gchoice label .ginput_price,
.gform_wrapper .gfield.ticket-auswahl .gchoice label .ticket-preis {
  flex: 0 0 auto;
  margin-left: auto !important;
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  color: var(--ot-ink) !important;
  white-space: nowrap;
}
.gform_wrapper .gfield.ticket-auswahl .gchoice label small {
  display: block;
  font-size: .82rem;
  font-weight: 400;
  color: var(--ot-muted);
  margin-top: 2px;
}

/* A5) AUSGEWÄHLTER ZUSTAND – Crimson-Rahmen + ✓-Badge */
.gform_wrapper .gfield.ticket-auswahl .gchoice:has(input[type="radio"]:checked) label,
.gform_wrapper .gfield.ticket-auswahl .gchoice input[type="radio"]:checked + label {
  border-color: var(--ot-crimson) !important;
  box-shadow: 0 0 0 3px rgba(184,41,61,.18) !important;
  background: #ffffff !important;
}
.gform_wrapper .gfield.ticket-auswahl .gchoice:has(input[type="radio"]:checked) label::after,
.gform_wrapper .gfield.ticket-auswahl .gchoice input[type="radio"]:checked + label::after {
  content: "✓";
  position: absolute;
  top: -10px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ot-crimson);
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

/* A6) TASTATUR-FOKUS */
.gform_wrapper .gfield.ticket-auswahl .gchoice input[type="radio"]:focus-visible + label {
  outline: 3px solid var(--ot-kraft) !important;
  outline-offset: 2px;
}

/* A7) MOBIL */
@media (max-width: 480px) {
  .gform_wrapper .gfield.ticket-auswahl .gchoice label { flex-direction: column !important; align-items: flex-start !important; gap: 6px; }
  .gform_wrapper .gfield.ticket-auswahl .gchoice label .ginput_price,
  .gform_wrapper .gfield.ticket-auswahl .gchoice label .ticket-preis { margin-left: 0 !important; font-size: 1.25rem !important; }
}

/* A8) OPTIONAL – Gruppen-Zwischenüberschriften über bestimmten Karten
   Da ein GF-Radio-Produktfeld keine Sub-Headings kennt, blenden wir sie
   per CSS vor der 1., 4. und 7. Karte ein. ACHTUNG: Reihenfolge der
   Choices muss exakt so bleiben (komplette Tagung 1–3, Tag1 4–6, Tag2 7–9).
   Wird die Reihenfolge geändert, hier die nth-child-Werte anpassen. */
.gform_wrapper .gfield.ticket-auswahl .gchoice:nth-child(1)::before{content:"Komplette Tagung (24.–25.04.)";}
.gform_wrapper .gfield.ticket-auswahl .gchoice:nth-child(4)::before{content:"Tageskarte Freitag 24.04.";}
.gform_wrapper .gfield.ticket-auswahl .gchoice:nth-child(7)::before{content:"Tageskarte Samstag 25.04.";}
.gform_wrapper .gfield.ticket-auswahl .gchoice:nth-child(1)::before,
.gform_wrapper .gfield.ticket-auswahl .gchoice:nth-child(4)::before,
.gform_wrapper .gfield.ticket-auswahl .gchoice:nth-child(7)::before{
  display:block;font-family:'Public Sans',sans-serif;font-size:.72rem;font-weight:800;
  letter-spacing:.06em;text-transform:uppercase;color:var(--ot-muted);
  margin:8px 0 8px;
}
.gform_wrapper .gfield.ticket-auswahl .gchoice:nth-child(4)::before,
.gform_wrapper .gfield.ticket-auswahl .gchoice:nth-child(7)::before{margin-top:18px;}

/* A9) FELD-LABEL & Pflicht-Sternchen */
.gform_wrapper .gfield.ticket-auswahl > .gfield_label {
  font-family: 'Public Sans', system-ui, sans-serif !important;
  font-size: .85rem !important;
  font-weight: 700 !important;
  color: var(--ot-ink) !important;
  margin-bottom: 10px !important;
}
.gform_wrapper .gfield.ticket-auswahl .gfield_required { color: var(--ot-crimson) !important; }


/* =====================================================================
   ==========  B) EINWILLIGUNGSFELDER (Consent) & HINWEISGRUPPE  =======
   ===================================================================== */
.gform_wrapper .gfield--type-consent + .gfield--type-consent { margin-top: -14px !important; }
.gform_wrapper .gfield--type-consent { padding-top: 0 !important; padding-bottom: 0 !important; }
.gform_wrapper .gfield--type-consent .ginput_container_consent { display: flex; align-items: flex-start; gap: 12px; }
.gform_wrapper .gfield--type-consent input[type="checkbox"] {
  width: 20px !important; height: 20px !important; margin: 2px 0 0 0 !important;
  flex: 0 0 auto; accent-color: var(--ot-crimson-dark); cursor: pointer;
}
.gform_wrapper .gfield--type-consent .gfield_consent_label {
  font-family: 'Public Sans', system-ui, sans-serif !important;
  font-size: .80rem !important; font-weight: 700 !important; line-height: 1.5 !important;
  color: var(--ot-ink) !important; cursor: pointer;
}
.gform_wrapper .gfield--type-consent .gfield_consent_label a { color: var(--ot-ink); text-decoration: underline; text-underline-offset: 2px; }
.gform_wrapper .gfield--type-consent .gfield_consent_label a:hover { color: var(--ot-crimson-dark); }
.gform_wrapper .gfield--type-consent .gfield_required { color: var(--ot-crimson-dark) !important; }
.gform_wrapper .gfield--type-consent .gfield_description:not(.validation_message) { margin-left: 32px; font-size: .8rem; color: var(--ot-muted); }

/* Hinweisgruppe (Rabatt-Hinweisbox) */
.gform_wrapper .hinweisgruppe {
  display: block; font-size: .85rem; border: 0 solid; border-radius: 8px;
  padding: .75rem; background-color: var(--ot-kraft-soft);
}


/* =====================================================================
   ============  C) FELDER ALLGEMEIN – FOKUS & DROPDOWN  ===============
   ===================================================================== */
.gform_wrapper .gform_fields input[type="text"],
.gform_wrapper .gform_fields input[type="email"],
.gform_wrapper .gform_fields input[type="tel"],
.gform_wrapper .gform_fields input[type="number"],
.gform_wrapper .gform_fields input[type="url"],
.gform_wrapper .gform_fields textarea,
.gform_wrapper .gform_fields select {
  border: 1.5px solid var(--ot-border) !important;
  border-radius: 10px !important;
  background: var(--ot-bg) !important;
  color: var(--ot-ink) !important;
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.gform_wrapper .gform_fields input[type="text"]:focus,
.gform_wrapper .gform_fields input[type="email"]:focus,
.gform_wrapper .gform_fields input[type="tel"]:focus,
.gform_wrapper .gform_fields input[type="number"]:focus,
.gform_wrapper .gform_fields input[type="url"]:focus,
.gform_wrapper .gform_fields textarea:focus,
.gform_wrapper .gform_fields select:focus {
  border-color: var(--ot-crimson) !important;
  box-shadow: 0 0 0 3px rgba(184,41,61,.18) !important;
  outline: none !important;
  background: #ffffff !important;
}

/* DROPDOWN vertikal mittig + eigener Pfeil */
.gform_wrapper .gform_fields select {
  height: 52px !important; line-height: 1.2 !important; padding: 0 44px 0 16px !important;
  display: flex !important; align-items: center !important; font-size: .98rem !important;
  -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236E6161' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 16px center !important; background-size: 14px 9px !important;
}
.gform_wrapper .gform_fields select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%238F1E30' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 16px center !important; background-size: 14px 9px !important;
}
.gform_wrapper .gform_fields select::-ms-expand { display: none; }

/* Text-Inputs einheitliche Höhe (optional – bei Bedarf auskommentieren) */
.gform_wrapper .gform_fields input[type="text"],
.gform_wrapper .gform_fields input[type="email"],
.gform_wrapper .gform_fields input[type="tel"],
.gform_wrapper .gform_fields input[type="number"],
.gform_wrapper .gform_fields input[type="url"] {
  height: 52px !important; padding: 0 16px !important; font-size: .98rem !important;
}
.gform_wrapper .gform_fields textarea { padding: 12px 16px !important; font-size: .98rem !important; }


/* =====================================================================
   ============  D) SCHRITT-ÜBERSCHRIFTEN (HTML-Felder)  ===============
   ===================================================================== */
.ot-step { display: flex; align-items: center; gap: 12px; margin: 34px 0 8px; }
.gform_wrapper .gfield--type-html .ot-step:first-child { margin-top: 6px; }
.ot-step-nr {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ot-wine); color: var(--ot-kraft);
  font-family: 'Public Sans', system-ui, sans-serif; font-size: .95rem; font-weight: 800;
  line-height: 1; display: flex; align-items: center; justify-content: center;
}
.ot-step-titel {
  margin: 0 !important; padding: 0 !important;
  font-family: 'Fraunces', Georgia, serif !important; font-size: 1.3rem !important;
  font-weight: 600 !important; line-height: 1.2 !important; color: var(--ot-ink) !important;
}
.ot-step-hinweis {
  margin: 0 0 18px 44px !important; padding: 0 !important;
  font-family: 'Public Sans', system-ui, sans-serif !important; font-size: .85rem !important;
  line-height: 1.55 !important; color: var(--ot-muted) !important;
}
@media (max-width: 480px) { .ot-step-hinweis { margin-left: 0 !important; } }


/* =====================================================================
   ============  E) ABSENDEN-BUTTON  ==================================
   ===================================================================== */
.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_footer button[type="submit"] {
  width: 100% !important;
  background: var(--ot-crimson) !important; color: #fff !important;
  border: 0 !important; border-radius: 999px !important;
  padding: 19px !important;
  font-family: 'Public Sans', system-ui, sans-serif !important;
  font-weight: 800 !important; font-size: 1.12rem !important;
  box-shadow: 0 8px 24px rgba(184,41,61,.35) !important; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.gform_wrapper .gform_footer input[type="submit"]:hover,
.gform_wrapper .gform_footer button[type="submit"]:hover {
  transform: translateY(-2px); box-shadow: 0 12px 30px rgba(184,41,61,.45) !important;
}
