/* closing-calc.css — VA Closing Costs Calculator, scoped under .ccc2 */
/* Divi override: explicit font-size and line-height on wrapper and every text child */
.ccc2 {
  --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;
}
.ccc2 *, .ccc2 *::before, .ccc2 *::after { box-sizing: border-box; margin: 0; padding: 0; }
.ccc2 p, .ccc2 ul, .ccc2 li, .ccc2 label, .ccc2 h3, .ccc2 h4, .ccc2 input, .ccc2 select, .ccc2 button {
  font-size: 14px; line-height: 1.45;
}
.ccc2 div { font-size: 14px; line-height: 1.45; }

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

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

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

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

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

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

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

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

/* Flag messages */
.ccc2-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; }
.ccc2-flag-red { color: var(--red); background: rgba(200,16,46,0.08); }

/* Compare table */
.ccc2-compare { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.4; margin-top: 8px; }
.ccc2-compare th, .ccc2-compare td { padding: 6px 8px; text-align: right; border-bottom: 1px solid rgba(255,255,255,0.06); }
.ccc2-compare th:first-child, .ccc2-compare td:first-child { text-align: left; }
.ccc2-compare th { color: rgba(255,255,255,0.5); font-weight: 600; font-size: 11px; line-height: 1.3; }
.ccc2-compare .ccc2-best { color: var(--green); font-weight: 700; }

/* Lead form */
.ccc2-lead { margin-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 14px; }
.ccc2-lead-summary { font-size: 12px; line-height: 1.4; color: rgba(255,255,255,0.5); cursor: pointer; }
.ccc2-lead-form { display: none; margin-top: 10px; }
.ccc2-lead-form.ccc2-open { display: block; }
.ccc2-lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.ccc2-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%;
}
.ccc2-lead-submit:hover { background: var(--gold-soft); }
.ccc2-lead-msg { font-size: 12px; line-height: 1.4; margin-top: 6px; display: none; }

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

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

/* double-id link override */
#ccc2Root #ccc2-results a:not(.ccc2-cta) { color: #4A96FF !important; text-decoration: none !important; }
#ccc2Root #ccc2-results a:not(.ccc2-cta):hover { text-decoration: underline !important; }

/* bullet-section reset */
#ccc2Root div[class*="bullet-section"] { background: transparent !important; padding: 0 !important; margin: 0 !important; border: none !important; border-radius: 0 !important; }
#ccc2Root ul, #ccc2Root li { background-color: transparent !important; }

/* vlnPage theme overrides */
#ccc2Root summary::after { content: none; display: none; }
#ccc2Root summary { display: block; justify-content: normal; }
#ccc2Root details { background: transparent; border: none; overflow: visible; border-radius: 0; }
#ccc2Root details > summary { background: transparent; }
#ccc2Root details > :not(summary) { background: transparent; }
#ccc2Root input:not([type="checkbox"]):not([type="radio"]) { background: rgba(255,255,255,0.06) !important; color: #fff !important; border: 1px solid rgba(255,255,255,0.12) !important; }
#ccc2Root input::placeholder { color: rgba(255,255,255,0.55); opacity: 1; }
