/* ============================================================================
   Team Red Funding - /apply application wizard.

   Loaded after tailwind.css, which is a static compiled file: every rule this
   page needs beyond it lives here under the af- prefix.

   Contrast (WCAG 2.x, computed): card text #141414 on #FFFFFF 18.4:1, muted
   #4A4A4A 8.9:1, placeholder #6B6B6B 5.3:1, input border #757575 4.6:1, error
   #B3001B 7.2:1 on white and 6.3:1 on its #FDECEA tint, white on the red
   button gradient (#E10600 to #B00500) 5.0:1 to 7.3:1, focus ring #E10600 on
   white 5.0:1, light text on the near-black page #E4E4E0 14.5:1.
   ========================================================================== */

/* Author display rules below would otherwise beat the UA [hidden] rule. */
.af-hero [hidden], .af-header [hidden], .af-faq [hidden] { display: none !important; }

.af-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.af-skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  padding: 10px 16px; border-radius: 10px; background: #fff; color: #141414;
  font-weight: 700; text-decoration: none;
}
.af-skip:focus { top: 12px; outline: 3px solid #E10600; outline-offset: 2px; }

/* ---------------------------------------------------------------- header */
.af-header { background: #141414; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.af-header-in {
  max-width: 1120px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.af-logo-link { display: block; flex: 0 0 auto; }
.af-logo { display: block; height: 38px; width: auto; }
@media (min-width: 480px) { .af-logo { height: 48px; } }
@media (min-width: 640px) { .af-logo { height: 58px; } }
.af-tel-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45);
  color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; text-decoration: none;
}
@media (min-width: 480px) { .af-tel-link { gap: 8px; padding: 0 16px; font-size: 15px; } }
.af-tel-link:hover { background: rgba(255, 255, 255, .1); }
.af-tel-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 999px; }

/* ------------------------------------------------------------------ hero */
.af-hero {
  position: relative; padding: 36px 16px 48px;
  background:
    radial-gradient(70% 55% at 15% 0%, rgba(255, 50, 42, .22), transparent 60%),
    radial-gradient(60% 55% at 100% 0%, rgba(225, 6, 0, .20), transparent 55%),
    linear-gradient(160deg, #141414 0%, #0d0d0d 100%);
}
.af-wrap { max-width: 760px; margin: 0 auto; }
.af-h1 {
  font-family: 'Manrope', system-ui, sans-serif; font-weight: 800;
  font-size: clamp(30px, 6.4vw, 46px); line-height: 1.1; letter-spacing: -.01em;
  text-align: center; color: #fff; margin: 0;
}
.af-lead {
  max-width: 560px; margin: 14px auto 26px; text-align: center;
  color: #E4E4E0; font-size: 18px; line-height: 1.55;
}

/* ------------------------------------------------------------------ card */
.af-card {
  background: #fff; color: #141414; border-radius: 20px; padding: 22px 18px 26px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08);
  font-size: 16px; line-height: 1.5;
}
@media (min-width: 640px) { .af-card { padding: 32px 36px 36px; } }
.af-card a { color: #B00500; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.af-card a:hover { color: #8F0907; }
/* The site's global rule paints link and button focus rings white on .bg-navy,
   which is invisible on this white card. */
.af-card :where(a, button):focus-visible { outline: 3px solid #141414; outline-offset: 3px; }
.af-card :where(a):focus-visible { border-radius: 4px; }

.af-noscript { margin: 0; padding: 14px 16px; border-radius: 12px; background: #FDECEA; border: 2px solid #B3001B; color: #141414; }

.af-progress { margin: 0 0 22px; }
.af-progress-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-bottom: 8px; font-size: 15px; font-weight: 700; color: #141414;
}
.af-pct { font-variant-numeric: tabular-nums; color: #4A4A4A; font-weight: 600; }
.af-rail {
  height: 10px; border-radius: 999px; background: #E8E2E2; overflow: hidden;
  box-shadow: inset 0 0 0 1px #767676;
}
.af-rail-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #E10600, #B00500);
  transition: width .35s cubic-bezier(.2, .7, .2, 1);
}

.af-note { margin: 0 0 18px; font-size: 14.5px; color: #4A4A4A; }

.af-step { animation: af-in .22s ease both; }
@keyframes af-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.af-h2 {
  font-family: 'Manrope', system-ui, sans-serif; font-weight: 800;
  font-size: clamp(22px, 4.6vw, 28px); line-height: 1.2; color: #141414; margin: 0 0 8px;
}
.af-h2:focus { outline: none; }
.af-h2:focus-visible { outline: 3px solid #141414; outline-offset: 4px; border-radius: 4px; }
.af-sub { margin: 0 0 20px; color: #4A4A4A; font-size: 16px; line-height: 1.5; }
.af-step .af-h2 + .af-field { margin-top: 18px; }

/* ---------------------------------------------------------------- fields */
.af-field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.af-label {
  display: block; width: 100%; padding: 0; margin: 0 0 7px;
  font-weight: 600; font-size: 16px; line-height: 1.35; color: #141414;
}
.af-opt { font-weight: 400; color: #4A4A4A; }
.af-help { margin: 7px 0 0; font-size: 14.5px; line-height: 1.45; color: #4A4A4A; }
fieldset.af-field > .af-help { margin: 0 0 10px; }

.af-input {
  display: block; width: 100%; height: 48px; padding: 0 14px; box-sizing: border-box;
  font-family: inherit; font-size: 16px; line-height: 1.3; color: #141414;
  background: #fff; border: 1.5px solid #757575; border-radius: 10px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.af-input { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.45; resize: vertical; }
.af-input::placeholder, .af-tel-input::placeholder { color: #6B6B6B; opacity: 1; }
.af-input:focus, .af-input:focus-visible {
  outline: 2px solid transparent; outline-offset: 2px; border-radius: 10px;
  border-color: #E10600; box-shadow: 0 0 0 3px rgba(225, 6, 0, .3);
}
.af-input[aria-invalid="true"] { border-color: #B3001B; box-shadow: inset 0 0 0 1px #B3001B; }
.af-input[aria-invalid="true"]:focus { box-shadow: inset 0 0 0 1px #B3001B, 0 0 0 3px rgba(179, 0, 27, .3); }

.af-money { position: relative; }
.af-adorn {
  position: absolute; left: 14px; top: 0; height: 48px; display: flex; align-items: center;
  font-weight: 600; color: #141414; pointer-events: none;
}
.af-money .af-input { padding-left: 30px; }

.af-selectwrap { position: relative; }
.af-selectwrap::after {
  content: ""; position: absolute; right: 17px; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 2px solid #141414; border-bottom: 2px solid #141414; transform: translateY(-70%) rotate(45deg);
}
.af-select { padding-right: 40px; cursor: pointer; }
.af-select option { color: #141414; background: #fff; }

.af-grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 16px; }
@media (min-width: 560px) { .af-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Phone: one bordered field holding the dial-code picker and the number. */
.af-tel {
  display: flex; align-items: stretch; height: 48px; box-sizing: border-box; overflow: hidden;
  background: #fff; border: 1.5px solid #757575; border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.af-tel:focus-within { border-color: #E10600; box-shadow: 0 0 0 3px rgba(225, 6, 0, .3); }
.af-tel:has(input[aria-invalid="true"]) { border-color: #B3001B; box-shadow: inset 0 0 0 1px #B3001B; }
.af-cc { position: relative; flex: 0 0 auto; display: flex; }
.af-cc::after {
  content: ""; position: absolute; right: 11px; top: 50%; width: 7px; height: 7px; pointer-events: none;
  border-right: 2px solid #141414; border-bottom: 2px solid #141414; transform: translateY(-70%) rotate(45deg);
}
.af-cc select {
  -webkit-appearance: none; appearance: none; margin: 0; height: 100%; padding: 0 26px 0 12px;
  font-family: inherit; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: #141414; background: transparent; border: 0; border-radius: 0; cursor: pointer;
}
.af-cc select:focus, .af-cc select:focus-visible { outline: none; }
.af-tel-input {
  flex: 1 1 auto; min-width: 0; height: 100%; margin: 0; padding: 0 12px 0 13px; box-sizing: border-box;
  font-family: inherit; font-size: 16px; color: #141414; border: 0; border-radius: 0; box-shadow: none;
  background: transparent linear-gradient(#C9C9C9, #C9C9C9) left center / 1px 52% no-repeat;
}
.af-tel-input:focus, .af-tel-input:focus-visible { outline: none; }

.af-pw { display: flex; gap: 8px; }
.af-pw .af-input { flex: 1 1 auto; min-width: 0; letter-spacing: .04em; }
.af-mini {
  flex: 0 0 auto; min-width: 72px; min-height: 48px; padding: 0 14px; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 700; color: #141414;
  background: #fff; border: 1.5px solid #757575; border-radius: 10px;
}
.af-mini:hover { border-color: #141414; }

/* Radios and checklists: real inputs inside large bordered choices. */
.af-choices { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .af-choices.af-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.af-choice {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; box-sizing: border-box;
  border: 1.5px solid #757575; border-radius: 12px; background: #fff; color: #141414;
  font-size: 16px; line-height: 1.35; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.af-choice input { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; cursor: pointer; accent-color: #E10600; }
.af-choice:hover { border-color: #141414; }
.af-choice:has(input:checked) { border-color: #E10600; background: #FDECEA; box-shadow: inset 0 0 0 1px #E10600; }
.af-choice:has(input:focus-visible) { outline: 3px solid #141414; outline-offset: 2px; }
@supports selector(:has(*)) { .af-choice input:focus-visible { outline: none; } }
.af-field.is-invalid .af-choice { border-color: #B3001B; }
.af-field.is-invalid .af-choice:has(input:checked) { border-color: #E10600; }

.af-consent {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; cursor: pointer;
  border: 1.5px solid #757575; border-radius: 12px; background: #fff; font-size: 15.5px; line-height: 1.5;
}
.af-consent input { flex: 0 0 auto; width: 22px; height: 22px; margin: 2px 0 0; accent-color: #E10600; cursor: pointer; }
.af-consent:has(input:checked) { border-color: #E10600; background: #FDECEA; box-shadow: inset 0 0 0 1px #E10600; }
.af-consent:has(input:focus-visible) { outline: 3px solid #141414; outline-offset: 2px; }
@supports selector(:has(*)) { .af-consent input:focus-visible { outline: none; } }
.af-field.is-invalid .af-consent { border-color: #B3001B; }

.af-err {
  display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 0;
  font-size: 14.5px; line-height: 1.4; font-weight: 600; color: #B3001B;
}
.af-err::before {
  content: "!"; flex: 0 0 auto; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-top: 1px;
  border-radius: 50%; background: #B3001B; color: #fff; font-size: 12px; font-weight: 800; line-height: 1;
}

/* Honeypot and Turnstile mount: off-screen / zero-size but layout-present, never display:none. */
.af-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.af-ts { position: fixed; width: 0; height: 0; overflow: hidden; }

/* ---------------------------------------------------------------- review */
.af-rv { display: grid; gap: 14px; margin: 0 0 26px; }
.af-rv-group { border: 1.5px solid #D5CFCF; border-radius: 14px; padding: 12px 16px 4px; background: #F4F1F1; }
.af-rv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 4px; }
.af-rv-title { margin: 0; font-size: 16px; font-weight: 800; color: #141414; }
.af-edit {
  flex: 0 0 auto; min-height: 44px; padding: 0 18px; cursor: pointer; border-radius: 999px;
  font-family: inherit; font-size: 15px; font-weight: 700; color: #141414; background: #fff; border: 1.5px solid #757575;
}
.af-edit:hover { border-color: #141414; }
.af-rv-list { margin: 0; padding: 0; }
.af-rv-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 9px 0; border-top: 1px solid #DDD6D6; }
@media (min-width: 560px) { .af-rv-row { grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 16px; } }
.af-rv-list dt { margin: 0; font-size: 14.5px; font-weight: 600; color: #4A4A4A; }
.af-rv-list dd { margin: 0; font-size: 16px; color: #141414; overflow-wrap: anywhere; white-space: pre-wrap; }
.af-rv-list dd.af-muted { color: #4A4A4A; }
.af-rv-list dd.af-missing { color: #B3001B; font-weight: 600; }

/* --------------------------------------------------------------- buttons */
.af-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.af-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none;
  font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.af-btn-primary { color: #fff; background: linear-gradient(90deg, #E10600, #B00500); box-shadow: 0 12px 24px -12px rgba(225, 6, 0, .7); }
.af-btn-primary:hover { transform: translateY(-1px); }
.af-btn-ghost { color: #141414; background: #fff; border-color: #757575; }
.af-btn-ghost:hover { border-color: #141414; }
.af-btn:focus-visible { border-radius: 999px; }
.af-btn[disabled] { cursor: progress; transform: none; }
.af-next { flex: 1 1 auto; }
@media (min-width: 640px) { .af-next { flex: 0 0 auto; margin-left: auto; } }

.af-errpanel { margin: 24px 0 0; padding: 16px 18px; border-radius: 14px; background: #FDECEA; border: 2px solid #B3001B; color: #141414; }
.af-errpanel p { margin: 0; }
.af-errpanel-msg { font-weight: 700; }
.af-errpanel-call { margin-top: 8px !important; font-size: 15px; }
.af-errpanel a { color: #B00500; font-weight: 700; text-decoration: underline; }

/* ------------------------------------------------------------- thank you */
.af-done { text-align: center; padding: 8px 0 4px; }
.af-done-icon {
  display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 14px;
  border-radius: 50%; color: #fff; background: linear-gradient(145deg, #E10600, #B00500);
}
.af-done-ref { margin: 8px 0 14px; font-size: 16px; color: #141414; }
.af-done-ref strong {
  display: inline-block; margin-top: 6px; padding: 10px 16px; border-radius: 10px; background: #F4F1F1;
  font-size: 20px; letter-spacing: .05em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.af-done .af-sub { margin-bottom: 10px; }

/* ------------------------------------------------- below the card and FAQ */
.af-talk { margin: 22px 0 0; text-align: center; color: #E4E4E0; font-size: 16px; }
.af-talk a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.af-talk a:focus-visible, .af-faq a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 4px; }

.af-faq { padding: 56px 16px 64px; background: #141414; }
.af-faq-h {
  margin: 0 0 28px; text-align: center; color: #fff; font-weight: 800;
  font-size: clamp(26px, 5vw, 36px); line-height: 1.15;
}
.af-faq-item { border-top: 1px solid rgba(255, 255, 255, .16); }
.af-faq-item:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.af-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 4px;
  cursor: pointer; list-style: none; color: #fff; font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700; font-size: 17px; line-height: 1.35;
}
.af-faq-item summary::-webkit-details-marker { display: none; }
.af-faq-item summary::after {
  content: "+"; flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  color: #fff; background: #8F0907; font-size: 20px; font-weight: 700; line-height: 1;
}
.af-faq-item[open] summary::after { content: "-"; }
.af-faq-item summary:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: 6px; }
.af-faq-item p { margin: 0 0 18px; padding: 0 44px 0 4px; color: #D8D8D3; font-size: 16px; line-height: 1.6; }

/* ----------------------------------------------------------------- footer */
footer .footer-ico { flex-shrink: 0; color: #FF322A; opacity: .9; }
footer a:focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .af-step { animation: none; }
  .af-rail-fill, .af-input, .af-tel, .af-choice, .af-btn { transition: none; }
  .af-btn-primary:hover { transform: none; }
}

.af-card:focus { outline: none; }
.af-errpanel:focus { outline: 3px solid #141414; outline-offset: 3px; }
.af-fallback { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: #F4F1F1; color: #141414; font-size: 15px; }
