/* fee-planner.css — VA Funding Fee Planner, scoped under .ffp2 */
/* Adapted from closing-calc.css (.ccc2) with prefix renamed */
.ffp2 {
  --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: 14px 24px 12px;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.ffp2 *, .ffp2 *::before, .ffp2 *::after { box-sizing: border-box; margin: 0; padding: 0; }
.ffp2 p, .ffp2 ul, .ffp2 li, .ffp2 label, .ffp2 h3, .ffp2 h4, .ffp2 input, .ffp2 select, .ffp2 button {
  font-size: 14px; line-height: 1.45;
}


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

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

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

/* Input rows */
.ffp2-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.ffp2-row-full { margin-bottom: 10px; }
.ffp2-field { display: flex; flex-direction: column; gap: 3px; }
.ffp2-label { font-size: 12px; line-height: 1.3; font-weight: 600; color: rgba(255,255,255,0.7); }
.ffp2-input, .ffp2-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%;
}
.ffp2-input:focus, .ffp2-select:focus { outline: none; border-color: var(--gold); }
.ffp2-hint { font-size: 11px; line-height: 1.3; color: rgba(255,255,255,0.4); }

/* Segmented control */
.ffp2-segments { display: flex; gap: 0; margin-bottom: 12px; border-radius: 6px; overflow: hidden; border: 1px solid rgba(255,255,255,0.15); }
.ffp2-seg {
  flex: 1; padding: 8px 4px; text-align: center; font-size: 11px; line-height: 1.3;
  font-weight: 600; cursor: pointer; background: transparent; color: rgba(255,255,255,0.6);
  border: none; border-right: 1px solid rgba(255,255,255,0.1); transition: all 0.15s;
}
.ffp2-seg:last-child { border-right: none; }
.ffp2-seg:hover { background: rgba(255,255,255,0.04); }
.ffp2-seg.ffp2-active { background: var(--navy-light); color: var(--gold); }

/* Checkbox rows */
.ffp2-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; cursor: pointer; }
.ffp2-check input[type="checkbox"] { accent-color: var(--gold); width: 16px; height: 16px; }
.ffp2-check-label { font-size: 13px; line-height: 1.4; color: rgba(255,255,255,0.8); }

/* Expander */
.ffp2-expander { margin: 12px 0; }
.ffp2-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;
}
.ffp2-expander-btn:hover { border-color: var(--gold); }
.ffp2-expander-content { display: none; margin-top: 12px; }
.ffp2-expander-content.ffp2-open { display: block; }

/* Results card */
.ffp2-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;
}
.ffp2-headline-label { font-size: 12px; line-height: 1.3; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.ffp2-headline-value { font-family: 'Source Serif 4', Georgia, serif; font-size: 32px; line-height: 1.2; font-weight: 700; color: var(--gold); }

/* Collapsible sections */
.ffp2-section { border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.ffp2-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);
}
.ffp2-section-head:hover { background: rgba(255,255,255,0.06); }
.ffp2-section-preview { font-size: 12px; line-height: 1.3; color: var(--gray-400); }
.ffp2-section-body { display: none; padding: 10px 14px 14px; }
.ffp2-section.ffp2-open .ffp2-section-body { display: block; }
.ffp2-section-arrow { transition: transform 0.2s; font-size: 12px; line-height: 1; }
.ffp2-section.ffp2-open .ffp2-section-arrow { transform: rotate(90deg); }

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

/* Flag messages */
.ffp2-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; }
.ffp2-flag-green { color: var(--green); background: rgba(16,185,129,0.08); }

/* Lead form */
.ffp2-lead { margin-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 14px; }
.ffp2-lead-summary { font-size: 12px; line-height: 1.4; color: rgba(255,255,255,0.5); cursor: pointer; }
.ffp2-lead-form { display: none; margin-top: 10px; }
.ffp2-lead-form.ffp2-open { display: block; }
.ffp2-lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.ffp2-lead-submit {
  background: var(--gold); color: var(--navy); border: none; border-radius: 6px;
  padding: 10px 20px; font-size: 14px; line-height: 1.45; font-weight: 700; cursor: pointer; width: 100%;
}
.ffp2-lead-submit:hover { background: var(--gold-soft); }
.ffp2-lead-msg { font-size: 12px; line-height: 1.4; margin-top: 6px; display: none; }

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

/* CTA */
.ffp2-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;
}
.ffp2-cta:hover { background: var(--gold-soft); }
