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

:root {
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --card-border: #e2e8f0;
    
    --text-primary: #0f172a; /* Slate 900 */
    --text-secondary: #475569; /* Slate 600 */
    --text-muted: #64748b; /* Slate 500 */
    
    --accent-primary: #006064; /* Official Deep Teal */
    --accent-secondary: #d81b60; /* Vibrant Innovation Magenta */
    --accent-glow: rgba(0, 96, 100, 0.1);
    
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.material-symbols-outlined {
    vertical-align: middle;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25em;
    position: relative;
    top: -1px; /* Subtle adjustment for better visual centering with text */
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 3rem;
    position: relative;
}

/* ─── Top Navigation ─── */
.top-nav {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--accent-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 1rem;
}

.nav-scroller {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    z-index: 1001; /* Stay above mobile menu */
}

.input-row {
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 600px) {
    .input-row {
        flex-direction: column;
        gap: 0;
    }
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--accent-primary);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateY(0);
        visibility: visible;
    }

    .nav-pill {
        font-size: 1.5rem;
        padding: 1rem 2rem;
    }
}

body.no-scroll {
    overflow: hidden;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-pill:hover {
    color: var(--accent-primary);
    background: rgba(0, 96, 100, 0.05);
}

.nav-pill.active {
    color: #ffffff;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(0, 96, 100, 0.2);
}

main.container {
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    z-index: 1;
}

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

/* Sharp innovation Cards */
.card, header {
    background: var(--surface-color);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: fadeIn 0.6s ease-out both;
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem 1.25rem;
    border-bottom: 3px solid var(--accent-secondary);
}

@media (max-width: 480px) {
    header {
        padding: 2rem 1rem;
    }
}

h1 {
    font-size: clamp(1.75rem, 8vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    color: var(--accent-primary);
    overflow-wrap: break-word;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}

.assurance-badge {
    display: inline-block;
    vertical-align: middle;
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-align: center;
    max-width: 100%;
}

.header-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

@media (max-width: 600px) {
    .header-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .assurance-badge, .icon-btn {
        width: 100%;
        justify-content: center;
    }
}

.primary-btn {
    background: var(--accent-primary) !important;
    color: white !important;
    border: 2px solid transparent !important;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.primary-btn:hover {
    background: #004d40 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 96, 100, 0.2);
}

.secondary-btn {
    background: #ffffff !important;
    color: var(--accent-primary) !important;
    border: 2px solid var(--accent-primary) !important;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.secondary-btn:hover {
    background: #f1f5f9 !important;
    transform: translateY(-2px);
}

.icon-btn {
    background: white;
    border: 2px solid var(--accent-secondary);
    color: var(--accent-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: var(--accent-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(216, 27, 96, 0.3);
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .calculator-grid { 
        grid-template-columns: 1fr; 
        gap: 1.5rem;
    }
}

.card { padding: 3rem; }

.form-group {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Sharp Agency Inputs */
input[type="number"], input[type="text"], input[type="date"], select {
    width: 100%;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.2s ease;
    outline: none;
}

input[type="number"]:focus, input[type="text"]:focus, select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(0, 96, 100, 0.08);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .prefix,
.input-wrapper .suffix {
    position: absolute;
    color: var(--text-muted);
    font-weight: 700;
    pointer-events: none;
    z-index: 10;
}

.input-wrapper .prefix { left: 1.25rem; }
.input-wrapper .suffix { right: 1.25rem; }

.input-wrapper input { 
    width: 100%;
}

.input-wrapper input.has-prefix { padding-left: 2.5rem; }
.input-wrapper input.has-suffix { padding-right: 3rem; }

.select-wrapper { position: relative; }
.select-wrapper::after {
    content: "▼";
    font-size: 0.8rem;
    color: var(--text-muted);
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

select {
    appearance: none;
    padding-right: 3rem;
    cursor: pointer;
}

/* Results Section */
.results-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--accent-primary);
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 1rem;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
}

.result-value {
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.5rem 0;
}

.gross-total .result-label { color: var(--text-primary); font-weight: 700; }
.gross-total .result-value { color: var(--accent-primary); font-weight: 800; font-size: 1.25rem; }

.tax-deduction .result-value { color: #dc2626; }

/* Bold Agency Result Box */
.net-total-box {
    background: var(--accent-primary);
    color: white;
    border-radius: 12px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0, 96, 100, 0.2);
    max-width: 100%;
    overflow: hidden;
}

.net-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    max-width: 100%;
}

.net-value {
    font-size: clamp(1.5rem, 9vw, 3.5rem);
    font-weight: 900;
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    max-width: 100%;
    white-space: nowrap;
    line-height: 1;
}

.secondary-btn {
    width: 100%;
    background: white;
    border: 2px solid var(--accent-secondary);
    color: var(--accent-secondary);
    padding: 1.25rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 2.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.secondary-btn:hover {
    background: var(--accent-secondary);
    color: white;
}

.disclaimers, .page-note {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.page-note {
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-secondary);
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.disclaimers {
    padding-top: 1.5rem;
    border-top: 2px solid #f1f5f9;
}

.disclaimers p strong {
    color: var(--text-primary);
}

.disclaimers a {
    color: var(--accent-primary);
    font-weight: 700;
}

.disclaimer-details summary {
    cursor: pointer;
    color: var(--accent-primary);
    font-weight: 700;
    padding: 0.5rem 0;
}

.disclaimer-expanded {
    margin-top: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid #e2e8f0;
}

/* FAQ Section */
.faq-section {
    margin-top: 2rem;
    padding: 4rem 3rem;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-header h2 {
    font-size: 2rem;
    color: var(--accent-primary);
    font-weight: 800;
}

.faq-item {
    border-bottom: 1px solid #f1f5f9;
}

.faq-item summary {
    padding: 1.5rem 0;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
}

.faq-item summary:hover {
    color: var(--accent-secondary);
}

.faq-content {
    padding: 0 0 1.5rem 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Footer Styling */
footer {
    text-align: center;
    margin-top: 5rem;
    padding: 4rem 1rem;
    background: #1e293b; /* Deep slate footer */
    color: white;
    width: 100%;
}

footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

footer p a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

footer p a:hover {
    color: var(--accent-secondary);
    text-decoration-color: var(--accent-secondary);
}

.footer-links a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    margin: 0 1rem;
}

.footer-links a:hover {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

/* Lead Generation */
.lead-gen-header h2 {
    color: var(--accent-primary);
    font-size: 2.25rem;
    font-weight: 800;
}

.lead-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.lead-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.lead-icon {
    font-size: 2.5rem;
    background: #f1f5f9;
    color: var(--accent-primary);
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.lead-content h3 {
    color: var(--text-primary);
    font-weight: 800;
}

.lead-content h3 span {
    color: var(--accent-secondary);
}

@media (max-width: 480px) {
    h1 { font-size: 2.25rem; }
    .card { padding: 2rem 1.5rem; }
    .net-value { font-size: 2.75rem; }
}

/* Tooltips Adjustment */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    background: #f1f5f9;
    color: var(--text-muted);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.6rem;
    cursor: help;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

.tooltip-icon:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

/* Tooltip Content */
.tooltip-icon::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #1e293b;
    color: #ffffff;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    width: 260px;
    line-height: 1.5;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.tooltip-icon:hover::after {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Tooltip Arrow */
.tooltip-icon::before {
    content: '';
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border: 6px solid transparent;
    border-top-color: #1e293b;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.tooltip-icon:hover::before {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Flatpickr Override for Light Theme */
.flatpickr-calendar {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.flatpickr-day.selected {
    background: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
}

.flatpickr-day:hover {
    background: #f1f5f9 !important;
}

.flatpickr-current-month, .flatpickr-weekday {
    color: var(--accent-primary) !important;
}

/* ─── Holiday Callout (auto-calculated public holidays) ─── */
.holiday-callout {
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: fadeIn 0.3s ease both;
}

.callout-none {
    background: rgba(148, 163, 184, 0.07);
    border: 1px solid rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
}

.callout-found {
    background: rgba(20, 184, 166, 0.07);
    border: 1px solid rgba(20, 184, 166, 0.25);
    color: #ccfbf1;
}

.callout-icon {
    margin-right: 0.3rem;
}

.holiday-chip {
    display: inline-block;
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #5eead4;
    margin: 0.2rem 0.15rem 0 0;
    white-space: nowrap;
}

/* ─── Public holiday detail beneath result row ─── */
.ph-detail-list {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    padding-left: 0.25rem;
    line-height: 1.5;
}

/* ─── Premium Flatpickr Design Polish (Light Mode) ─── */
.flatpickr-calendar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid var(--card-border) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    font-family: 'Sora', sans-serif !important;
    padding: 10px !important;
    width: 310px !important;
    margin-top: 8px !important;
}

.flatpickr-months {
    padding: 0 0 12px 0 !important;
    background: transparent !important;
}

.flatpickr-month {
    height: 48px !important;
    color: var(--text-primary) !important;
    fill: var(--text-primary) !important;
    background: transparent !important;
}

.flatpickr-current-month {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 0 30px !important;
    height: 100% !important;
    width: 100% !important;
    left: 0 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
}

.flatpickr-current-month span.cur-month {
    font-weight: 700 !important;
    margin: 0 !important;
}

.flatpickr-monthDropdown-months {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.flatpickr-monthDropdown-months:hover {
    background: #f1f5f9 !important;
    border-color: var(--accent-primary) !important;
}

.numInputWrapper span {
    display: none !important; /* Hide arrows for year */
}

input.cur-year {
    background: transparent !important;
    border: none !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
}

input.cur-year:hover {
    background: #f1f5f9 !important;
}

/* Weekdays container */
.flatpickr-weekdays {
    background: transparent !important;
    height: 36px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

span.flatpickr-weekday {
    background: transparent !important;
    color: var(--text-muted) !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
}

/* Days */
.flatpickr-days {
    width: 100% !important;
}

.dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    gap: 2px !important;
}

.flatpickr-day {
    color: var(--text-secondary) !important;
    border-radius: 8px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    max-width: none !important;
    height: 40px !important;
    line-height: 40px !important;
    flex-basis: calc(14.28% - 2px) !important;
    border: 1px solid transparent !important;
}

.flatpickr-day:hover {
    background: #f1f5f9 !important;
    color: var(--accent-primary) !important;
}

/* Selected Day */
.flatpickr-day.selected, .flatpickr-day.selected:focus, .flatpickr-day.selected:hover {
    background: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(0, 96, 100, 0.2) !important;
}

/* Today highlight */
.flatpickr-day.today {
    border-color: var(--accent-primary) !important;
    color: var(--accent-primary) !important;
    background: rgba(0, 96, 100, 0.05) !important;
}

/* Navigation arrows */
.flatpickr-prev-month, .flatpickr-next-month {
    padding: 12px !important;
    top: 10px !important;
    transition: all 0.2s ease !important;
}

.flatpickr-prev-month:hover, .flatpickr-next-month:hover {
    background: #f1f5f9 !important;
}

.flatpickr-prev-month:hover svg, .flatpickr-next-month:hover svg {
    fill: var(--accent-primary) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    display: inline-block !important;
    width: auto !important;
}

/* ─── Holiday Callout (auto-calculated public holidays) ─── */
.holiday-callout {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 96, 100, 0.05);
    border: 1px solid rgba(0, 96, 100, 0.1);
    border-radius: 8px;
    animation: fadeIn 0.4s ease-out;
}

.holiday-callout h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.holiday-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Lead Generation / Next Steps Section */
.lead-gen-header {
    text-align: center;
    margin-top: 6rem; /* Increased to prevent overlap */
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.lead-gen-header h2 {
    color: var(--accent-primary);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.lead-gen-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
}
@media (max-width: 1024px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}

.lead-gen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.lead-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.75rem; /* Slightly reduced for better inner space */
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start; /* Alignment for icon and text side-by-side */
    gap: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.lead-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.lead-icon {
    font-size: 2rem;
    background: #f1f5f9;
    color: var(--accent-primary);
    min-width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.lead-content h3 {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lead-content h3 span {
    color: var(--accent-secondary);
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.lead-card:hover .lead-content h3 span {
    transform: translateX(4px);
}

.lead-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* FAQ Section */
.faq-section {
    margin-top: 4rem;
    padding: 4rem 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    margin-bottom: 4rem;
}

.faq-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.faq-header h2 {
    font-size: 2.25rem;
    color: var(--accent-primary);
    font-weight: 800;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border-bottom: 1px solid #f1f5f9;
}

.faq-item summary {
    padding: 1.5rem 0;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.15rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    color: var(--accent-primary);
    font-weight: 400;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-content {
    padding: 0 0 1.5rem 0;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 6rem 1.5rem;
    background: #0f172a; /* Extra dark slate for footer contrast */
    color: white;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

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

/* ─── KiwiSaver Wizard Components ─── */
.stepper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 2.5rem;
    height: 2.5rem;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(0, 96, 100, 0.1);
}

.step-item span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-item.active span {
    color: var(--accent-primary);
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 -1rem;
    margin-top: -1.25rem;
}

.wizard-step {
    display: none;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-step.active {
    display: block;
}

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

.field-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.wizard-nav {
    margin-top: 2.5rem;
}

/* Sliders */
.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    margin: 1.5rem 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-secondary);
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider-val {
    float: right;
    color: var(--accent-secondary);
    font-weight: 800;
}

/* Segmented Control */
.segmented-control {
    display: flex;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 8px;
    gap: 0.25rem;
    flex-wrap: wrap; /* Added for mobile safety */
}

@media (max-width: 400px) {
    .segmented-control {
        flex-direction: column;
    }
    
    .segmented-control label {
        text-align: center;
        padding: 0.75rem 1rem !important;
    }
}

.segmented-control input[type="radio"] {
    display: none;
}

.segmented-control label {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.segmented-control input[type="radio"]:checked + label {
    background: var(--accent-secondary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(216, 27, 96, 0.2);
}

/* Toggle Switch */
.toggle-group {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.toggle-item label {
    margin-bottom: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .toggle-slider {
    background-color: var(--accent-secondary);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

@media (max-width: 600px) {
    .lead-card {
        flex-direction: column;
        padding: 2rem;
    }
    .lead-icon {
        margin-bottom: 1rem;
    }
}

/* Preset Buttons (Quick Select) */
.preset-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: var(--text-secondary);
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

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

/* Status Badges */
.badge-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-min-wage {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.badge-living-wage {
    background: rgba(45, 212, 191, 0.1);
    color: #0d9488;
    border: 1px solid rgba(45, 212, 191, 0.2);
}

.badge-above {
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.2);
}

/* Deduction & Entitlement List Styling */
.result-item.deduction .result-value {
    color: #ef4444;
    font-family: var(--font-mono);
}

.result-item.entitlement .result-value {
    color: #10b981;
    font-family: var(--font-mono);
}

/* Dividers in Results */
.divider {
    height: 1px;
    background: #f1f5f9;
    margin: 1rem 0;
}
