/* refi.css — VA Refinance Planner, scoped under .rfp2 */
/* Pattern: closing-calc (ccc2) token system, renamed to rfp2 */
.rfp2 {
  --navy: #0A2540;
  --navy-deep: #061829;
  --navy-mid: #143256;
  --navy-light: #1E4470;
  --gold: #FFB800;
  --gold-soft: #FFC733;
  --blue: #2B7FFF;
  --white: #FFFFFF;
  --gray-400: #94A3B8;
  --green: #10B981;
  --red: #C8102E;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--white);
  background: radial-gradient(circle at 15% 0%, rgba(43,127,255,0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 100%, rgba(255,184,0,0.08) 0%, transparent 45%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 12px;
  padding: 20px 24px 18px;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.rfp2 *, .rfp2 *::before, .rfp2 *::after { box-sizing: border-box; margin: 0; padding: 0; }
.rfp2 p, .rfp2 ul, .rfp2 li, .rfp2 label, .rfp2 h3, .rfp2 h4, .rfp2 input, .rfp2 select, .rfp2 button {
  font-size: 14px; line-height: 1.45;
}
.rfp2 div { font-size: 14px; line-height: 1.45; }

/* Head */
.rfp2-head { margin-bottom: 14px; }
.rfp2-title { font-family: 'Source Serif 4', Georgia, serif; font-size: 22px; line-height: 1.25; font-weight: 700; margin-bottom: 4px; }
.rfp2-subtitle { font-size: 12px; line-height: 1.4; color: rgba(255,255,255,0.5); }

/* Segmented mode selector */
.rfp2-seg { display: flex; gap: 0; margin-bottom: 14px; border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; overflow: hidden; }
.rfp2-seg input { display: none; }
.rfp2-seg label {
  flex: 1; text-align: center; padding: 7px 12px; cursor: pointer;
  font-size: 13px; line-height: 1.4; font-weight: 600; color: rgba(255,255,255,0.6);
  background: transparent; border-right: 1px solid rgba(255,255,255,0.15);
  transition: all 0.15s;
}
.rfp2-seg label:last-of-type { border-right: none; }
.rfp2-seg input:checked + label { background: var(--gold); color: var(--navy); }

/* Layout: two columns */
.rfp2-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 768px) { .rfp2-body { grid-template-columns: 1fr; } .rfp2-results { position: static !important; } }

.rfp2-inputs { min-width: 0; }
.rfp2-results { position: sticky; top: 20px; min-width: 0; }

/* Input group titles */
.rfp2-group-title { font-size: 12px; line-height: 1.3; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; margin-top: 12px; }
.rfp2-group-title:first-child { margin-top: 0; }

/* Input rows */
.rfp2-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.rfp2-field { display: flex; flex-direction: column; gap: 3px; }
.rfp2-label { font-size: 12px; line-height: 1.3; font-weight: 600; color: rgba(255,255,255,0.7); }
.rfp2-input, .rfp2-select {
  font-size: 14px; line-height: 1.45;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px; padding: 8px 10px; color: var(--white);
  font-family: inherit; width: 100%;
}
.rfp2-input:focus, .rfp2-select:focus { outline: none; border-color: var(--gold); }
.rfp2-hint { font-size: 11px; line-height: 1.3; color: rgba(255,255,255,0.4); }
.rfp2-check { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.3; color: rgba(255,255,255,0.7); cursor: pointer; margin-bottom: 8px; }
.rfp2-check input { accent-color: var(--gold); }

/* More options expander */
.rfp2-expander { margin: 12px 0; }
.rfp2-expander-btn {
  background: none; border: 1px solid rgba(255,255,255,0.15); border-radius: 6px;
  color: var(--gold); font-size: 12px; line-height: 1.4; font-weight: 600; padding: 6px 14px; cursor: pointer;
}
.rfp2-expander-btn:hover { border-color: var(--gold); }
.rfp2-expander-content { display: none; margin-top: 12px; }
.rfp2-expander-content.rfp2-open { display: block; }

/* Results headline card */
.rfp2-headline {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
  padding: 20px; margin-bottom: 16px; text-align: center;
}
.rfp2-headline-label { font-size: 12px; line-height: 1.3; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.rfp2-headline-value { font-family: 'Source Serif 4', Georgia, serif; font-size: 32px; line-height: 1.2; font-weight: 700; color: var(--gold); }
.rfp2-headline-sub { font-size: 12px; line-height: 1.3; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* Collapsible sections */
.rfp2-section { border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.rfp2-section-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; cursor: pointer; font-size: 13px; line-height: 1.4; font-weight: 600;
  background: rgba(255,255,255,0.03);
}
.rfp2-section-head:hover { background: rgba(255,255,255,0.06); }
.rfp2-section-body { display: none; padding: 10px 14px 14px; }
.rfp2-section.rfp2-open .rfp2-section-body { display: block; }
.rfp2-section-arrow { transition: transform 0.2s; font-size: 12px; line-height: 1; }
.rfp2-section.rfp2-open .rfp2-section-arrow { transform: rotate(90deg); }

/* KV rows */
.rfp2-kv { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; font-size: 13px; line-height: 1.4; }
.rfp2-kv-label { color: rgba(255,255,255,0.7); }
.rfp2-kv-value { font-weight: 600; }

/* Flag messages */
.rfp2-flag { font-size: 12px; line-height: 1.4; color: var(--gold); padding: 8px 12px; background: rgba(255,184,0,0.08); border-radius: 6px; margin-top: 8px; }

/* CTA */
.rfp2-cta {
  display: block; text-align: center; background: var(--gold); color: var(--navy);
  border-radius: 8px; padding: 12px; font-size: 14px; line-height: 1.45; font-weight: 700;
  text-decoration: none; margin-top: 12px;
}
.rfp2-cta:hover { background: var(--gold-soft); }

/* Disclaimer */
.rfp2-disclaimer { font-size: 11px; line-height: 1.4; color: rgba(255,255,255,0.35); margin-top: 16px; }

/* Disclosure toggle (moved from inline) */
.disclosure-toggle {
  background-color: var(--navy);
  color: var(--white);
  font-family: 'Inter', 'Poppins', sans-serif;
  border: none; padding: 10px 20px; border-radius: 999px;
  font-size: 14px; cursor: pointer; display: inline-block; transition: background-color 0.2s ease;
}
.disclosure-toggle:hover { background-color: var(--navy-deep); }
.disclosure-text[hidden] { display: none !important; }
.disclosure-text {
  padding: 3px 3px 7px 3px; background-color: #fafafa;
  border-left: 4px solid var(--blue); margin-top: 2px; border-radius: 4px;
  font-size: 14px; font-family: 'Inter', 'Poppins', sans-serif; line-height: 1.5;
}
.disclosure-text a { font-weight: 600; color: var(--navy); text-decoration: underline; }
@media (max-width: 768px) { .disclosure-text { font-size: 12px; } }
