/* ===== Who can apply: centered heading, 3x2 grid, check badge on each icon ===== */
.ofw-elig { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 36px 64px; max-width: 880px; margin: 0 auto; padding: 0; list-style: none; }
/* Top-aligned so every title in a row starts at the same height, even when a detail wraps */
.ofw-elig li { display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 4px; align-items: start; }
.ofw-elig li > strong { padding-top: 0; }
.ofw-elig-icon {
  grid-row: span 2; width: 28px; height: 28px; margin-top: 0; border-radius: 50%;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B6083' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: inset 0 0 0 2px var(--deep-teal);
  transition: transform 250ms ease, background-color 250ms ease;
}
@media (hover: hover) { .ofw-elig li:hover .ofw-elig-icon { transform: scale(1.1); background-color: var(--deep-teal); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); } }
.ofw-elig strong { color: var(--charcoal-navy); font-size: 22px; font-weight: var(--fw-heading); line-height: var(--lh-ui); }
.ofw-elig li > span:last-child { color: var(--muted-blue-gray); font-size: 16px; line-height: var(--lh-body); }

/* ===== Loan calculator card ===== */
.calc-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0 auto; text-align: center;
  padding: clamp(44px, 5vw, 64px) clamp(24px, 4vw, 56px); border-radius: 40px;
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(45,174,224,.55) 0%, rgba(45,174,224,0) 60%),
    linear-gradient(135deg, #1B6083 0%, #175473 100%);
}
.calc-card-icon { display: grid; place-items: center; flex: 0 0 auto; width: 88px; height: 88px; margin-bottom: 6px; border-radius: 50%; background: #FFFFFF; color: var(--deep-teal); box-shadow: 0 0 0 8px rgba(255,255,255,.16); }
.calc-card-icon img { display: block; width: 56px; height: 56px; }
.calc-card-text { min-width: 0; }
.calc-card-text h2 { margin: 0 0 6px; color: #FFFFFF; font-size: clamp(28px, 2.6vw, 36px); font-weight: var(--fw-heading); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); }
.calc-card-text p { margin: 0; color: rgba(255,255,255,.82); font-size: 16px; line-height: var(--lh-body); }
.calc-card-btn { flex: 0 0 auto; margin-top: 14px; background: #FFFFFF; border-color: #FFFFFF; color: var(--deep-teal); }
.calc-card-btn:hover { background: #EAF7FC; border-color: #EAF7FC; color: var(--deep-teal); }
@media (max-width: 760px) {
  .calc-card { gap: 10px; padding: 40px 20px; border-radius: 28px; }
  .calc-card-icon { width: 72px; height: 72px; }
  .calc-card-icon img { width: 46px; height: 46px; }
  .calc-card-btn { width: 100%; }
}

/* ===== What you'll need: centered tabs, applicant and co-maker side by side ===== */
.req-tabs { display: flex; width: fit-content; max-width: 100%; gap: 4px; margin: 0 auto clamp(32px, 4vw, 44px); padding: 6px; border-radius: 999px; background: var(--soft-card); }
.ofw-tab {
  appearance: none; flex: 1 1 0; border: 0; border-radius: 999px; padding: 12px 22px; background: transparent; white-space: nowrap;
  color: var(--muted-blue-gray); font: 700 15px/1.2 'Manrope', sans-serif; cursor: pointer; transition: background-color 220ms ease, color 220ms ease;
}
.ofw-tab:hover { color: var(--deep-teal); }
.ofw-tab[aria-selected="true"] { background: var(--deep-teal); color: #FFFFFF; }
.req-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); max-width: 880px; margin: 0 auto; }
.req-col h3 { margin: 0 0 18px; color: var(--charcoal-navy); font-size: 22px; font-weight: var(--fw-heading); }
.req-panel[hidden] { display: none; }
.req-panel.is-entering { animation: reqFade 360ms ease both; }
@keyframes reqFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.req-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.req-list li { display: flex; align-items: center; gap: 12px; color: var(--charcoal-navy); font-size: 16px; font-weight: 600; line-height: var(--lh-ui); }
.req-list li::before { content: ""; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--deep-teal); }
/* Proof of income: a bulleted lead-in, then its options with hollow (outline) bullets, indented underneath */
.req-list--sub { margin-top: 14px; }
.req-list--outline { margin: 12px 0 0 19px; gap: 12px; }
.req-list--outline li { font-weight: 500; }
.req-list--outline li::before { background: transparent; border: 2px solid var(--deep-teal); box-sizing: border-box; flex-basis: 8px; width: 8px; height: 8px; }
/* Co-maker rule: "Take note" callout, thick orange left border, no background */
.req-note { max-width: 880px; margin: clamp(36px, 4vw, 48px) auto 0; padding: 4px 0 4px 22px; border-left: 5px solid var(--accent-orange); }
.req-note-tag { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; color: #D98A0B; font-size: 13px; font-weight: var(--fw-label); letter-spacing: var(--ls-caps); text-transform: uppercase; }
.req-note-tag svg { width: 16px; height: 16px; }
.req-note h3 { margin: 0 0 12px; color: var(--charcoal-navy); font-size: 22px; font-weight: var(--fw-heading); line-height: var(--lh-ui); }
.req-note > p:last-child { margin: 0; color: var(--muted-blue-gray); font-size: 16px; line-height: var(--lh-body); }

@media (max-width: 960px) {
  .ofw-elig { gap: 32px 40px; }
  .req-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 640px) {
  .ofw-elig { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; gap: 24px; }
  .ofw-elig li { grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; }
  .ofw-elig-icon { width: 24px; height: 24px; margin-top: 0; background-size: 12px; }
  .ofw-elig strong { font-size: 17px; }
  .req-tabs { width: 100%; }
  .ofw-tab { padding: 10px 6px; font-size: 13px; white-space: normal; }
  .req-list li { font-size: 16px; }
  .req-note { padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ofw-elig-icon, .ofw-tab { transition: none; }
  .req-panel.is-entering { animation: none; }
}
