:root {
    --brand-primary: #0b3d91;
    --brand-primary-dark: #082a66;
    --brand-accent: #1b7a43;
}

body { background-color: #f7f8fa; }

.navbar-brand { letter-spacing: -0.02em; }
.btn-primary { background-color: var(--brand-primary); border-color: var(--brand-primary); }
.btn-primary:hover { background-color: var(--brand-primary-dark); border-color: var(--brand-primary-dark); }
.text-primary { color: var(--brand-primary) !important; }
.bg-primary { background-color: var(--brand-primary) !important; }

.disclaimer-strip {
    background-color: #1f2937;
    color: #e5e7eb;
}

.hero-section {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #124a9e 60%, #1b6b8f 100%);
    color: #fff;
    padding: 4.5rem 0 3.5rem;
}

.hero-search-box {
    background: #fff;
    border-radius: 1rem;
    padding: .5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
}

.status-badge { font-size: .8rem; padding: .4rem .8rem; border-radius: 999px; font-weight: 600; }
.bg-orange { background-color: #fd7e14 !important; }
.text-orange { color: #fd7e14 !important; }

.stat-card { border: 0; border-radius: .75rem; box-shadow: 0 2px 10px rgba(0,0,0,.05); }

.wizard-steps .step { opacity: .45; }
.wizard-steps .step.active { opacity: 1; font-weight: 700; }
.wizard-steps .step.done { opacity: .8; }

.card-elevated { border: 0; border-radius: .85rem; box-shadow: 0 4px 18px rgba(15, 23, 42, .06); }

footer a.link-secondary { text-decoration: none; }
footer a.link-secondary:hover { text-decoration: underline; }

/* ---- Site footer ---- */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 0 0 1.5rem; display: flow-root; }
.site-footer a { color: #cbd5e1; text-decoration: none; transition: color .15s ease; }
.site-footer a:hover { color: #fff; }
.site-footer .container { padding-top: 0; }
.site-footer a.btn-light, .site-footer a.btn-light:hover { color: #0f172a; }
.site-footer a.btn-light:hover { background: #e2e8f0; }

.sf-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
    margin-top: -2.25rem; padding: 1.75rem 2rem; border-radius: 1rem; color: #fff;
    background: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 100%); box-shadow: 0 12px 30px rgba(15, 23, 42, .25); }
.sf-cta-title { font-size: 1.35rem; font-weight: 700; margin: 0 0 .25rem; }
.sf-cta-text p { opacity: .9; max-width: 38rem; }
.sf-cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.sf-cta .btn-light { color: #1d4ed8; }
.site-footer .sf-cta a.btn-outline-light { color: #fff; }
.site-footer .sf-cta a.btn-outline-light:hover { color: #1d4ed8; }

.sf-main { padding-top: 3rem; padding-bottom: 2rem; }
.sf-brand { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.35rem; font-weight: 800; color: #fff !important; }
.sf-brand i { color: #60a5fa; font-size: 1.6rem; }
.sf-pill { display: inline-block; margin: .6rem 0 0 .6rem; padding: .15rem .65rem; border-radius: 999px; font-size: .72rem;
    font-weight: 600; letter-spacing: .02em; color: #bfdbfe; background: rgba(96, 165, 250, .15); border: 1px solid rgba(96, 165, 250, .35); vertical-align: middle; }
.sf-about { margin: 1rem 0 .9rem; font-size: .92rem; line-height: 1.65; color: #94a3b8; }
.sf-points li { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; margin-bottom: .45rem; color: #cbd5e1; }
.sf-points i { color: #60a5fa; margin-top: .1rem; }

.sf-heading { color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 1rem; }
.sf-links li { margin-bottom: .5rem; font-size: .9rem; }
.sf-links a { display: inline-block; }
.sf-links a:hover { transform: translateX(2px); }
.sf-links-sm li { font-size: .85rem; }

.sf-official { padding: 1rem 1.1rem; border-radius: .85rem; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.sf-official-name { display: flex; gap: .5rem; font-weight: 600; color: #fff; font-size: .92rem; margin-bottom: .5rem; }
.sf-official-line { display: flex; gap: .5rem; font-size: .86rem; margin-bottom: .3rem; color: #cbd5e1; }
.sf-official i { color: #60a5fa; flex-shrink: 0; margin-top: .15rem; }
.sf-official-note { font-size: .72rem; color: #94a3b8; margin: .75rem 0 0; line-height: 1.5; }

.sf-guides { padding: 1.75rem 0 .5rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.sf-guides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .45rem 1.5rem; }
.sf-guides-grid li { font-size: .85rem; }
.sf-guides-grid a { display: flex; gap: .35rem; align-items: baseline; }
.sf-guides-grid i { font-size: .65rem; color: #60a5fa; }

.sf-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem;
    margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; color: #94a3b8; }
.sf-bottom p { max-width: 52rem; line-height: 1.55; }
.sf-bottom-links { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.sf-bottom-links a { color: #cbd5e1; }

@media (max-width: 575px) {
    .sf-cta { padding: 1.4rem 1.25rem; margin-top: -1.5rem; }
    .sf-cta-actions .btn { flex: 1 1 100%; }
    .sf-guides-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .hero-section { padding: 2.5rem 0 2rem; }
}

/* Long-form guides (SEO landing pages): keep body headings clearly below the page <h1> */
.article-body { line-height: 1.75; font-size: 1.02rem; }
.article-body h2 { font-size: 1.3rem; font-weight: 700; margin: 1.6rem 0 .6rem; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.1rem; font-weight: 700; margin: 1.2rem 0 .5rem; }
.article-body ul, .article-body ol { padding-left: 1.3rem; }
.article-body li { margin-bottom: .45rem; }
.article-body code { background: #eef2f7; padding: .1rem .35rem; border-radius: .25rem; font-size: .9em; }

/* ---- Mobile / small screens ---- */
@media (max-width: 767.98px) {
    /* 16px inputs stop iOS Safari zooming the page on focus */
    .form-control, .form-select, .form-control-lg { font-size: 16px; }
    .form-control, .form-select { min-height: 44px; }

    .disclaimer-strip { padding-left: .75rem; padding-right: .75rem; line-height: 1.35; }

    /* Navbar menu: roomy tap targets, full-width buttons */
    .navbar-collapse { padding-bottom: .5rem; }
    #mainNav .nav-link { padding: .7rem .25rem; border-bottom: 1px solid #eef0f3; }
    #mainNav .navbar-nav + .navbar-nav { margin-top: .75rem; }
    #mainNav .nav-item a.small { display: inline-block; padding: .6rem .5rem; font-size: .95rem !important; }
    #mainNav .btn { display: block; width: 100%; margin: .3rem 0 !important; padding: .6rem; font-size: 1rem; }

    .hero-section { padding: 2rem 0 1.75rem; }
    .hero-section h1 { font-size: 2rem; }
    .hero-section .lead { font-size: 1.1rem; }
    .hero-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: .5rem !important; }
    .hero-actions .btn { white-space: normal; padding: .6rem .4rem; font-size: .92rem; }

    .card.p-4, .card-elevated.p-4 { padding: 1rem !important; }
    .card-elevated, .stat-card { border-radius: .75rem; }
    .container { padding-left: 1rem; padding-right: 1rem; }
    h1, .h1 { font-size: 1.6rem; }
    h3, .h3 { font-size: 1.3rem; }
    .btn { min-height: 40px; }
    .page-link { padding: .5rem .8rem; }
    .btn-group-sm > .btn, .btn-sm { min-height: 36px; }

    /* Tables that carry data-label cells become stacked cards */
    .table-stack thead { display: none; }
    .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
    .table-stack tr { margin-bottom: .75rem; padding: .35rem .85rem; background: #fff; border: 1px solid #e5e7eb; border-radius: .65rem; }
    .table-stack td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .4rem 0; border: 0; text-align: right !important; white-space: normal !important; }
    .table-stack td + td { border-top: 1px dashed #eef0f3; }
    .table-stack td::before { content: attr(data-label); flex-shrink: 0; font-weight: 600; font-size: .8rem; color: #6b7280; text-align: left; }
}

/* ---- Advertising slots and consent banner ---- */
.ad-slot { text-align: center; padding: .5rem 0; min-height: 60px; }
.ad-label { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #6c757d; margin-bottom: .25rem; }
.consent-banner { position: fixed; z-index: 1080; left: .75rem; right: .75rem; bottom: .75rem; max-width: 560px; margin-left: auto;
    background: #fff; color: #212529; border: 1px solid #dee2e6; border-radius: .85rem; padding: 1rem 1.1rem; }
@media (max-width: 575px) { .consent-banner { left: .5rem; right: .5rem; bottom: .5rem; max-width: none; } }

/* ---- Evidence upload previews ---- */
.evidence-thumb { width: 96px; font-size: .68rem; text-align: center; color: #495057; }
.evidence-thumb img { width: 96px; height: 72px; object-fit: cover; border-radius: .4rem; border: 1px solid #dee2e6; display: block; }
.evidence-thumb i { display: flex; align-items: center; justify-content: center; width: 96px; height: 72px; font-size: 2rem; border: 1px dashed #adb5bd; border-radius: .4rem; }
.evidence-thumb span { display: block; margin-top: .15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
