/* Closing Costs Calculator — closing-costs.css */
.cc-wrap*,.cc-wrap *::before,.cc-wrap *::after{box-sizing:border-box;margin:0;padding:0}
.cc-wrap{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;color:#1e293b;max-width:960px;margin:0 auto;background:#fff;border-radius:16px;border:1px solid #e2e8f0;overflow:hidden}
.cc-header{display:flex;align-items:center;gap:14px;padding:20px 24px;background:#1c1917}
.cc-header-icon{width:44px;height:44px;background:rgba(255,255,255,.12);border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fbbf24;flex-shrink:0}
.cc-title{font-size:19px;font-weight:700;color:#fff;margin-bottom:3px}
.cc-subtitle{font-size:12.5px;color:#fbbf24}
.cc-body{display:flex;flex-direction:column}
@media(min-width:720px){.cc-body{flex-direction:row;align-items:flex-start}.cc-form{width:48%;border-right:1px solid #e2e8f0}.cc-results{width:52%;position:sticky;top:0;max-height:100vh;overflow-y:auto}}
.cc-form{padding:20px;display:flex;flex-direction:column;gap:13px}
.cc-field{display:flex;flex-direction:column;gap:5px}
.cc-label{font-size:12px;font-weight:700;color:#334155;text-transform:uppercase;letter-spacing:.04em}
.cc-hint{font-size:11.5px;color:#94a3b8;line-height:1.4}
.cc-row-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media(max-width:400px){.cc-row-2{grid-template-columns:1fr}}
.cc-btn-group{display:flex;gap:6px;flex-wrap:wrap}
.cc-btn-2{display:grid;grid-template-columns:1fr 1fr}
.cc-choice{flex:1;padding:9px 10px;border:1.5px solid #e2e8f0;border-radius:9px;background:#f8fafc;font-size:13px;font-weight:600;color:#475569;cursor:pointer;transition:all .15s;text-align:center}
.cc-choice:hover{border-color:#78350f;color:#78350f}
.cc-choice.active{background:#1c1917;border-color:#1c1917;color:#fff}
.cc-prefix-wrap,.cc-suffix-wrap{display:flex;align-items:center;border:1.5px solid #cbd5e1;border-radius:10px;overflow:hidden;background:#f8fafc;transition:border-color .18s}
.cc-prefix-wrap:focus-within,.cc-suffix-wrap:focus-within{border-color:#78350f;background:#fff}
.cc-prefix,.cc-suffix{padding:0 11px;font-size:13px;font-weight:600;color:#64748b;background:#f1f5f9;height:44px;display:flex;align-items:center;flex-shrink:0}
.cc-prefix{border-right:1px solid #e2e8f0}
.cc-suffix{border-left:1px solid #e2e8f0}
.cc-input{flex:1;border:none;background:transparent;padding:0 12px;height:44px;font-size:14px;color:#1e293b;outline:none;-moz-appearance:textfield;min-width:0}
.cc-input::-webkit-outer-spin-button,.cc-input::-webkit-inner-spin-button{-webkit-appearance:none}
.cc-disclaimer{display:flex;align-items:flex-start;gap:8px;background:#fefce8;border:1px solid #fde047;border-radius:9px;padding:10px 14px;font-size:12px;color:#854d0e;line-height:1.5}
.cc-disclaimer svg{flex-shrink:0;margin-top:1px;color:#ca8a04}
/* Results */
.cc-results{background:#fafaf9;padding:20px}
.cc-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:280px;gap:14px;color:#94a3b8;text-align:center}
.cc-placeholder p{font-size:13.5px;line-height:1.6;max-width:220px}
.cc-hero{background:#1c1917;border-radius:14px;padding:20px;text-align:center;margin-bottom:12px}
.cc-hero-label{font-size:11px;font-weight:700;color:#fbbf24;text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px}
.cc-hero-amount{font-size:46px;font-weight:800;color:#fff;letter-spacing:-.03em;line-height:1}
.cc-hero-sub{font-size:12.5px;color:#a8a29e;margin-top:5px}
.cc-cash-needed{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:14px;margin-bottom:12px}
.cc-cash-row{display:flex;justify-content:space-between;padding:6px 0;font-size:13px;color:#475569;border-bottom:1px solid #f1f5f9}
.cc-cash-row:last-child{border-bottom:none}
.cc-cash-row span:last-child{font-weight:600;color:#1e293b}
.cc-cash-neg span:last-child{color:#dc2626}
.cc-cash-closing span:last-child{color:#92400e}
.cc-cash-divider{height:1px;background:#e2e8f0;margin:4px 0}
.cc-cash-total{font-weight:700;font-size:14px}
.cc-cash-total span:last-child{color:#1c1917;font-size:16px}
/* Breakdown */
.cc-breakdown{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:14px;margin-bottom:12px}
.cc-bk-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#94a3b8;margin-bottom:10px}
.cc-bk-item{display:flex;justify-content:space-between;align-items:flex-start;padding:7px 0;font-size:13px;border-bottom:1px solid #f1f5f9;gap:8px}
.cc-bk-item:last-child{border-bottom:none}
.cc-bk-left{display:flex;flex-direction:column;gap:2px}
.cc-bk-name{color:#334155;font-weight:500}
.cc-bk-tag{font-size:10.5px;padding:1px 6px;border-radius:4px;font-weight:700}
.cc-tag-neg{background:#dcfce7;color:#15803d}
.cc-tag-fixed{background:#fee2e2;color:#dc2626}
.cc-bk-val{font-weight:700;color:#1e293b;white-space:nowrap;flex-shrink:0}
/* Tip */
.cc-tip{background:#fef3c7;border:1px solid #fde047;border-radius:10px;padding:14px}
.cc-tip-title{font-size:12px;font-weight:700;color:#92400e;margin-bottom:7px}
.cc-tip-text{font-size:12.5px;color:#78350f;line-height:1.6}
@media(max-width:480px){.cc-header,.cc-form,.cc-results{padding:14px}.cc-title{font-size:17px}.cc-hero-amount{font-size:36px}}
