:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --dark: #0a2540;
    --bg: #f0f4f8;
    --surface: #ffffff;
    --text: #1a2332;
    --muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 2px 16px rgba(0,0,0,.07);
    --shadow-md: 0 4px 32px rgba(0,0,0,.11);
    --radius: 14px;
    --radius-sm: 8px;
}

html { height: 100%; overflow-y: scroll; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* ── HEADER ──────────────────────────────── */
.header {
    background: linear-gradient(135deg, #0a2540 0%, #1565c0 100%);
    box-shadow: 0 2px 24px rgba(0,0,0,.22);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    width: 130px;
    filter: brightness(0) invert(1);
}

.nav-link {
    color: rgba(255,255,255,.82) !important;
    font-weight: 500;
    font-size: 0.88rem;
    border-radius: 6px;
    padding: 0.45rem 0.8rem !important;
    transition: background .15s, color .15s;
    letter-spacing: .01em;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,.13);
}

.nb {
    color: white;
    border-color: rgba(255,255,255,.3);
    border-radius: 6px;
}

.btn-newsletter {
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.35);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: 20px;
    padding: 0.38rem 1rem;
    transition: background .15s, transform .15s, border-color .15s;
    white-space: nowrap;
}

.btn-newsletter:hover {
    background: rgba(255,255,255,.22);
    border-color: rgba(255,255,255,.55);
    transform: translateY(-1px);
}

/* ── CARDS ───────────────────────────────── */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    background: var(--surface);
}

.card-header {
    background: linear-gradient(135deg, #0a2540 0%, #1565c0 100%);
    color: #fff;
    padding: 1.1rem 1.75rem;
    border-bottom: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -.01em;
}

.card-body {
    padding: 2rem;
}

.quiz-card-wrap .card-body {
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

/* ── QUIZ ────────────────────────────────── */
.quiz-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.quiz-card-wrap {
    flex: 1;
    padding: 0 1rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.quiz-card-wrap .col-md-8 {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.quiz-hero {
    padding: 2.5rem 0 2rem;
}

.quiz-hero .eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: block;
}

.quiz-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.03em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.quiz-hero .lead {
    color: var(--muted);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto;
}

#questionContainer {
    flex: 1;
    min-height: 360px;
}

#questionContainer > p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.btn-container {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%;
    margin-top: 0 !important;
}

.btn-container .btn {
    width: 100%;
    text-align: left;
    padding: 0.85rem 1.2rem 0.85rem 2.4rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 0.93rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .14s, color .14s;
    box-shadow: none;
    letter-spacing: 0;
    position: relative;
}

.btn-container .btn::before {
    content: '✓';
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: transparent;
    font-weight: 800;
    font-size: 0.85rem;
    transition: color .14s;
}

.btn-container .btn:hover {
    background: #f0f6ff;
    color: var(--primary);
}

.btn-container .btn:active {
    background: #e8f0fe;
}

.btn-container .btn.active,
.btn-container .btn.btn-choice.active {
    box-shadow: inset 0 0 0 2px var(--primary);
    background: #f0f6ff;
    color: var(--primary);
}

.btn-choice.active::before {
    color: var(--primary);
}

.btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 0.5rem;
}

/* ── BUTTONS (global) ─────────────────────── */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    box-shadow: 0 4px 14px rgba(13,110,253,.25);
    transition: transform .15s, box-shadow .15s, background .15s;
    letter-spacing: .01em;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #084fba 100%);
    border: none;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    border-radius: var(--radius-sm);
    font-weight: 500;
    border: 2px solid var(--border);
    background: transparent;
    color: var(--muted);
}

.btn-secondary:hover {
    background: var(--border);
    border-color: var(--border);
    color: var(--text);
}

/* ── FORM CONTROLS ───────────────────────── */
.form-control {
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    padding: 0.65rem 1rem;
    font-size: 0.93rem;
    transition: border-color .14s, box-shadow .14s;
    background: #fff;
    color: var(--text);
    width: 100%;
    display: block;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13,110,253,.1);
    outline: none;
    background: #fff;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    cursor: pointer;
    height: auto;
}

select.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13,110,253,.1);
    outline: none;
}

select.form-control option {
    color: var(--text);
    background: #fff;
    padding: 0.5rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 0.35rem;
    letter-spacing: .01em;
}

/* ── TRUST LOGOS ──────────────────────────── */
#trustedlogos {
    background: rgba(255,255,255,.06);
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    text-align: center;
}

#trustedlogos img {
    max-width: 80px;
    max-height: 55px;
    margin: 0 10px;
    opacity: 1;
    filter: invert(1) grayscale(1) brightness(1.5);
    mix-blend-mode: screen;
    transition: opacity .2s;
}

#trustedlogos img:hover {
    opacity: 1;
    filter: invert(1) grayscale(1) brightness(2);
}

/* ── MODAL ───────────────────────────────── */
.modal-content {
    border-radius: var(--radius);
    border: none;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #0a2540 0%, #1565c0 100%);
    color: #fff;
    border-bottom: none;
    padding: 1.2rem 1.5rem;
}

.modal-header .btn-close {
    filter: invert(1) opacity(.8);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
    background: #fafbfc;
}

/* ── FOOTER ──────────────────────────────── */
.copyright {
    background: var(--dark);
    color: rgba(255,255,255,.55);
    padding: 2rem 0 1.5rem;
    text-align: center;
    margin-top: auto;
    position: static !important;
    bottom: auto !important;
    width: 100%;
    flex-shrink: 0;
}

.copyright p {
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.copyright .brand {
    color: rgba(255,255,255,.92);
    font-weight: 600;
    font-size: 0.95rem;
}

.copyright .meta {
    color: rgba(255,255,255,.4);
    font-size: 0.78rem;
}

.copyright .footer-links {
    margin-top: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    flex-wrap: wrap;
}

.copyright .footer-links a {
    color: rgba(255,255,255,.5);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    transition: color .14s, background .14s;
}

.copyright .footer-links a:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}

/* ── TRANSITION OVERLAY ───────────────────── */
#transitionOverlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10,37,64,.88);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: none;
}

.transitionMessage {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

.transitionMessage h4 {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.spinner-border {
    width: 2.75rem;
    height: 2.75rem;
    border-color: rgba(255,255,255,.25) !important;
    border-top-color: #fff !important;
}

/* ── CONSENT BLOCKS ──────────────────────── */
.consent-block {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    margin-bottom: 0;
}

.consent-check input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
    cursor: pointer;
}

.consent-check span {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
}

.consent-optional {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0.35rem 0 0 1.5rem;
}

.consent-links {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0.5rem 0 0 1.5rem;
}

.consent-links a {
    color: var(--primary);
    text-decoration: none;
}

.consent-links a:hover {
    text-decoration: underline;
}

/* ── TIP CARDS ───────────────────────────── */
.tip-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    height: 100%;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    overflow: hidden;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.tip-card-inner {
    padding: 1.4rem 1.5rem;
}

.tip-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.55rem;
    line-height: 1.35;
}

.tip-text {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}

/* ── ABOUT CHECKLIST CARD ─────────────────── */
.about-checklist-card {
    background: #fff;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    padding: 2rem;
    height: 100%;
}

.about-checklist-title {
    font-weight: 700;
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.about-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.about-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text);
}

.check-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f0f6ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ── ALERTS ──────────────────────────────── */
.alert {
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
}

.alert-danger {
    background: #fff0f0;
    color: #c0392b;
}

.alert-success {
    background: #f0fff4;
    color: #1a7d3e;
}

/* ── PAGE HERO ────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, #0a2540 0%, #1565c0 100%);
    color: #fff;
    padding: 3.5rem 0 3rem;
    text-align: center;
}

.page-hero h1 {
    font-weight: 800;
    font-size: 2.25rem;
    letter-spacing: -.03em;
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: rgba(255,255,255,.72);
    font-size: 1rem;
    margin-bottom: 0;
}

/* ── SECTION TITLES ───────────────────────── */
.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.02em;
    margin-bottom: 0.4rem;
}

.section-sub {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

/* ── FEATURE / WHY CARDS ──────────────────── */
.feature-card {
    border-radius: var(--radius);
    border: 2px solid var(--border);
    background: #fff;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    height: 100%;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h5 {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.6rem;
    font-size: 1rem;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ── TESTIMONIALS ─────────────────────────── */
.testimonial-card {
    border-radius: var(--radius);
    background: #fff;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    height: 100%;
    border: 2px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}

.testimonial-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-md);
}

.stars {
    color: #f59e0b;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    display: block;
}

.testimonial-card p {
    color: var(--text);
    font-size: 0.93rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
}

/* ── CONTACT PAGE ─────────────────────────── */
.contact-info-card {
    border-radius: var(--radius);
    background: linear-gradient(160deg, #0a2540 0%, #1565c0 100%);
    color: #fff;
    padding: 2rem;
    height: 100%;
}

.contact-info-card h5 {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.25rem;
    color: rgba(255,255,255,.82);
    font-size: 0.9rem;
}

.contact-info-item .ci-icon {
    font-size: 1rem;
    margin-top: 1px;
    opacity: .9;
    flex-shrink: 0;
}

.contact-info-item a {
    color: rgba(255,255,255,.82);
    text-decoration: none;
    transition: color .14s;
}

.contact-info-item a:hover {
    color: #fff;
    text-decoration: underline;
}

.contact-info-card hr {
    border-color: rgba(255,255,255,.18);
    margin: 1.25rem 0;
}

/* ── AUTH PAGES ───────────────────────────── */
.auth-section {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.auth-card {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
}

.auth-card .card-body {
    padding: 2.25rem;
}

.auth-footer-text {
    font-size: 0.88rem;
    color: var(--muted);
    text-align: center;
}

.auth-footer-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--border);
    margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--border);
}

.auth-divider span {
    font-size: 0.8rem;
    color: var(--muted);
    white-space: nowrap;
}

/* ── PROSE (privacy, terms) ───────────────── */
.prose h4 {
    font-weight: 700;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose p {
    color: #374151;
    line-height: 1.75;
    font-size: 0.93rem;
    margin-bottom: 1rem;
}

.prose ol, .prose ul {
    color: #374151;
    font-size: 0.93rem;
    line-height: 1.75;
}

.prose strong {
    color: var(--text);
}

/* ── COMPANY INFO STRIP ──────────────────── */
.company-strip {
    background: linear-gradient(135deg, #0a2540 0%, #1565c0 100%);
    color: rgba(255,255,255,.8);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.82rem;
}

.company-strip a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
}
