/* ── MORTGAGE APPROVAL (APPROVEDMORTGAGES4U.COM) — B2C CANADIAN SENIOR EQUITY AUTHORITY DESIGN SYSTEM ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
    /* Brand Color Palette — Approvedmortgages4u.com / Moizz */
    --primary: #0F2744;          /* Deep Royal Trust Navy */
    --primary-light: #1E56A0;    /* Trust Azure Accent */
    --primary-dark: #0A192F;     /* Rich Authority Navy */
    --primary-subtle: #EBF3FA;  /* Soft Azure Tint */
    
    --bg-light: #F8FAFC;         /* Soft Clean Slate Canvas */
    --bg-alt: #F1F5F9;           /* Secondary Section Tint */
    
    --accent-red: #C53030;       /* Canadian Maple Leaf Heritage Accent */
    --accent-gold: #D97706;      /* High-Converting CTA Amber Gold */
    --accent-gold-hover: #B45309;/* CTA Hover Deep Gold */
    --accent-emerald: #10B981;   /* Verified Approval Status Green */
    --accent-emerald-subtle: #ECFDF5;
    
    /* Neutral & Surface Tones */
    --white: #FFFFFF;
    --surface-card: #FFFFFF;
    --surface-glass: rgba(255, 255, 255, 0.95);
    --text-main: #0F172A;        /* 100% High-Contrast Slate for Senior Readability */
    --text-muted: #334155;
    --text-light: #64748B;
    
    --border-subtle: #E2E8F0;
    --border-strong: #CBD5E1;
    --border-focus: #1E56A0;
    
    /* Elevation Shadows */
    --shadow-sm: 0 2px 8px rgba(10, 25, 47, 0.05);
    --shadow-md: 0 8px 24px rgba(10, 25, 47, 0.08);
    --shadow-lg: 0 16px 40px rgba(10, 25, 47, 0.12);
    --shadow-gold: 0 8px 20px rgba(217, 119, 6, 0.35);
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
}

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

html {
    font-size: 17px; /* Enhanced accessibility base scale for seniors */
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.2s ease;
}

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

/* ── LAYOUT UTILITIES ── */
.container {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.container-narrow {
    width: 100%;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ── TOP NOTIFICATION BAR ── */
.top-notice-bar {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.02em;
    border-bottom: 2px solid var(--accent-gold);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.top-notice-bar span.badge-pill {
    background-color: var(--accent-red);
    color: var(--white);
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    text-transform: uppercase;
    margin-right: 0.5rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ── MAIN HEADER / NAVIGATION ── */
.main-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    gap: 1rem;
}

.brand-logo-block {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.brand-icon-shield {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.35rem;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(15, 39, 68, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.brand-logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--primary-dark);
    line-height: 1.15;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.brand-name span.ca-flag {
    font-size: 1.1rem;
}

.brand-sub {
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.header-trust-pills {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trust-badge-mini {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #F8FAFC;
    border: 1px solid var(--border-subtle);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.header-cta-btn {
    background: var(--accent-gold);
    color: var(--white);
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 3px 8px rgba(217, 119, 6, 0.25);
    transition: all 0.2s ease;
}

.header-cta-btn:hover {
    background: var(--accent-gold-hover);
    color: var(--white);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .header-trust-pills .trust-badge-mini {
        display: none;
    }
}

/* ── BUTTONS & CTA STYLES ── */
.btn-gold {
    background: linear-gradient(180deg, #F59E0B 0%, var(--accent-gold) 100%);
    color: var(--white) !important;
    font-family: var(--font-heading);
    font-size: 1.22rem;
    font-weight: 900;
    padding: 1.15rem 2.25rem;
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: none;
    letter-spacing: -0.01em;
    text-align: center;
    line-height: 1.2;
}

.btn-gold:hover {
    background: linear-gradient(180deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.45);
}

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

.btn-gold-lg {
    font-size: 1.35rem;
    padding: 1.3rem 2.8rem;
    width: 100%;
    max-width: 580px;
}

.btn-subtext {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 0.6rem;
}

.btn-azure {
    background: var(--primary-light);
    color: var(--white) !important;
    font-weight: 800;
    padding: 0.9rem 1.75rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-azure:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

/* ── PROGRESS BAR COMPONENT (Step 1-2-3) ── */
.funnel-progress-wrapper {
    background: var(--white);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 0;
}

.funnel-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    max-width: 650px;
    margin: 0 auto;
}

.progress-track {
    position: absolute;
    top: 18px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: var(--border-subtle);
    z-index: 1;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--accent-gold) 100%);
    transition: width 0.4s ease;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--border-strong);
    color: var(--text-light);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    transition: all 0.3s ease;
}

.step-node.active .step-circle {
    border-color: var(--primary-light);
    background: var(--primary-light);
    color: var(--white);
    box-shadow: 0 0 0 5px rgba(30, 86, 160, 0.18);
}

.step-node.completed .step-circle {
    border-color: var(--accent-emerald);
    background: var(--accent-emerald);
    color: var(--white);
}

.step-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}

.step-node.active .step-label {
    color: var(--primary-dark);
    font-weight: 900;
}

/* ── FORM ELEMENTS ── */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    display: block;
    font-weight: 800;
    font-size: 0.98rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.form-label span.req {
    color: var(--accent-red);
}

.form-control {
    width: 100%;
    padding: 0.95rem 1.15rem;
    font-size: 1.05rem;
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(30, 86, 160, 0.15);
    background-color: #FFFFFF;
}

.form-control::placeholder {
    color: #94A3B8;
}

.form-select {
    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='%231E56A0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 18px;
    padding-right: 2.75rem;
    cursor: pointer;
}

/* Radio Selection Option Cards */
.radio-option-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

@media (min-width: 600px) {
    .radio-option-grid.grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.radio-card-label {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 700;
    color: var(--primary-dark);
}

.radio-card-label:hover {
    border-color: var(--primary-light);
    background-color: #F8FAFC;
}

.radio-card-label input[type="radio"] {
    margin-right: 0.85rem;
    width: 20px;
    height: 20px;
    accent-color: var(--primary-light);
}

.radio-card-label.selected {
    border-color: var(--primary-light);
    background-color: #EBF3FA;
    box-shadow: 0 0 0 2px rgba(30, 86, 160, 0.2);
}

/* ── CARDS & SURFACES ── */
.card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.card-highlight {
    border: 2px solid var(--primary-light);
    box-shadow: var(--shadow-lg);
}

/* ── TRUST & BADGES ── */
.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-tag.blue {
    background-color: #EBF3FA;
    color: var(--primary-light);
    border: 1px solid #D0E4F5;
}

.badge-tag.green {
    background-color: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.badge-tag.gold {
    background-color: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.badge-tag.red {
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* ── ACCORDION / FAQ ── */
.faq-accordion-item {
    background: var(--white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 0.85rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-dark);
    user-select: none;
}

.faq-header:hover {
    background-color: #F8FAFC;
}

.faq-icon {
    font-size: 1.3rem;
    color: var(--primary-light);
    transition: transform 0.25s ease;
}

.faq-accordion-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-body {
    display: none;
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    border-top: 1px solid transparent;
}

.faq-accordion-item.active .faq-body {
    display: block;
    border-top-color: var(--border-subtle);
    padding-top: 1rem;
}

/* ── FOOTER ── */
.main-footer {
    background-color: var(--primary-dark);
    color: #94A3B8;
    padding: 3.5rem 0 2rem;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-col p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #CBD5E1;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-compliance-disclaimer {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #94A3B8;
    margin-top: 2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #64748B;
}

/* ── ANIMATIONS ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.35s ease-in-out;
}
