/**
 * Section: Request Information
 *
 * Figma 207:1046 — white ground, centred heading, two-column form with
 * cream-filled inputs, gold submit.
 */

.vu-section--request-info {
  padding-block: var(--vu-space-30);
}

.vu-rfi {
  max-width: 1126px;   /* 1283 − 157 in the Figma frame */
  margin-inline: auto;
}

.vu-rfi__title {
  font-family: var(--vu-font-sans);
  font-weight: 400;
  font-size: var(--vu-display-size);
  line-height: var(--vu-display-lh);
  letter-spacing: var(--vu-display-track);
  text-align: center;
}

.vu-rfi__note {
  margin-block: var(--vu-space-5) var(--vu-space-10);
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.01em;
  text-align: center;
}

/* Gold-brown asterisk from the design. Measured 5.9:1 on white, so it
   clears AA — but required state is never signalled by colour alone;
   a visually hidden "(required)" accompanies every one. */
.vu-rfi__req {
  color: #946e24;
}

.vu-rfi__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--vu-space-7) 20px;
}

.vu-rfi__field {
  display: flex;
  flex-direction: column;
  gap: var(--vu-space-2);
  min-width: 0;
}

.vu-rfi__field label,
.vu-rfi__fieldset legend {
  font-size: var(--vu-body-size);
  line-height: 28px;
  letter-spacing: var(--vu-body-track);
}

.vu-rfi__fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.vu-rfi__fieldset legend {
  padding: 0;
  margin-block-end: var(--vu-space-2);
}

/* ------------------------------------------------------------- Inputs */
.vu-rfi input[type="text"],
.vu-rfi input[type="email"],
.vu-rfi input[type="tel"],
.vu-rfi select {
  width: 100%;
  height: 48px;
  padding-inline: var(--vu-space-4);
  background-color: var(--vu-cream);
  border: var(--vu-rule-width) solid transparent;
  border-radius: 0;
  font-family: var(--vu-font-sans);
  font-size: var(--vu-body-size);
  letter-spacing: var(--vu-body-track);
  color: var(--vu-ink);
  appearance: none;
}

.vu-rfi select {
  /* Room for the chevron, which is drawn on the wrapper rather than as a
     background-image here: a background image on the control makes the
     computed background colour indeterminate, so contrast on the select
     text cannot be verified by any checker. */
  padding-inline-end: 44px;
  cursor: pointer;
}

.vu-rfi .wpcf7-form-control-wrap:has(select) {
  position: relative;
}

.vu-rfi .wpcf7-form-control-wrap:has(select)::after {
  content: "";
  position: absolute;
  inset-inline-end: var(--vu-space-4);
  inset-block-start: 50%;
  translate: 0 -50%;
  width: 14px;
  height: 9px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%231c1c1c' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
	top: 25px;
}

.vu-rfi input:focus-visible,
.vu-rfi select:focus-visible {
  outline: var(--vu-focus-width) solid var(--vu-focus-colour);
  outline-offset: 2px;
}

/* CF7 marks invalid controls with aria-invalid; the border gives a
   non-colour cue alongside the message beneath. */
.vu-rfi [aria-invalid="true"] {
  border-color: #a8261b;
}

.vu-rfi__prefixed {
  position: relative;
  display: block;
}

.vu-rfi__prefix {
  position: absolute;
  inset-block: 0;
  inset-inline-start: var(--vu-space-4);
  display: flex;
  align-items: center;
  font-size: var(--vu-body-size);
}

.vu-rfi input.vu-rfi__input--prefixed {
  padding-inline-start: 28px;
}

/* --------------------------------------------------------- Birthdate */
.vu-rfi__date {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 10px;
}

.vu-rfi__date-part {
  min-width: 0;
}

/* ------------------------------------------------------ Consent + CTA */
.vu-rfi__consent {
  max-width: 880px;
  margin: var(--vu-space-10) auto 0;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: -0.01em;
  text-align: center;
}

.vu-rfi__consent a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vu-rfi__actions {
  margin-block-start: var(--vu-space-10);
  text-align: center;
}

.vu-rfi input[type="submit"] {
  border: 0;
  cursor: pointer;
}

/* --------------------------------------------- Contact Form 7 output */
/* CF7 wraps every field in a span; it must not break the grid. */
.vu-rfi .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.vu-rfi .wpcf7-not-valid-tip {
  margin-block-start: var(--vu-space-2);
  font-size: 14px;
  line-height: 1.4;
  color: #a8261b;
}

.vu-rfi .wpcf7-response-output {
  margin: var(--vu-space-8) 0 0;
  padding: var(--vu-space-4) var(--vu-space-5);
  border: var(--vu-rule-width) solid var(--vu-ink);
  font-size: var(--vu-body-size);
  line-height: 24px;
  text-align: center;
}

.vu-rfi form.invalid .wpcf7-response-output,
.vu-rfi form.unaccepted .wpcf7-response-output,
.vu-rfi form.failed .wpcf7-response-output {
  border-color: #a8261b;
  color: #a8261b;
}

.vu-rfi .wpcf7-spinner {
  margin-inline-start: var(--vu-space-3);
}

/* ================================================================
 * Mobile
 * ============================================================== */
@media (max-width: 767px) {
  .vu-rfi__grid {
    grid-template-columns: 1fr;
    gap: var(--vu-space-5);
  }

  .vu-rfi__title {
    text-align: center;
  }

  .vu-rfi__note,
  .vu-rfi__consent {
    text-align: center;
  }

  .vu-rfi__actions {
    text-align: center;
  }
}
