/* PAGES-2604 — bridge Mark's MavenX design tokens onto Gravity Forms markup.
 *
 * Mark's stylesheet styles controls by class (.mvx-input, .mvx-label,
 * .mvx-choice) but Gravity Forms only applies the per-field CSS class to the
 * .gfield WRAPPER — it never puts those classes on the input, label or choice.
 * This file re-applies the same declarations to the selectors GF actually
 * emits. Mark's mvx.css stays the source of truth for the values; nothing is
 * duplicated here except the selector mapping.
 *
 * Loaded after mvx.css on page 88517 only.
 */

/* ── Text, email, tel, url, number, textarea, select ─────────────────── */
.mvx-form_wrapper .gfield input[type="text"],
.mvx-form_wrapper .gfield input[type="email"],
.mvx-form_wrapper .gfield input[type="tel"],
.mvx-form_wrapper .gfield input[type="url"],
.mvx-form_wrapper .gfield input[type="number"],
.mvx-form_wrapper .gfield textarea,
.mvx-form_wrapper .gfield select {
  display: block;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-heading);
  background: var(--surface-raised);
  border: 1px solid var(--line-control);
  border-radius: var(--radius-none);
  padding: 12px 14px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.mvx-form_wrapper .gfield input::placeholder,
.mvx-form_wrapper .gfield textarea::placeholder {
  color: var(--text-dim);
  opacity: 1;
}

.mvx-form_wrapper .gfield input:focus,
.mvx-form_wrapper .gfield textarea:focus,
.mvx-form_wrapper .gfield select:focus {
  outline: 0;
  border-color: var(--accent-cyan);
  box-shadow: inset 0 0 0 1px var(--accent-cyan);
}

/* Select: Mark's cyan chevron, GF's native arrow suppressed. */
.mvx-form_wrapper .gfield select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%234bd4f0' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

/* ── Labels: uppercase mono, cyan required marker ─────────────────────── */
.mvx-form_wrapper .gfield > .gfield_label,
.mvx-form_wrapper .gfield > legend.gfield_label {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-label);
  font-weight: 400;
}

/* GF renders "(Required)" as text; Mark's design uses a cyan asterisk. */
.mvx-form_wrapper .gfield_required {
  color: var(--accent-cyan);
  margin-left: 3px;
  font-size: 0;
}
.mvx-form_wrapper .gfield_required::after {
  content: "*";
  font-size: 10.5px;
}

/* ── Choices: custom checkbox / radio, two-column grid ────────────────── */
.mvx-form_wrapper .gfield_checkbox,
.mvx-form_wrapper .gfield_radio {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mvx-form_wrapper .mvx-choices--2 .gfield_checkbox,
.mvx-form_wrapper .mvx-choices--2 .gfield_radio {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.mvx-form_wrapper .gchoice {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-lead);
  cursor: pointer;
  margin: 0;
}
.mvx-form_wrapper .gchoice label {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-lead);
  cursor: pointer;
  margin: 0;
  max-width: none;
}

.mvx-form_wrapper .gchoice input[type="checkbox"],
.mvx-form_wrapper .gchoice input[type="radio"],
.mvx-form_wrapper .ginput_container_consent input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line-control);
  background: var(--surface-raised);
  border-radius: var(--radius-none);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.mvx-form_wrapper .gchoice input[type="radio"],
.mvx-form_wrapper .gchoice input[type="radio"]:checked {
  border-radius: 50%;
}
.mvx-form_wrapper .gchoice input:checked,
.mvx-form_wrapper .ginput_container_consent input:checked {
  border-color: var(--accent-cyan);
}
.mvx-form_wrapper .gchoice input[type="checkbox"]:checked::after,
.mvx-form_wrapper .ginput_container_consent input[type="checkbox"]:checked::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
}
.mvx-form_wrapper .gchoice input[type="radio"]:checked::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
}
.mvx-form_wrapper .gchoice input:focus-visible,
.mvx-form_wrapper .ginput_container_consent input:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* ── Section breaks become Mark's cyan legends ────────────────────────── */
.mvx-form_wrapper .gsection {
  border: 0;
  border-top: 1px solid var(--line-control);
  margin: var(--space-6, 32px) 0 var(--space-5, 24px);
  padding: var(--space-5, 24px) 0 0;
}
.mvx-form_wrapper .gsection:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.mvx-form_wrapper .gsection_title {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-weight: 400;
}

/* ── Field rhythm and the two-up grid ─────────────────────────────────── */
.mvx-form_wrapper .gform_fields {
  display: block;
}
.mvx-form_wrapper .gfield {
  display: block;
  margin-bottom: var(--space-5, 24px);
  padding: 0;
  max-width: none;
}

/* ── Consent + description text ───────────────────────────────────────── */
.mvx-form_wrapper .ginput_container_consent {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
}
.mvx-form_wrapper .ginput_container_consent label {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-lead);
  margin: 0;
}
.mvx-form_wrapper .gfield_description {
  color: var(--text-dim);
  font-size: 13px;
  padding-top: 6px;
}

/* ── Submit ───────────────────────────────────────────────────────────── */
.mvx-form_wrapper .gform_footer input[type="submit"],
.mvx-form_wrapper .gform_footer button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #061219;
  background: var(--accent-cyan);
  border: 0;
  border-radius: var(--radius-none);
  padding: 14px 30px;
  cursor: pointer;
  transition: opacity 120ms ease;
}
.mvx-form_wrapper .gform_footer input[type="submit"]:hover,
.mvx-form_wrapper .gform_footer button:hover {
  opacity: .88;
}

/* ── Validation ───────────────────────────────────────────────────────── */
.mvx-form_wrapper .gfield_error input,
.mvx-form_wrapper .gfield_error select,
.mvx-form_wrapper .gfield_error textarea {
  border-color: var(--accent-gold, #d8a200);
}
.mvx-form_wrapper .validation_message {
  color: var(--accent-gold, #d8a200);
  font-family: var(--font-sans);
  font-size: 13px;
  background: none;
  border: 0;
  padding: 6px 0 0;
}

/* ── Required marker, corrected ───────────────────────────────────────────
 * GF nests the marker: span.gfield_required > span.gfield_required.gfield_required_text
 * so a bare .gfield_required rule matches BOTH and any ::after fires twice.
 * Hide the inner "(Required)" text outright and put a single cyan asterisk on
 * the outer span only.
 */
.mvx-form_wrapper .gfield_required_text {
  display: none !important;
}
.mvx-form_wrapper .gfield_required::after {
  content: none;
}
.mvx-form_wrapper .gfield_label > .gfield_required::after,
.mvx-form_wrapper .gfield_label > legend > .gfield_required::after {
  content: "*";
  color: var(--accent-cyan);
  font-size: 10.5px;
  margin-left: 3px;
}

/* ── Section rules removed ────────────────────────────────────────────────
 * Mark's design shows the section legend as cyan text alone, with no rule
 * above or below. GF draws its own border-bottom on .gsection and an earlier
 * draft of this file added a border-top; both are wrong. Clear them.
 */
.mvx-form_wrapper .gsection {
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  margin: 34px 0 20px;
  padding: 0;
}
.mvx-form_wrapper .gsection:first-child {
  margin-top: 0;
}

/* ── Page shell: two-column editorial + form ──────────────────────────────
 * Mark's design puts editorial copy left and the form in a card right.
 * Layout only; all values come from his tokens in mvx.css.
 */
.mvx-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 40px);
  align-items: start;
}
@media (max-width: 900px) {
  .mvx-page { grid-template-columns: 1fr; }
}
.mvx-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-label);
  margin: 0 0 var(--space-4, 18px);
}
.mvx-h1 {
  /* Values from Mark's .mvx-inquiry__title. font-family was the omission that
   * let Astra's own `h1` rule supply Poppins: .mvx-h1 declared no family at
   * all, so the theme won by default rather than by specificity. */
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.14;
  font-weight: 400;
  letter-spacing: -.02em;
  max-width: 20ch;
  color: var(--text-heading);
  margin: 0 0 var(--space-5, 24px);
}
.mvx-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-lead);
  margin: 0 0 var(--space-6, 32px);
  max-width: 46ch;
}
.mvx-steps { list-style: none; margin: 0 0 var(--space-6, 32px); padding: 0; }
.mvx-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line-control);
  color: var(--text-lead);
  font-size: 15px;
  line-height: 1.5;
}
.mvx-steps li:last-child { border-bottom: 1px solid var(--line-control); }
.mvx-steps .n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--accent-cyan);
  padding-top: 3px;
}
.mvx-note {
  font-style: italic;
  font-size: 15px;
  line-height: 1.55;
  color: var(--accent-gold, #d8a200);
  margin: 0;
  max-width: 44ch;
}
.mvx-form-wrap {
  border: 1px solid var(--line-control);
  padding: clamp(22px, 3vw, 34px);
  background: var(--surface, transparent);
}

/* ── Single card border ───────────────────────────────────────────────────
 * .mvx-form-wrap draws the card. Gravity Forms / Astra also draw a border on
 * the wrapper inside it, producing a visible double rule. Keep the outer one.
 */
.mvx-form-wrap .gform_wrapper,
.mvx-form-wrap .gform_wrapper form,
.mvx-form-wrap .gform-theme--foundation,
.mvx-form-wrap .gform_body {
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
