.consultation-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3.125rem;
}

/*
 * CF7 wraps every top-level line in a bare <p>, and `.wpcf7 form > p { display: contents }`
 * (global CF7 reset) strips its box so the required-note text can't carry its own margin.
 * Force it back to a real box (higher specificity than that reset) so it can be spaced
 * independently of the uniform flex `gap` above.
 */
.wpcf7 form > p.consultation-form__required {
  display: block;
  margin-top: -2.1875rem;
}

.consultation-form__consent-row {
  margin-top: -2.75rem;
}

.consultation-form__row {
  display: flex;
  gap: 3.125rem;
}

.consultation-form__field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.consultation-form__field > p {
  margin: 0;
}

.consultation-form__field label {
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  color: var(--color-text);
}

.consultation-form__optional {
  font-family: var(--font-body);
  font-size: 1.125rem;
}

.consultation-form__field input,
.consultation-form__field select,
.consultation-form__field textarea {
  box-sizing: border-box;
  height: 68px;
  border: 1.5px solid var(--color-navy);
  padding: 1.25rem 1.875rem;
  font-size: 1.125rem;
  background: transparent;
  width: 100%;
}

.consultation-form__field textarea {
  height: auto;
  resize: vertical;
}

.consultation-form__field input::placeholder,
.consultation-form__field textarea::placeholder {
  font-style: italic;
}

.consultation-form__select {
  position: relative;
}

.consultation-form__select > p {
  margin: 0;
}

.consultation-form__select select {
  appearance: none;
}

.consultation-form__select img {
  position: absolute;
  right: 1.875rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.consultation-form__required {
  font-size: 1rem;
  color: var(--color-text);
  margin: 0;
}

.consultation-form__consent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.consultation-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #777;
}

.consultation-form__consent label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.consultation-form__consent input[type="checkbox"] {
  appearance: none;
  width: 8px;
  height: 8px;
  margin: 0;
  border: 0.5px solid #000;
  background: #fafafa;
  flex-shrink: 0;
}

.consultation-form__consent a {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-indigo);
}

.consultation-form__policy-link {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--color-indigo);
  white-space: nowrap;
}

.consultation-form__submit {
  width: 100%;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .consultation-form {
    gap: 2rem;
  }

  .wpcf7 form > p.consultation-form__required {
    margin-top: -1.0625rem;
  }

  .consultation-form__consent-row {
    margin-top: -1.625rem;
  }

  .consultation-form__row {
    flex-direction: column;
    gap: 2rem;
  }

  .consultation-form__field input,
  .consultation-form__field select,
  .consultation-form__field textarea {
    height: 58px;
    padding: 1rem 1.25rem;
  }
}
