@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --text: #0F172A;
  --muted: #64748B;
  --accent: #064E3B;
  --accent-mid: #059669;
  --accent-light: #D1FAE5;
  --accent-gold: #F59E0B;
  --warn-bg: #FFFBEB;
  --warn-text: #92400E;
  --radius: 12px;
  --rsm: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg); 
    color: var(--text); 
    line-height: 1.6; 
    font-size: 16px; 
}

/* --- PREMIUM HEADER --- */
header {
    background: var(--accent);
    color: #fff;
    padding: 60px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
}

header::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
}

.badge {
    display: inline-block;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 6px 16px;
    margin-bottom: 20px;
    color: rgba(255,255,255,.85);
}

header h1 {
    font-weight: 800;
    font-size: clamp(32px, 6vw, 64px);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 20px;
}

header h1 em {
    font-style: italic;
    color: rgba(255,255,255,.7);
}

.header-desc {
    font-size: 17px;
    color: rgba(255,255,255,.7);
    max-width: 600px;
    margin: 0 auto 24px;
}

/* --- NAVIGATION --- */
.topnav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2000;
}

.topnav-brand {
    font-weight: 700;
    font-size: 18px;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.topnav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.topnav-links a {
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s;
    white-space: nowrap; /* Prevents text wrap within links */
}

.topnav-links a:hover { color: var(--accent); }

/* --- MOBILE MENU (HAMBURGER) --- */
.menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--accent);
    padding: 8px;
}

@media (max-width: 820px) {
    .topnav-brand { font-size: 15px; }
    .topnav-links {
        display: none; /* Hidden by default on mobile */
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    }
    .topnav-links.active { display: flex; }
    .menu-toggle { display: block; }
}

@media (max-width: 380px) {
    .topnav-brand span { display: none; } /* Show only icon on very small screens */
}

/* --- MAIN CONTAINER --- */
main {
    max-width: 940px;
    margin: -40px auto 60px;
    padding: 0 16px;
    position: relative;
    z-index: 10;
}

.breadcrumb {
    font-size: 12px;
    color: rgba(255,255,255,.6);
    margin-bottom: 15px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.breadcrumb a { color: inherit; text-decoration: none; }

/* --- CARD SYSTEM --- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.card-h {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.num {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- FORM ELEMENTS --- */
.field { margin-bottom: 20px; }
label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 8px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

select, input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--rsm);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    background: #fbfbfb;
    outline: none;
    transition: border-color .2s, background .2s;
}

select:focus, input:focus {
    border-color: var(--accent-mid);
    background: #fff;
}

.btn-calc {
    width: 100%;
    padding: 18px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--rsm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s, background .2s;
}

.btn-calc:hover { background: #163d29; transform: translateY(-1px); }

/* --- RESULTS AREA --- */
.results-area { display: none; }
.results-area.show { display: block; animation: fadeUp .4s ease both; }

.result-hero {
    background: var(--accent);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.result-hero .amount {
    font-weight: 800;
    font-size: clamp(48px, 8vw, 72px);
    letter-spacing: -0.03em;
    color: var(--accent-gold);
    margin: 10px 0;
}

.bkgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.bki {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--rsm);
    padding: 16px;
}

.bkl { font-size: 11px; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.bkv { font-size: 18px; font-weight: 600; color: var(--text); }

/* --- FAQ & ACCORDION --- */
details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--rsm);
    margin-bottom: 12px;
    transition: box-shadow .2s;
}

details:hover { box-shadow: var(--shadow); }

summary {
    padding: 18px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    color: var(--accent);
}

summary::-webkit-details-marker { display: none; }

summary::after {
    content: '+';
    font-family: serif;
    font-size: 20px;
    color: var(--accent-gold);
}

details[open] summary::after { content: '−'; }

details div { 
    padding: 0 24px 24px; 
    font-size: 15px; 
    color: var(--muted); 
    line-height: 1.7;
}

/* --- AD HIDING & FIX FOR availableWidth=0 --- */
.ad-slot {
    display: block; /* Must be block for AdSense to calculate width */
    width: 100%;
    height: 1px; /* Tiny height so it's not visible but has dimensions */
    overflow: hidden;
    opacity: 0;
    margin: 0;
    padding: 0;
    transition: opacity 0.4s ease, margin 0.3s ease;
}

.ad-slot.reveal { 
    height: auto;
    opacity: 1;
    margin: 32px 0;
    padding: 20px;
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .card { padding: 20px; }
}

/* --- FOOTER SECTION --- */
footer {
    background: #0F172A;
    color: #F8FAFC;
    padding: 60px 0 0;
    margin-top: 80px;
}

footer h4 {
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 12px;
}

footer a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    background: #020617;
    padding: 30px 20px;
    text-align: center;
    font-size: 12px;
    color: #475569;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
