/* ===== CAIDEE — Making Medicaid Simple ===== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #2ABFBF;
    --primary-dark: #1FA3A3;
    --primary-light: #E0F7F7;
    --success: #2ECC71;
    --success-bg: #EAFAF1;
    --danger: #E74C3C;
    --danger-bg: #FDEDEC;
    --warning: #F39C12;
    --warning-bg: #FEF9E7;
    --text: #2C3E50;
    --text-light: #6B7C8D;
    --bg: #F8FAFA;
    --white: #FFFFFF;
    --border: #E0E6EA;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
    --radius: 10px;
    --radius-sm: 6px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p { margin-bottom: 0.75rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

/* --- Header & Nav --- */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo:hover { text-decoration: none; }

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--primary);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary-light);
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
}

/* --- Cards --- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
}

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
    padding: 4rem 0 3.5rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.brand-text {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 550px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Features --- */
.features {
    padding: 3rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}

/* --- Programs --- */
.programs-section {
    padding: 2rem 0 3rem;
}

.section-subtitle {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.program-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.program-who {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* --- CTA --- */
.cta-section {
    padding: 3rem 0;
    background: var(--primary-light);
    margin-top: 1rem;
}

.cta-section h2 {
    margin-bottom: 0.5rem;
}

.cta-section p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* --- Page Header --- */
.page-header {
    background: var(--primary-light);
    padding: 2.5rem 0 2rem;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* --- Checker Form --- */
.checker-section {
    padding: 2rem 0 3rem;
}

.form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
}

.form-card h2 {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.form-group input[type="number"],
.form-group input[type="text"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font);
    transition: border-color 0.2s;
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.input-prefix {
    display: flex;
    align-items: stretch;
}

.input-prefix .prefix {
    background: var(--bg);
    border: 2px solid var(--border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 0.7rem 0.75rem;
    font-size: 1rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.input-prefix input {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
}

.form-hint {
    display: block;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

.radio-group label:first-child {
    margin-bottom: 0.5rem;
}

.radio-options {
    display: flex;
    gap: 1.5rem;
}

.radio-label {
    display: flex !important;
    align-items: center;
    gap: 0.4rem;
    font-weight: 400 !important;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-actions {
    text-align: center;
    padding: 1rem 0;
}

/* --- Results --- */
.results-section {
    padding: 2rem 0 3rem;
}

.result-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.result-eligible {
    background: var(--success-bg);
    border: 2px solid var(--success);
}

.result-not-eligible {
    background: var(--danger-bg);
    border: 2px solid var(--danger);
}

.result-icon {
    flex-shrink: 0;
}

.icon-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--success);
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
}
.icon-check::after {
    content: "";
    display: block;
    width: 18px;
    height: 30px;
    border: solid var(--white);
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
    margin-top: -4px;
}

.icon-x {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--danger);
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    position: relative;
}
.icon-x::before,
.icon-x::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 4px;
    background: var(--white);
    border-radius: 2px;
}
.icon-x::before { transform: rotate(45deg); }
.icon-x::after  { transform: rotate(-45deg); }

.result-summary h2 {
    margin-bottom: 0.25rem;
}

.result-program {
    font-size: 1.05rem;
    color: var(--text-light);
}

/* Income comparison */
.income-card { }

.income-comparison {
    margin-top: 1rem;
}

.income-item {
    margin-bottom: 1rem;
}

.income-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.3rem;
}

.income-bar {
    background: var(--bg);
    border-radius: 8px;
    height: 28px;
    overflow: hidden;
    margin-bottom: 0.2rem;
}

.bar {
    height: 100%;
    border-radius: 8px;
    transition: width 0.8s ease;
}

.your-income {
    background: var(--primary);
}

.limit-income {
    background: var(--border);
}

.income-amount {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.income-detail {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Explanation */
.explanation {
    font-size: 1rem;
    line-height: 1.7;
}

/* Next steps */
.next-steps-list {
    padding-left: 1.5rem;
}

.next-steps-list li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* Alternatives */
.alternatives-card {
    border-left: 4px solid var(--warning);
}

.alternatives-list {
    list-style: disc;
}

/* Document checklist */
.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    margin-bottom: 0.6rem;
}

.checklist label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    line-height: 1.5;
}

.checklist input[type="checkbox"] {
    margin-top: 0.3rem;
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.print-hint {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

.result-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* --- Guide --- */
.guide-section {
    padding: 2rem 0 3rem;
}

.guide-card {
    margin-bottom: 1.5rem;
}

.guide-steps {
    padding-left: 1.5rem;
}

.guide-steps li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.guide-tip {
    background: var(--primary-light);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.guide-list {
    list-style: disc;
}

.guide-list li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.mistakes-list {
    list-style: none;
    padding: 0;
}

.mistakes-list li {
    padding: 0.6rem 0 0.6rem 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.mistakes-list li::before {
    content: "!";
    position: absolute;
    left: 0;
    color: var(--danger);
    font-weight: 800;
    font-size: 1.1rem;
}

.mistakes-list li:last-child {
    border-bottom: none;
}

.timeline-box {
    background: var(--primary-light);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--primary);
}

.timeline-text {
    font-weight: 600;
    margin: 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.contact-item {
    background: var(--bg);
    padding: 1rem;
    border-radius: var(--radius-sm);
}

.contact-phone {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.contact-note {
    font-size: 0.85rem;
    color: var(--text-light);
}

.guide-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* --- About --- */
.about-section {
    padding: 2rem 0 3rem;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
}

.about-list li:last-child {
    border-bottom: none;
}

/* --- Alerts --- */
.alert {
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
    font-size: 0.95rem;
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger);
}

/* --- Footer --- */
footer {
    background: var(--text);
    color: rgba(255,255,255,0.8);
    padding: 2.5rem 0 1.5rem;
    margin-top: 2rem;
}

footer .logo {
    color: var(--primary);
    font-size: 1.25rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

.footer-links h4 {
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.footer-links a, .footer-links p {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-disclaimer {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1.25rem;
}

.footer-disclaimer p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

/* --- Nav Dropdown --- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font);
    padding: 0;
    transition: color 0.2s;
}

.nav-dropdown-btn:hover {
    color: var(--primary);
}

.dropdown-arrow {
    font-size: 0.7rem;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 0.5rem 0;
    z-index: 200;
    margin-top: 0.5rem;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s;
}

.nav-dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    text-decoration: none;
}

/* --- Tools Section --- */
.tools-section {
    padding: 2rem 0 3rem;
}

.tools-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* --- Progress Bar --- */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.progress-bar-track {
    background: var(--bg);
    border-radius: 12px;
    height: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    transition: width 0.4s ease;
}

.progress-bar-fill.progress-complete {
    background: linear-gradient(90deg, var(--success), #27AE60);
}

/* --- Document Organizer --- */
.doc-section-card {
    margin-bottom: 1.25rem;
}

.doc-section-title {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.doc-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    transition: all 0.2s;
}

.doc-item:hover {
    border-color: var(--primary-light);
}

.doc-item-checked {
    background: var(--success-bg);
    border-color: var(--success);
}

.doc-check-label {
    display: flex;
    gap: 0.75rem;
    cursor: pointer;
    align-items: flex-start;
}

.doc-check-label input[type="checkbox"] {
    margin-top: 0.3rem;
    accent-color: var(--primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.doc-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.doc-info strong {
    font-size: 1rem;
}

.doc-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

.doc-where {
    font-size: 0.85rem;
    color: var(--text);
    margin-top: 0.25rem;
    line-height: 1.5;
}

.where-label {
    font-weight: 600;
    color: var(--primary-dark);
}

.disclaimer-card {
    background: var(--warning-bg);
    border-left: 4px solid var(--warning);
}

/* --- Asset Calculator --- */
.asset-result-card {
    position: sticky;
    top: 60px;
    z-index: 50;
    transition: all 0.3s;
}

.asset-result-card.result-under {
    border: 2px solid var(--success);
    background: var(--success-bg);
}

.asset-result-card.result-over {
    border: 2px solid var(--danger);
    background: var(--danger-bg);
}

.asset-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.asset-summary-item {
    text-align: center;
}

.asset-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.asset-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.asset-value-sm {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.asset-status {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
}

.status-under {
    color: #1B7A3D;
    background: rgba(46, 204, 113, 0.15);
}

.status-over {
    color: #B71C1C;
    background: rgba(231, 76, 60, 0.15);
}

.exempt-summary {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
}

.asset-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: end;
}

.exempt-hint {
    color: var(--success) !important;
    font-weight: 500;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
    padding: 0.25rem 0;
    font-family: var(--font);
}

.btn-remove:hover {
    text-decoration: underline;
}

.spenddown-list {
    list-style: none;
    padding: 0;
}

.spenddown-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
}

.spenddown-list li:last-child {
    border-bottom: none;
}

/* --- Look-Back Checker --- */
.transfer-entry {
    margin-bottom: 1rem;
}

.lookback-good {
    background: var(--success-bg);
    border: 1px solid var(--success);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
}

.lookback-good h3 {
    color: #1B7A3D;
}

.penalty-item {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.penalty-ok {
    background: var(--success-bg);
    border-left: 4px solid var(--success);
}

.penalty-warn {
    background: var(--danger-bg);
    border-left: 4px solid var(--danger);
}

.penalty-total {
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.lookback-warning {
    color: var(--danger);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* --- Office Finder --- */
.search-row {
    display: flex;
    gap: 0.75rem;
}

.search-row input {
    flex: 1;
}

.office-card {
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--primary);
}

.office-header h3 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.office-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.office-detail {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.office-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.maps-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

/* --- Timeline Tracker --- */
.timeline-current-status {
    margin-bottom: 1.5rem;
}

.status-banner {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    line-height: 1.5;
}

.status-info {
    background: var(--primary-light);
    border: 1px solid var(--primary);
    color: var(--text);
}

.status-warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning);
    color: var(--text);
}

.status-danger {
    background: var(--danger-bg);
    border: 1px solid var(--danger);
    color: var(--text);
}

.timeline-container {
    position: relative;
    padding: 0;
}

.timeline-step {
    display: flex;
    gap: 1.25rem;
    position: relative;
    min-height: 80px;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 24px;
}

.timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--border);
    border: 3px solid var(--border);
    flex-shrink: 0;
    z-index: 1;
}

.timeline-line {
    width: 3px;
    flex: 1;
    background: var(--border);
    margin: 4px 0;
}

.timeline-step-complete .timeline-dot {
    background: var(--success);
    border-color: var(--success);
}

.timeline-step-complete .timeline-line {
    background: var(--success);
}

.timeline-step-current .timeline-dot {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.timeline-step-current .timeline-line {
    background: var(--border);
}

.timeline-step-future .timeline-dot {
    background: var(--white);
    border-color: var(--border);
}

.timeline-content {
    padding-bottom: 1.5rem;
    flex: 1;
}

.timeline-day {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.25rem;
}

.timeline-step-current .timeline-content h3 {
    color: var(--primary-dark);
}

.timeline-step-future .timeline-content {
    opacity: 0.6;
}

/* --- Planning Timeline --- */
.planning-timeline {
    position: relative;
    padding: 0;
}

.planning-phase {
    display: flex;
    gap: 1.25rem;
    position: relative;
}

.planning-phase-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 36px;
}

.planning-phase-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--white);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.planning-phase-line {
    width: 3px;
    flex: 1;
    background: var(--border);
    margin: 4px 0;
    min-height: 20px;
}

.planning-phase-content {
    flex: 1;
    padding-bottom: 1.25rem;
    min-width: 0;
}

.planning-phase-toggle {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    font-family: var(--font);
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.planning-phase-toggle:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.planning-phase-toggle h3 {
    margin: 0;
    font-size: 1.1rem;
}

.planning-phase-subtitle {
    font-size: 0.88rem;
    color: var(--text-light);
    display: block;
    margin-top: 0.15rem;
}

.planning-phase-arrow {
    font-size: 1.2rem;
    color: var(--text-light);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.planning-phase-details {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.planning-phase-details ul {
    padding-left: 1.25rem;
}

.planning-phase-details li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.planning-phase-details li:last-child {
    margin-bottom: 0;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        gap: 0.75rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    /* Mobile dropdown */
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg);
        border-radius: var(--radius-sm);
        margin-top: 0.25rem;
        padding: 0.25rem 0;
    }

    .nav-dropdown-menu a {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .features-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .result-card {
        flex-direction: column;
        text-align: center;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions .btn {
        width: 100%;
    }

    /* Asset calculator mobile */
    .asset-summary-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .asset-result-card {
        position: static;
    }

    .asset-row {
        grid-template-columns: 1fr;
    }

    /* Search row mobile */
    .search-row {
        flex-direction: column;
    }

    /* Timeline mobile */
    .timeline-step {
        gap: 0.75rem;
    }

    /* Planning timeline mobile */
    .planning-phase {
        gap: 0.75rem;
    }

    .planning-phase-dot {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .planning-phase-marker {
        width: 28px;
    }

    .planning-phase-toggle h3 {
        font-size: 1rem;
    }

    #asset-protection .card,
    #spousal-planning .card {
        padding: 1.25rem;
    }

    /* Cost estimator grid mobile */
    #cost-results .asset-summary-grid {
        grid-template-columns: 1fr;
    }

    /* Legal doc column on mobile */
    #elder-law-attorney > .container > div[style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
}

/* --- Print --- */
@media print {
    header, footer, .nav-container, .form-actions,
    .result-actions, .hero-actions, .guide-actions,
    .btn, .nav-toggle, .cta-section, .print-hint {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .card, .form-card, .result-card, .feature-card,
    .program-card, .guide-card, .planning-phase-content {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    .planning-phase-details {
        display: block !important;
        box-shadow: none;
    }

    .planning-phase-arrow {
        display: none;
    }

    .planning-phase-toggle {
        box-shadow: none;
        border: none;
        padding: 0.75rem 0;
    }

    #cost-results {
        break-inside: avoid;
    }
}

/* --- Nav CTA Button --- */
.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-sm);
    font-weight: 700 !important;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.nav-cta:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
    text-decoration: none !important;
}

/* --- Status Badges (no emoji) --- */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--white);
    flex-shrink: 0;
    line-height: 1;
}
.status-badge-red {
    background: var(--danger);
}

/* --- Caidee Can Help Section (guide page) --- */
.caidee-help-section {
    background: linear-gradient(135deg, #f0fafa, #e6f7f7);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 2rem;
}
.caidee-help-section h2 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}
.caidee-help-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
}
.caidee-help-link {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    text-decoration: none !important;
    color: var(--text) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.caidee-help-link:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.caidee-help-link h4 {
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}
.caidee-help-link p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}
.caidee-help-link .help-arrow {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .caidee-help-grid {
        grid-template-columns: 1fr;
    }
    .nav-cta {
        width: 100%;
        text-align: center;
        padding: 0.6rem 1rem;
    }
}
