:root {
    --bq-navy: #132f4c;
    --bq-blue: #1f7fbd;
    --bq-blue-dark: #17679c;
    --bq-ink: #1e293b;
    --bq-muted: #64748b;
    --bq-line: #d9e2ea;
    --bq-soft: #f5f9fc;
    --bq-panel: #ffffff;
    --bq-map-land: #3f7cad;
    --bq-map-line: #6c9bc0;
    --bq-pin: #f3be2f;
}

body {
    background: #ffffff;
    color: var(--bq-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: var(--bq-blue-dark);
}

a:hover {
    color: var(--bq-navy);
}

.skip-link {
    background: #fff;
    border: 1px solid var(--bq-line);
    border-radius: 0.5rem;
    color: var(--bq-ink);
    left: 1rem;
    padding: 0.5rem 0.75rem;
    position: absolute;
    top: 1rem;
    z-index: 1100;
}

.site-header,
.navbar {
    background: #fff;
}

.navbar {
    padding: 0.85rem 0;
}

.brand-mark {
    align-items: center;
    background: var(--bq-blue);
    border-radius: 0.65rem;
    color: #fff;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.brand-name {
    color: var(--bq-navy);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
}

.brand-tagline {
    color: var(--bq-muted);
    font-size: 0.78rem;
}

.navbar .nav-link {
    border-radius: 0.5rem;
    color: var(--bq-navy);
    font-weight: 650;
    padding: 0.45rem 0.65rem;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    background: var(--bq-soft);
    color: var(--bq-navy);
}

.navbar-toggler {
    border-color: var(--bq-line);
}

.language-switcher {
    display: inline-flex;
    gap: 0.35rem;
}

.language-button,
.nav-sign-in {
    align-items: center;
    background: #fff;
    border: 1px solid var(--bq-line);
    border-radius: 0.5rem;
    color: var(--bq-navy);
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 750;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.35rem 0.7rem;
    text-decoration: none;
}

.language-button.active {
    background: var(--bq-navy);
    border-color: var(--bq-navy);
    color: #fff;
}

.language-button:hover,
.nav-sign-in:hover {
    background: var(--bq-soft);
    color: var(--bq-navy);
}

.btn {
    border-radius: 0.5rem;
    font-weight: 750;
}

.btn-primary {
    --bs-btn-bg: var(--bq-blue);
    --bs-btn-border-color: var(--bq-blue);
    --bs-btn-hover-bg: var(--bq-blue-dark);
    --bs-btn-hover-border-color: var(--bq-blue-dark);
}

.btn-outline-primary {
    --bs-btn-color: var(--bq-blue-dark);
    --bs-btn-border-color: var(--bq-blue);
    --bs-btn-hover-bg: var(--bq-blue);
    --bs-btn-hover-border-color: var(--bq-blue);
}

.home-hero {
    padding: 3.6rem 0 2.6rem;
    text-align: center;
}

.home-hero h1 {
    color: var(--bq-navy);
    font-size: clamp(2.35rem, 8vw, 4.7rem);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1;
    margin: 0;
}

.home-lead {
    color: var(--bq-muted);
    font-size: clamp(1.08rem, 3vw, 1.45rem);
    line-height: 1.45;
    margin: 1rem auto 0;
    max-width: 34rem;
}

.home-entry-form {
    display: grid;
    gap: 0.85rem;
    margin: 2rem auto 0;
    max-width: 34rem;
}

.home-entry-form input {
    border: 1px solid var(--bq-line);
    border-radius: 0.75rem;
    color: var(--bq-navy);
    font-size: 1.12rem;
    min-height: 3.9rem;
    padding: 0 1rem;
    width: 100%;
}

.home-entry-form input:focus {
    border-color: var(--bq-blue);
    box-shadow: 0 0 0 0.2rem rgba(31, 127, 189, 0.15);
    outline: 0;
}

.home-entry-form button {
    background: var(--bq-blue);
    border: 0;
    border-radius: 0.75rem;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 800;
    min-height: 3.8rem;
}

.home-entry-form button:hover {
    background: var(--bq-blue-dark);
}

.home-trust,
.home-error {
    font-size: 0.95rem;
    margin: 0.9rem auto 0;
    max-width: 34rem;
}

.home-trust {
    color: var(--bq-muted);
}

.home-error {
    color: #b42318;
}

.location-helper {
    color: var(--bq-muted);
    font-size: 0.95rem;
}

.location-helper[data-status="loading"] {
    color: var(--bq-blue-dark);
}

.location-helper[data-status="success"] {
    color: #157347;
}

.location-helper[data-status="error"] {
    color: #b42318;
}

.location-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
}

.location-picker-map {
    background: var(--bq-soft);
    border: 1px solid var(--bq-line);
    border-radius: 0.65rem;
    height: min(58vh, 28rem);
    min-height: 20rem;
    overflow: hidden;
    width: 100%;
}

.location-picker-modal .modal-content {
    border: 0;
    border-radius: 0.85rem;
}

.location-picker-modal .modal-title {
    color: var(--bq-navy);
    font-weight: 800;
}

.home-map-preview {
    background: var(--bq-soft);
    border-bottom: 1px solid var(--bq-line);
    border-top: 1px solid var(--bq-line);
    padding: 1.35rem 0;
}

.world-map-shell {
    margin: 0 auto;
    max-width: 58rem;
}

.world-map {
    min-height: 15rem;
}

.google-map {
    background: var(--bq-soft);
    border-radius: 0.75rem;
    height: 18rem;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.google-map-empty,
.google-map-error {
    align-items: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--bq-line);
    border-radius: 0.65rem;
    color: var(--bq-muted);
    display: flex;
    font-weight: 700;
    inset: 1rem;
    justify-content: center;
    margin: 0;
    padding: 1rem;
    position: absolute;
    text-align: center;
    z-index: 1;
}

.world-map-svg {
    display: block;
    height: auto;
    width: 100%;
}

.world-ocean {
    fill: var(--bq-soft);
}

.world-country {
    fill: var(--bq-map-land);
    stroke: var(--bq-map-line);
    stroke-width: 0.8;
}

.world-marker circle {
    fill: var(--bq-pin);
    stroke: #7c641c;
    stroke-width: 2;
}

.world-marker:focus circle,
.world-marker:hover circle {
    stroke: var(--bq-navy);
    stroke-width: 3;
}

.world-empty {
    fill: var(--bq-muted);
    font-size: 1.25rem;
    font-weight: 750;
}

.world-map-error {
    color: var(--bq-muted);
    margin: 0;
    padding: 4rem 1rem;
    text-align: center;
}

.home-benefits {
    padding: 2rem 0 2.5rem;
}

.benefit-card,
.content-panel,
.result-card {
    background: var(--bq-panel);
    border: 1px solid var(--bq-line);
    border-radius: 0.65rem;
    padding: 1.2rem;
}

.benefit-card h2,
.content-panel h2,
.result-card h2 {
    color: var(--bq-navy);
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.45rem;
}

.benefit-card p,
.content-panel p,
.result-card p {
    color: var(--bq-muted);
    line-height: 1.45;
    margin: 0;
}

.profile-summary {
    display: grid;
    gap: 0.9rem;
}

.profile-summary div {
    border-bottom: 1px solid var(--bq-line);
    padding-bottom: 0.9rem;
}

.profile-summary div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.profile-summary dt {
    color: var(--bq-muted);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.profile-summary dd {
    color: var(--bq-navy);
    font-size: 1.15rem;
    font-weight: 750;
    margin: 0;
}

.access-code {
    background: #fff;
    border: 1px solid var(--bq-line);
    border-radius: 0.55rem;
    color: var(--bq-navy);
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.45rem 0.8rem;
}

.session-options {
    display: grid;
    gap: 0.75rem;
}

.session-option {
    align-items: center;
    background: #fff;
    border: 1px solid var(--bq-line);
    border-radius: 0.65rem;
    color: var(--bq-navy);
    cursor: pointer;
    display: flex;
    font-weight: 750;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
}

.session-option:has(input:checked) {
    border-color: var(--bq-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 135, 205, 0.12);
}

.session-option input {
    flex: 0 0 auto;
}

.home-privacy {
    color: var(--bq-muted);
    line-height: 1.5;
    margin: 1.5rem 0 0;
}

.page-hero {
    background: #fff;
    border-bottom: 1px solid var(--bq-line);
    padding: 3rem 0;
}

.page-hero h1 {
    color: var(--bq-navy);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 750;
    margin-bottom: 1rem;
}

.page-lead {
    color: var(--bq-ink);
    font-size: clamp(1.15rem, 3vw, 1.65rem);
    line-height: 1.42;
    max-width: 58rem;
}

.section-kicker {
    color: var(--bq-blue-dark);
    font-size: 0.85rem;
    font-weight: 850;
    text-transform: uppercase;
}

.profile-progress {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 auto 1.75rem;
    max-width: 30rem;
    position: relative;
}

.profile-progress::before {
    background: var(--bq-line);
    content: "";
    height: 0.32rem;
    left: 25%;
    position: absolute;
    right: 25%;
    top: 1.85rem;
    z-index: 0;
}

.profile-progress-step {
    align-items: center;
    color: var(--bq-muted);
    display: grid;
    gap: 0.65rem;
    justify-items: center;
    position: relative;
    z-index: 1;
}

.profile-progress-step.complete,
.profile-progress-step.active {
    color: var(--bq-blue-dark);
}

.profile-progress-step.complete:first-child::after {
    background: var(--bq-blue-dark);
    content: "";
    height: 0.32rem;
    left: 50%;
    position: absolute;
    right: -50%;
    top: 1.85rem;
    z-index: -1;
}

.profile-progress-marker {
    align-items: center;
    background: #fff;
    border: 0.28rem solid var(--bq-line);
    border-radius: 999px;
    color: #8a8f95;
    display: inline-flex;
    font-size: 1.6rem;
    font-weight: 850;
    height: 4rem;
    justify-content: center;
    line-height: 1;
    width: 4rem;
}

.profile-progress-step.complete .profile-progress-marker {
    border-color: var(--bq-blue-dark);
    color: var(--bq-blue-dark);
}

.profile-progress-step.active .profile-progress-marker {
    background: var(--bq-blue-dark);
    border-color: var(--bq-blue-dark);
    color: #fff;
}

.profile-progress-label {
    color: currentColor;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.content-section {
    padding: 2.5rem 0;
}

.starter-panel {
    margin: 0 auto;
    max-width: 46rem;
}

.starter-panel .form-control {
    font-size: 1.15rem;
    min-height: 3.5rem;
}

.alert {
    border-radius: 0.5rem;
}

.search-results {
    display: grid;
    gap: 1rem;
}

.form-label {
    color: var(--bq-ink);
    font-weight: 700;
}

.form-control,
.form-select {
    border-color: var(--bq-line);
    border-radius: 0.5rem;
    min-height: 2.8rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bq-blue);
    box-shadow: 0 0 0 0.2rem rgba(31, 127, 189, 0.15);
}

.site-footer {
    background: #fff;
}

.footer-brand {
    color: var(--bq-navy);
    font-weight: 800;
}

.footer-links a {
    color: var(--bq-ink);
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--bq-blue-dark);
}

@media (max-width: 767.98px) {
    .navbar-collapse {
        border-top: 1px solid var(--bq-line);
        margin-top: 0.9rem;
        padding-top: 0.9rem;
    }

    .main-nav {
        display: none;
    }

    .home-hero {
        padding: 2.3rem 0 2rem;
    }

    .home-map-preview {
        padding: 1.1rem 0;
    }

    .world-map-shell {
        overflow: hidden;
    }

    .world-map {
        min-height: 12rem;
    }

    .google-map {
        border-radius: 0;
        height: 13rem;
    }

    .home-benefits {
        padding: 1.25rem 0 2rem;
    }

    .page-hero {
        padding: 2rem 0;
    }

    .profile-progress {
        margin-bottom: 1.25rem;
        max-width: 18rem;
    }

    .profile-progress::before,
    .profile-progress-step.complete:first-child::after {
        top: 1.35rem;
    }

    .profile-progress-marker {
        border-width: 0.22rem;
        font-size: 1.15rem;
        height: 3rem;
        width: 3rem;
    }

    .profile-progress-label {
        font-size: 0.9rem;
    }

    .content-section {
        padding: 1.5rem 0;
    }

    .content-panel,
    .result-card,
    .benefit-card {
        padding: 1rem;
    }

    .location-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .location-actions .btn {
        min-height: 2.75rem;
        width: 100%;
    }

    .location-picker-modal .modal-content {
        border-radius: 0;
        min-height: 100vh;
    }

    .location-picker-map {
        height: 62vh;
        min-height: 18rem;
    }
}
