/* Formulieren — nagebouwd op de berekende waarden van Gravity Forms (orbital-thema) in het origineel. */
.form { --form-gap-y: 20px; --form-gap-x: 16px; }
.form__honeypot { display: none; }
.form__heading { margin-bottom: 0; }
.form__title { }

.form__fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: var(--form-gap-y); column-gap: var(--form-gap-x); }
.form__field { grid-column: 1 / -1; min-width: 0; border: 0; margin: 0; padding: 0; }
@media (min-width: 640px) {
  .form__field--half { grid-column: span 6; }
  .form__field--two-thirds { grid-column: span 8; }
  .form__field--third { grid-column: span 4; }
}

.form__label { display: block; margin-bottom: 8px; font-size: 14px; line-height: 1.43; font-weight: 400; color: var(--color-primary); }
.form span, .form label { border-style: none; }
.form__label-text--req { padding-inline-end: 6px; }
.form__required { font-size: 12px; line-height: 1.43; color: var(--color-primary); }

.form__control {
  display: block;
  width: 100%;
  height: 47px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background-color: var(--color-blue-light);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 47px;
  outline: none;
  box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form__control:focus { border-color: var(--color-primary); }
.form__control::placeholder { color: var(--color-gray-dark); }
.form__control--textarea { height: 130px; padding: 12px; line-height: 1.5; resize: vertical; }
.form__control--medium { height: 192px; }
.form__control--select option { min-height: 0; border-style: none; white-space: normal; align-items: normal; gap: normal; }
.form__control--select {
  appearance: none;
  padding-inline-end: 36px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.292893 0.292893C0.683417 -0.097631 1.31658 -0.097631 1.70711 0.292893L5 3.58579L8.29289 0.292893C8.68342 -0.0976311 9.31658 -0.0976311 9.70711 0.292893C10.0976 0.683417 10.0976 1.31658 9.70711 1.70711L5.70711 5.70711C5.31658 6.09763 4.68342 6.09763 4.29289 5.70711L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683418 0.292893 0.292893Z' fill='rgba(0, 0, 0, 0.65)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
  cursor: pointer;
}

/* Toestemming */
.form__field--consent { align-self: center; }
.form__consent { display: flex; align-items: flex-start; gap: 12px; }
.form__checkbox {
  appearance: none;
  display: grid;
  place-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid var(--color-black);
  border-radius: 2px;
  background-color: var(--color-white);
  cursor: pointer;
}
.form__checkbox::before {
  content: "";
  width: 15px;
  height: 15px;
  background-color: var(--color-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transition: opacity 0.15s;
}
.form__checkbox:checked::before { opacity: 1; }
.form__consent-label { margin-top: 1px; font-size: 14px; line-height: 1.43; color: var(--color-primary); cursor: pointer; }
.form__consent-label a { color: inherit; text-decoration-line: underline; text-underline-offset: 2px; }

/* Verzendknop */
.form__field--submit { display: flex; align-items: flex-end; gap: 8px; }
.form__footer { display: flex; margin-top: var(--form-gap-y); }
.form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 47px;
  min-height: 47px;
  margin-inline-start: auto;
  padding: 0 20px;
  column-gap: 6px;
  vertical-align: top;
  border: 1px solid transparent;
  border-radius: var(--radius-2xl);
  background-color: var(--color-pink);
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  box-shadow: 0 1px 4px 0 rgba(18, 25, 97, 0.08);
  cursor: pointer;
  transition: all 0.15s;
}
.form__submit--full { width: 100%; }
@media (min-width: 64rem) { .form__submit { font-size: 18px; line-height: 28px; } }
.form__submit:focus-visible { border-color: var(--color-black); outline: none; }
@media (hover: hover) { .form__submit:hover { background-color: var(--color-primary); color: var(--color-white); } }

/* Datum: smal veld met de kalenderknop rechts in het veld */
.form__date { position: relative; display: flex; align-items: center; width: fit-content; }
.form__control--date { width: 222px; padding-inline-end: 36px; }
.form__date-toggle { position: absolute; top: 0; bottom: 0; right: 0.625rem; display: flex; align-items: center; justify-content: center; width: 22px; color: rgba(0, 0, 0, 0.65); cursor: pointer; }
.form__date-native { position: absolute; right: 0.625rem; bottom: 0; width: 22px; height: 0; opacity: 0; pointer-events: none; }

/* Verborgen legenda (zoals Gravity: alleen voor schermlezers, met labelopmaak) */
.form__legend { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; font-size: 14px; line-height: 1.43; }
