/* ===============================
   Layout: Flexibele opmaak
   =============================== */
.acfe-form .acf-fields {
  display: flex;
  flex-wrap: wrap;
  column-gap: 2%;
  row-gap: 1.5rem; /* ← verticale ruimte tussen rijen */
}

.acfe-form .acf-field.form-33 {
  flex: 1 1 calc(33.333% - 1.34%);
  min-width: 180px;
  padding: 0;
}

.acfe-form .acf-field.form-50 {
  flex: 1 1 calc(50% - 1%);
  min-width: 250px;
  padding: 0;
}

.acfe-form .acf-field.form-100,
.acfe-form .acf-field:not(.form-33):not(.form-50) {
  flex: 1 1 100%;
  padding: 0;
}

@media (max-width: 600px) {
  .acfe-form .acf-field {
    flex: 1 1 100% !important;
  }
}

/* ===============================
   Form Field Styling
   =============================== */
.acfe-form .acf-label {
  display: none;
}

.acfe-form .acf-field input[type='text'],
.acfe-form .acf-field input[type='email'],
.acfe-form .acf-field input[type='tel'],
.acfe-form .acf-field input[type='url'],
.acfe-form .acf-field input[type='number'],
.acfe-form .acf-field input[type='password'],
.acfe-form .acf-field select,
.acfe-form .acf-field textarea {
  width: 100%;
  padding: 10px 8px;
  border: 1px solid var(--secondary-color);
  border-radius: 6px;
  background-color: var(--white-color);
  color: var(--secondary-color);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.acfe-form .acf-field ::placeholder {
  color: var(--secondary-color);
  opacity: 1;
}

.acfe-form .acf-field input:focus,
.acfe-form .acf-field textarea:focus,
.acfe-form .acf-field select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(160, 123, 83, 0.2);
}

.acfe-form .acf-field input[type='checkbox'],
.acfe-form .acf-field input[type='radio'] {
  accent-color: var(--secondary-color);
}

/* ===============================
   Submit button (button-3 variant)
   =============================== */
.acfe-form input[type='submit'].button-3 {
  font-family: var(--button-font-family, 'Lora'), serif;
  font-size: var(--button-font-size, 16px);
  font-weight: var(--button-font-weight, 700);
  text-transform: var(--button-text-transform, uppercase);
  padding: var(--button-padding, 12px 24px);
  border-radius: var(--button-border-radius, 4px);
  background-color: var(--button-3-background-color, #000);
  color: var(--button-3-color, var(--white-color));
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: inline-block;
  margin-top: 1rem;
}

.acfe-form input[type='submit'].button-3:hover {
  filter: brightness(0.9);
}

/* ===============================
   Validatie (invalid state)
   =============================== */
.acfe-form .acf-field input:invalid,
.acfe-form .acf-field select:invalid,
.acfe-form .acf-field textarea:invalid {
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.15);
}

/* ===============================
   Password Fields Styling
   =============================== */
.acfe-form .acf-password-toggle {
  position: relative;
}

.acfe-form .acf-password-toggle input[type='password'],
.acfe-form .acf-password-toggle input[type='text'] {
  padding-right: 40px; /* ruimte voor knop 👁️ */
}

.acfe-form .acf-password-toggle .toggle-visibility {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  color: var(--secondary-color);
  opacity: 0.7;
}

.acfe-form .acf-password-toggle .toggle-visibility:hover {
  opacity: 1;
}

.acfe-form .acf-field-password input:invalid {
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.15);
}