/* Lead forms – Digiscale Refresh on Fundmate CI */

/* Theme cards clip tall content (.sign-up-pane max-height + overflow:hidden). */
.page-lets-go .sign-up,
.page-lets-go .sign-up-card,
.page-lets-go .sign-up-wrapper,
.page-lets-go .sign-up-pane,
.page-lets-go .sign-up-list,
.page-lets-go .sign-up-item {
  overflow: visible !important;
  max-height: none !important;
}

.page-lets-go .sign-up-item-broadened {
  max-width: 36rem;
}

.lead-form-host {
  overflow: visible;
  width: 100%;
  max-width: 100%;
}

button.lead-form-toggle {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* Landing-page CTAs (lp-cta, ref-cta, …) keep their own fill; strip native chrome only. */
button.lead-form-toggle:not(.button) {
  font: inherit;
  border: none;
}

/* /los-gehts uses theme .button.button-primary — theme primary is outline-only + button reset
   zeros backgrounds, so force a solid CTA. */
button.lead-form-toggle.button.button-primary {
  background-color: #40b8b2 !important;
  color: #fff !important;
  border: 1px solid #40b8b2 !important;
  font-weight: 600;
}

button.lead-form-toggle.is-open::after {
  content: none !important;
}

/* Light card when form opens on dark LP sections */
.lp-final .lead-form-panel,
.band .lead-form-panel,
.final .lead-form-panel,
.ref-cta-panel .lead-form-panel,
.form-ph .lead-form-panel {
  background: #fff;
  padding: 1.25rem 1.15rem 1.75rem;
  border-radius: 14px;
  border-top: none;
  box-shadow: 0 10px 28px rgba(15, 72, 95, 0.12);
}

.lead-form-panel {
  margin-top: 1.5rem;
  padding: 1.5rem 0 2.25rem;
  border-top: 1px dashed #c5d4d8;
  text-align: left;
  max-width: 36rem;
  width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}

.lead-form-panel.is-open {
  animation: lead-form-in 0.28s ease;
}

@keyframes lead-form-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.lead-form__headline {
  font-family: "Posterama Text", "PosteramaText", sans-serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.25;
  color: #0f485f;
  margin: 0 0 1.6rem;
  text-align: center;
}

.lead-form__accent-teal { color: #40b8b2; }
.lead-form__accent-pink { color: #ea537c; }

.lead-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.15rem;
}

@media (max-width: 640px) {
  .lead-form__row { grid-template-columns: 1fr; }
}

.lead-form__field {
  margin-bottom: 1.25rem;
}

.lead-form__field label {
  display: block;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: #0f485f;
  margin-bottom: 0.45rem;
}

.lead-form__req {
  color: #0f485f;
}

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form select,
.lead-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px dashed #c5d4d8;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  min-height: 3.05rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1rem;
  color: #0f485f;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lead-form textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: #40b8b2;
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(64, 184, 178, 0.18);
}

.lead-form input.is-invalid,
.lead-form select.is-invalid,
.lead-form textarea.is-invalid {
  border-color: #ea537c;
  border-style: solid;
}

.lead-form__input-icon {
  position: relative;
}

.lead-form__input-icon .lead-form__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9aafb6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  pointer-events: none;
  z-index: 1;
}

/* Must beat `.lead-form input[type="…"]` padding shorthand specificity. */
.lead-form__input-icon input[type="text"],
.lead-form__input-icon input[type="email"] {
  padding-left: 3rem;
}

.lead-form__phone {
  display: grid;
  grid-template-columns: minmax(7.5rem, 8.5rem) 1fr;
  gap: 0.5rem;
}

.lead-form__phone-country {
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

.lead-form__select-wrap {
  position: relative;
}

.lead-form__select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #0f485f;
  border-bottom: 2px solid #0f485f;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.lead-form__select-wrap select {
  appearance: none;
  padding-right: 2.25rem;
}

.lead-form__field--consent {
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
}

.lead-form__consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-weight: 400 !important;
  font-size: 0.88rem !important;
  line-height: 1.45;
  cursor: pointer;
  color: #0f485f;
}

/* Theme resets input { appearance: none } — restore a visible, clickable box. */
.lead-form__consent input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  margin: 0.15rem 0 0;
  padding: 0;
  flex-shrink: 0;
  box-sizing: border-box;
  border: 2px solid #0f485f;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
  accent-color: #40b8b2;
}

.lead-form__consent input[type="checkbox"]:hover {
  border-color: #40b8b2;
}

.lead-form__consent input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(64, 184, 178, 0.28);
}

.lead-form__consent input[type="checkbox"]:checked {
  background-color: #40b8b2;
  border-color: #40b8b2;
}

.lead-form__consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.05rem;
  width: 0.35rem;
  height: 0.65rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.lead-form__consent input[type="checkbox"].is-invalid {
  border-color: #ea537c;
}

.lead-form__consent a {
  color: #00788b;
  text-decoration: underline;
}

.lead-form__error {
  margin: 0.35rem 0 0;
  color: #ea537c;
  font-size: 0.82rem;
}

.lead-form__error--form {
  margin: 1rem 0 0;
  text-align: center;
}

.lead-form.is-submitting {
  opacity: 0.85;
  pointer-events: none;
}

.lead-form__actions {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem 0 1.25rem;
  text-align: center;
}

.lead-form__submit,
button.button.lead-form__submit,
.lead-form__submit.button {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  min-width: min(100%, 20rem);
  max-width: 100%;
  width: 100%;
  height: auto !important;
  min-height: 3.5rem;
  padding: 1.05rem 2rem !important;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  /* Theme resets `button { background: transparent }` and `.button-primary` is outline-only. */
  background-color: #ea537c !important;
  color: #fff !important;
  border: 1px solid #ea537c !important;
  border-radius: 2.75em;
  font-family: "Posterama Text", "PosteramaText", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 10px 24px -8px rgba(234, 83, 124, 0.55);
}

.lead-form__submit:hover,
button.button.lead-form__submit:hover,
.lead-form__submit.button:hover {
  background-color: #e4285b !important;
  border-color: #e4285b !important;
  color: #fff !important;
}

@media (max-width: 640px) {
  .lead-form-panel {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 5.5rem;
  }

  /* Keep Absenden visible while scrolling; sit above fixed .consent-banner (~96px). */
  .lead-form__actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin-top: 1.25rem;
    margin-bottom: 0;
    padding: 0.85rem 0.25rem 1.25rem;
    background: linear-gradient(to top, #fff 70%, rgba(255, 255, 255, 0));
  }

  body:has(.consent-banner) .lead-form__actions {
    bottom: 6.75rem;
  }
}

.lead-form__success {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  color: #0f485f;
}

.lead-form-panel.is-success {
  border-top: none;
  padding-top: 0.5rem;
  margin-top: 0;
}

.lead-form-panel.is-success .lead-form__success {
  display: block;
}

.lead-form__success h3 {
  font-family: "Posterama Text", "PosteramaText", sans-serif;
  color: #40b8b2;
  margin-bottom: 0.75rem;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
}

.lead-form__success p {
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 28rem;
  margin: 0 auto;
}

/* After submit: hide marketing lists + toggle so the thank-you is the first thing seen. */
.page-lets-go .sign-up-pane.is-lead-success .sign-up-info,
.page-lets-go .sign-up-pane.is-lead-success .submit-element,
.page-lets-go .is-lead-hidden {
  display: none !important;
}

.lead-form-toggle.is-open {
  opacity: 0.85;
}

button.button.lead-form-toggle {
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.pac-container {
  z-index: 10000 !important;
  border-radius: 10px;
  border: 1px solid #e0eef1;
  box-shadow: 0 8px 24px rgba(15, 72, 95, 0.12);
  font-family: "IBM Plex Sans", sans-serif;
}
