/*
 * VRI inquiry-form polish.
 *
 * Presentation-only alignment for the Interest and Waitlist forms. This mirrors
 * the calmer, flatter control geometry and hierarchy used by Student Registration
 * and the Mentor Application without changing inquiry form behavior, validation,
 * field names, storage, filtering, or submission logic.
 */

:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app) {
  --vri-app-control-height: 50px;
  --vri-app-control-radius: 10px;
  --vri-app-surface-radius: var(--radius-xl);
  --vri-app-control-border: rgba(4, 76, 89, 0.20);
  --vri-app-rule: rgba(4, 76, 89, 0.11);
}

/* Stable outer form surface: one architectural plane rather than stacked depth. */
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-section-card {
  border-radius: var(--vri-app-surface-radius) !important;
  border-color: rgba(4, 76, 89, 0.13) !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 14px 32px rgba(16, 33, 42, 0.05) !important;
}

:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-section-head {
  margin-bottom: 24px;
}

:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-section-head .session-kicker {
  margin-bottom: 7px;
  color: var(--teal-700);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Match the serif, restrained application-form title treatment. */
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .inquiry-form-titleline h3 {
  margin: 0;
  color: var(--teal-950);
  font-family: var(--vri-font-display);
  font-size: clamp(1.8rem, 2.2vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.03;
}

/* Subsections should read as quiet dividers, not floating cards. */
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .inquiry-form-sections {
  gap: 0 !important;
}

:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .inquiry-form-section {
  margin: 0 !important;
  padding: 24px 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--vri-app-rule) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .inquiry-form-section:first-child {
  padding-top: 0 !important;
  border-top: 0 !important;
}

:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .inquiry-form-section-head {
  margin-bottom: 16px !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .inquiry-section-titleline h4,
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .inquiry-form-section-head h4 {
  margin: 0;
  color: var(--teal-950);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .inquiry-section-titleline p,
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .inquiry-form-section-head p {
  color: var(--muted);
  line-height: 1.55;
}

/* Calm labels: remove uppercase mini-headline treatment. */
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field > span:first-child {
  margin-left: 0 !important;
  color: #243b43 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
}

:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field > span:first-child strong {
  color: var(--gold-800) !important;
  font-weight: 800 !important;
}

/* Scheduler-inspired ordinary controls, exactly matching the application polish. */
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="hidden"]),
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field > select,
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field > textarea {
  border: 1px solid var(--vri-app-control-border) !important;
  border-radius: var(--vri-app-control-radius) !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  color: var(--ink) !important;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="hidden"]),
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field > select {
  min-height: var(--vri-app-control-height) !important;
  height: auto;
}

:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field > textarea {
  min-height: 112px !important;
}

:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="hidden"]):hover,
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field > select:hover,
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field > textarea:hover {
  border-color: rgba(4, 76, 89, 0.30) !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
}

:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="hidden"]):focus,
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field > select:focus,
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field > textarea:focus {
  border-color: rgba(4, 76, 89, 0.42) !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(4, 76, 89, 0.075) !important;
  outline: none !important;
}

:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="hidden"]):focus-visible,
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field > select:focus-visible,
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field > textarea:focus-visible {
  outline: 3px solid rgba(229, 181, 59, 0.42) !important;
  outline-offset: 2px !important;
}

/* Preserve the gold dropdown caret while removing the old floating shell. */
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field > select {
  background:
    linear-gradient(45deg, transparent 50%, var(--gold-800) 50%),
    linear-gradient(135deg, var(--gold-800) 50%, transparent 50%),
    #ffffff !important;
  background-position:
    calc(100% - 19px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px),
    100% 100% !important;
  background-size: 5px 5px, 5px 5px, 100% 100% !important;
  background-repeat: no-repeat !important;
}

/* Notes stay helpful but visually subordinate. */
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .inquiry-flat-note {
  border-radius: var(--vri-app-control-radius) !important;
  box-shadow: none !important;
}

:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-helper-text {
  margin-left: 0 !important;
  line-height: 1.55 !important;
}

/* Keep the Interest consent control visually aligned and easy to scan. */
body.interest-page #interest-app .interest-consent-control {
  margin: 22px 0 0 !important;
  padding: 15px 17px !important;
}

body.interest-page #interest-app .interest-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  line-height: 1.5;
  cursor: pointer;
}

body.interest-page #interest-app .interest-consent-label input[type="checkbox"] {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
}

body.interest-page #interest-app .interest-consent-label > span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

body.interest-page #interest-app .interest-consent-control .registration-helper-text {
  margin: 8px 0 0 26px !important;
  line-height: 1.5 !important;
}

/* Validation remains visible without restoring depth. */
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field.has-validation-error > input:not([type="checkbox"]):not([type="radio"]),
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field.has-validation-error > select,
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field.has-validation-error > textarea,
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field > input[aria-invalid="true"],
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field > select[aria-invalid="true"],
:is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
  .registration-field > textarea[aria-invalid="true"] {
  border-color: rgba(157, 58, 32, 0.50) !important;
  box-shadow: none !important;
}

@media (max-width: 640px) {
  :is(body.interest-page #interest-app, body.waitlist-page #waitlist-app) {
    --vri-app-control-height: 50px;
    --vri-app-control-radius: 9px;
    --vri-app-surface-radius: var(--radius-lg);
  }

  :is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
    .inquiry-form-titleline h3 {
    font-size: 1.75rem;
  }

  :is(body.interest-page #interest-app, body.waitlist-page #waitlist-app)
    .inquiry-form-section {
    padding: 20px 0 !important;
  }

  body.interest-page #interest-app .interest-consent-control {
    padding: 14px 15px !important;
  }

  body.interest-page #interest-app .interest-consent-label {
    gap: 9px;
  }

  body.interest-page #interest-app .interest-consent-control .registration-helper-text {
    margin-left: 25px !important;
  }
}
