/* condo-router.css — VA Condo Status Router, scoped under .cdr2 */
/* Rescoped from afford.css with tool-specific additions */
.cdr2 {
  --navy: #0A2540;
  --navy-deep: #061829;
  --navy-mid: #143256;
  --navy-light: #1E4470;
  --gold: #FFB800;
  --gold-soft: #FFC733;
  --blue: #2B7FFF;
  --blue-bright: #4A96FF;
  --white: #FFFFFF;
  --gray-400: #94A3B8;
  --green: #10B981;
  --red: #C8102E;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  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 20px 16px;
  font-size: 13px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  max-width: 960px;
  margin: 24px auto;
}
.cdr2 *, .cdr2 *::before, .cdr2 *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Head */
.cdr2-head { margin-bottom: 12px; }
.cdr2-title { font-family: 'Source Serif 4', Georgia, serif; font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.cdr2-subtitle { font-size: 11px; color: rgba(255,255,255,0.5); }

/* Two-column layout */
.cdr2-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 768px) { .cdr2-body { grid-template-columns: 1fr; } }
.cdr2-inputs { min-width: 0; }
.cdr2-results { position: sticky; top: 20px; min-width: 0; }

/* Step headers */
.cdr2-step { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }

/* Labels and inputs */
.cdr2-field { margin-bottom: 8px; }
.cdr2-label { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.cdr2-input { width: 100%; padding: 8px 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; color: var(--white); font-size: 14px; font-family: inherit; outline: none; transition: border-color 0.15s; }
.cdr2-input:focus { border-color: var(--blue); }
.cdr2-hint { font-size: 10px; color: rgba(255,255,255,0.55); margin-top: 2px; }
select.cdr2-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394A3B8'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
select.cdr2-input option { background: var(--navy-deep); color: var(--white); }

/* Row grid */
.cdr2-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
@media (max-width: 480px) { .cdr2-row { grid-template-columns: 1fr; } }

/* Checkbox */
.cdr2-check { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; cursor: pointer; font-size: 13px; }
.cdr2-check input[type="checkbox"] { accent-color: var(--gold); width: 16px; height: 16px; }

/* Search tips */
.cdr2-tips { margin-top: 8px; padding: 8px 10px; background: var(--navy-mid); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; }
.cdr2-tips * { background-color: transparent !important; }
.cdr2-tips .bullet-section-gray { background: transparent !important; padding: 0; margin: 0; border: none; }
.cdr2-tips-title { font-size: 11px; font-weight: 700; color: var(--gold-soft); margin-bottom: 6px; }
.cdr2-tips ul { list-style: none; font-size: 12px; color: rgba(255,255,255,0.75); }
.cdr2-tips li { padding: 2px 0; padding-left: 12px; position: relative; color: rgba(255,255,255,0.75); }
.cdr2-tips li::before { content: '\2022'; position: absolute; left: 0; color: var(--gold); }

/* Copy button */
.cdr2-copy { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: #1A56B8; color: var(--white); border: none; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; transition: background 0.15s; margin-top: 8px; }
.cdr2-copy:hover { background: var(--blue-bright); }

/* Open report link */
.cdr2-open { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--gold); color: var(--navy); border: none; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; transition: background 0.15s; margin-top: 8px; margin-right: 8px; }
.cdr2-open:hover { background: var(--gold-soft); }

/* Results panel */
.cdr2-res { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 14px 14px; }
.cdr2-res-headline { font-family: 'Source Serif 4', Georgia, serif; font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }

/* Collapsed sections */
.cdr2-section { border-top: 1px solid rgba(255,255,255,0.08); }
.cdr2-section summary { padding: 10px 0; font-size: 13px; font-weight: 600; color: var(--blue-bright); cursor: pointer; list-style: none; }
.cdr2-section summary::-webkit-details-marker { display: none; }
.cdr2-section summary::before { content: '+ '; font-weight: 400; }
.cdr2-section[open] summary::before { content: '\2212 '; }
.cdr2-section-body { padding-bottom: 12px; font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.5; }
.cdr2-section-preview { font-size: 11px; color: rgba(255,255,255,0.6); margin-left: 4px; }
.cdr2-actions { list-style: none; counter-reset: action; }
.cdr2-actions li { padding: 3px 0 3px 20px; position: relative; }
.cdr2-actions li::before { counter-increment: action; content: counter(action) '.'; position: absolute; left: 0; color: var(--gold); font-weight: 600; }

/* Readiness checklist */
.cdr2-checklist { margin-top: 16px; }
.cdr2-checklist-title { font-size: 11px; font-weight: 700; color: var(--gold-soft); margin-bottom: 8px; }
.cdr2-checklist-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12px; color: rgba(255,255,255,0.7); }
.cdr2-checklist-item input[type="checkbox"] { accent-color: var(--green); width: 14px; height: 14px; flex-shrink: 0; }
.cdr2-checklist-item.cdr2-if-applicable { color: rgba(255,255,255,0.45); font-style: italic; }
.cdr2-readiness { margin-top: 10px; padding: 10px; background: rgba(255,255,255,0.04); border-radius: 6px; font-size: 12px; }
.cdr2-readiness-count { font-weight: 700; color: var(--gold); }
.cdr2-missing { color: rgba(255,255,255,0.5); font-size: 11px; margin-top: 4px; }

/* CTA */
.cdr2-cta { margin-top: 16px; text-align: center; }
.cdr2-cta a { display: inline-block; padding: 10px 24px; background: var(--gold); color: var(--navy); border-radius: 6px; font-size: 13px; font-weight: 700; text-decoration: none; transition: background 0.15s; }
.cdr2-cta a:hover { background: var(--gold-soft); }

/* Lead form */
.cdr2-lead { margin-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); }
.cdr2-lead summary { padding: 10px 0; font-size: 12px; font-weight: 600; color: var(--blue-bright); cursor: pointer; list-style: none; }
.cdr2-lead summary::-webkit-details-marker { display: none; }
.cdr2-lead summary::before { content: '+ '; }
.cdr2-lead[open] summary::before { content: '\2212 '; }
.cdr2-lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 0; }
@media (max-width: 480px) { .cdr2-lead-form { grid-template-columns: 1fr; } }
.cdr2-lead-submit { grid-column: 1 / -1; padding: 10px 24px; background: #1A56B8; color: var(--white); border: none; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background 0.15s; }
.cdr2-lead-submit:hover { background: var(--blue-bright); }
.cdr2-lead-msg { grid-column: 1 / -1; font-size: 12px; min-height: 20px; }
.cdr2-lead-ok { color: var(--green); }
.cdr2-lead-err { color: var(--red); }

/* Defensive resets — override theme leaks */
.cdr2 details { background: transparent; border: none; }
.cdr2 summary { background: transparent; }
.cdr2 button { background: transparent; border: none; }
.cdr2 a.cdr2-open { background: var(--gold); color: var(--navy); }
.cdr2 button.cdr2-copy { background: #1A56B8; color: var(--white); }
.cdr2 button.cdr2-lead-submit { background: #1A56B8; color: var(--white); }
.cdr2 .cdr2-cta a { background: var(--gold); color: var(--navy); }
#cdr2-tool div[class*="bullet-section"] { background: transparent !important; padding: 0 !important; margin: 0 !important; border: none !important; border-radius: 0 !important; }
#cdr2-tool ul, #cdr2-tool li { background-color: transparent !important; }

/* vlnPage theme overrides — id specificity beats .vlnPage class rules */
#cdr2-tool summary::after { content: none; display: none; }
#cdr2-tool summary { display: block; justify-content: normal; }
#cdr2-tool details { background: transparent; border: none; overflow: visible; border-radius: 0; }
#cdr2-tool details > summary { background: transparent; }
#cdr2-tool details > :not(summary) { background: transparent; }
#cdr2-tool .cdr2-section-body,
#cdr2-tool .cdr2-section-body p,
#cdr2-tool .cdr2-section-body li { color: rgba(255,255,255,0.85); }
#cdr2-tool .cdr2-checklist-item { color: rgba(255,255,255,0.85); }
#cdr2-tool .cdr2-checklist-item.cdr2-if-applicable { color: rgba(255,255,255,0.55); }
#cdr2-tool .cdr2-lead label { color: rgba(255,255,255,0.85); }
#cdr2-tool 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; }
#cdr2-tool input::placeholder { color: rgba(255,255,255,0.55); opacity: 1; }
#cdr2-tool .cdr2-lead-msg { color: #fff; }
#cdr2-tool .cdr2-missing { color: rgba(255,255,255,0.85); }

/* Actions bar */
.cdr2-actions-bar { margin-top: 8px; }

/* Checklist collapsed summary */
.cdr2-checklist-wrap { margin-top: 10px; }
.cdr2-checklist-wrap summary { font-size: 12px; font-weight: 600; color: var(--blue-bright); cursor: pointer; list-style: none; padding: 6px 0; }
.cdr2-checklist-wrap summary::-webkit-details-marker { display: none; }
.cdr2-checklist-wrap summary::before { content: '+ '; font-weight: 400; }
.cdr2-checklist-wrap[open] summary::before { content: '\2212 '; }

/* Disclaimer */
.cdr2-disclaimer { margin-top: 12px; padding: 8px 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; font-size: 10px; color: rgba(255,255,255,0.6); line-height: 1.5; }
