/* ANFRAGEFORMULAR */

.form-page {
  max-width: 760px;
  margin: 2.2rem auto 0;
}

.form-strip {
  width: 100%;
  margin-bottom: 1.6rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 10px 24px rgba(80, 60, 60, 0.10),
    0 3px 8px rgba(80, 60, 60, 0.06);
}

.form-strip-image {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.form-strip-logo {
  display: none;
}

.form-intro {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 1.8rem;
}

.form-intro h1 {
  margin: 0 0 1rem 0;
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 300;
  color: var(--color-heading);
}

.form-intro p {
  max-width: 42rem;
  margin: 0 auto 0.8rem;
  line-height: 1.5;
  font-size: 1.02rem;
  color: #434343;
}

.required-note {
  font-size: 0.95rem;
  color: rgba(66, 74, 109, 0.88);
}

.event-form {
  background: #f3e8e8;
  border-radius: 10px;
  padding: 1.4rem;
  box-shadow:
    0 14px 28px rgba(80, 60, 60, 0.10),
    0 3px 8px rgba(80, 60, 60, 0.05);
}

.form-section + .form-section {
  margin-top: 2rem;
}

.form-section h2 {
  margin: 0 0 1rem 0;
  font-size: 1.12rem;
  font-weight: 400;
  color: #424a6d;
}

.form-grid {
  display: grid;
  gap: 1rem 1.1rem;
}

.form-grid.two-columns {
  grid-template-columns: 1fr 1fr;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.form-field label {
  margin-bottom: 0.48rem;
  font-size: 1rem;
  color: #424a6d;
}

.form-field label span {
  color: #8c5c7b;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(66, 74, 109, 0.30);
  border-radius: 8px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  color: #3f3f3f;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(106, 123, 232, 0.55);
  box-shadow: 0 0 0 3px rgba(106, 123, 232, 0.10);
}

.form-field input:invalid,
.form-field select:invalid,
.form-field textarea:invalid {
  border-color: rgba(212, 124, 124, 0.6);
}

[data-fs-field][aria-invalid='true'] {
  border-color: rgba(212, 124, 124, 0.7);
  box-shadow: 0 0 0 3px rgba(212, 124, 124, 0.12);
}

.form-consent-box {
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(66, 74, 109, 0.12);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.97rem;
  line-height: 1.5;
  color: #434343;
}

.form-consent input[type="checkbox"] {
  margin-top: 0.18rem;
  flex: 0 0 auto;
}

.form-consent a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== SUBMIT AREA ===== */

.form-submit-area {
  position: relative;
  margin-top: 1.4rem;
  min-height: 205px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
    width: 100%;
  max-width: 420px;
}

/* SEND BUTTON */

.form-button {
  grid-column: 2;
  justify-self: center;

  border: none;
  border-radius: 11px;
  padding: 0.9rem 2rem;

  font: inherit;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;

  color: #ffffff;
  background: #6d7391;

  cursor: pointer;

  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.form-button:hover {
  transform: translateY(-2px);
  background: #5c627e;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.form-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.10);
}

/* THANK YOU IMAGE */

.form-thankyou {
  grid-column: 3;
  justify-self: start;
  margin-left: 1rem;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-thankyou img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* SUCCESS + ERROR OVERLAY */

.form-success-box,
.form-error-box {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: 10px;
  padding: 1.15rem 1.25rem 1.25rem;
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-sizing: border-box;
}

.form-success-box[data-fs-active],
.form-error-box[data-fs-active] {
  display: flex;
}

.form-success-box {
  background: #f5efe2 !important;
  border: 1px solid rgba(95, 115, 145, 0.16) !important;
  color: #434343 !important;
  box-shadow: 0 8px 18px rgba(80, 60, 60, 0.08);
}

.form-success-box h2 {
  margin: 0 0 0.45rem 0;
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--color-heading);
}

.form-success-box p {
  margin: 0 0 0.8rem 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #434343;
}

.form-success-actions {
  margin-top: 0.15rem;
}

.form-back-button,
.form-back-button:visited {
  display: inline-block;
  padding: 0.88rem 1.9rem;
  border-radius: 11px;
  background: #6d7391 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.form-back-button:hover,
.form-back-button:focus {
  transform: translateY(-2px);
  background: #5c627e !important;
  color: #ffffff !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.form-error-box {
  background: #f4e7e7;
  border: 1px solid rgba(122, 63, 63, 0.14);
  color: #7a3f3f;
}

.form-contact-note {
  font-size: 0.95rem;
  color: rgba(66, 74, 109, 0.82);
}

@media (max-width: 700px) {
  
  .form-page {
    margin-top: 1.5rem;
  }

  .form-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 95px;
    padding: 0.8rem 1rem;
    background: #f5efe2;
    box-shadow:
    0 8px 18px rgba(80, 60, 60, 0.08),
    0 2px 6px rgba(80, 60, 60, 0.04);
  }

  .form-strip-image {
    display: none;
  }

  .form-strip-logo {
    display: block;
    width: min(180px, 62vw);
    height: auto;
  }

  .form-intro p {
    font-size: 0.97rem;
    line-height: 1.45;
  }

  .event-form {
    padding: 1.2rem;
  }

  .form-grid.two-columns {
    grid-template-columns: 1fr;
  }

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

  .form-button {
    width: 100%;
  }

  .form-thankyou {
    margin-left: 0;
    width: 78px;
    height: 78px;
  }

}

@media (max-width: 520px) {

  .form-strip {
    min-height: 82px;
    padding: 0.7rem 0.9rem;
  }

  .form-strip-logo {
    width: min(155px, 58vw);
  }

  .form-intro h1 {
    font-size: 1.3rem;
    line-height: 1.2;
    }

  .form-intro p {
    font-size: 0.94rem;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    padding: 0.75rem 0.8rem;
  }

  .form-consent {
    font-size: 0.88rem;
  }
  
}