:root {
    /* New Brand Palette based on image */
    --primary: #5BEF9F; /* Mint Green */
    --primary-dark: #4ad38b;
    --secondary: #FFD700; /* Yellow */
    
    --bg-body: #f8f9fa; /* Light gray background for the page */
    --bg-card: #ffffff; /* White cards */
    
    --text-dark: #222222;
    --text-medium: #555555;
    --text-light: #888888;
    
    --success: #5BEF9F;
    --danger: #ef4444;
    --border-color: #e5e7eb;
    
    --radius-card: 16px;
    --radius-btn: 50px;
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif; /* Switched font */
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Layout Containers */
.outer-container {
    padding: 2rem 0;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER RESKIN */
header {
    background: var(--bg-card);
    color: var(--text-dark);
    padding: 2.5rem 0;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

h1 { 
    font-size: 2.5rem; 
    font-weight: 700; 
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

/* The Green Underline Effect */
.highlight-green {
    position: relative;
    z-index: 1;
    display: inline-block;
}

.highlight-green::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--primary);
    z-index: -1;
    opacity: 0.7;
    border-radius: 4px;
}

header p { color: var(--text-medium); font-size: 1.1rem; }

h2 { font-size: 1.4rem; font-weight: 600; }
h3 { font-size: 1.1rem; color: var(--text-dark); font-weight: 600; margin-bottom: 1rem; }

/* Grid Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .main-content { grid-template-columns: 1fr; gap: 1.5rem; }
    .outer-container { padding: 1rem 0; }
    .container { padding: 0 15px; }
    h1 { font-size: 1.75rem; }
    header { padding: 1.5rem 0; }
    header p { font-size: 0.95rem; }
    .card { margin-bottom: 1.25rem; }
    .card-header { padding: 1rem 1rem 0.75rem 1rem; }
    .card-body { padding: 1rem; }
    .big-price { font-size: 2.25rem; }
    .summary-card { padding: 1.5rem 1rem; }
    .badge { font-size: 0.85rem; padding: 0.35rem 1rem; }
    footer { padding: 2rem 0; }
}

@media (max-width: 500px) {
    h1 { font-size: 1.5rem; }
    .big-price { font-size: 1.85rem; }
    .sub-text { font-size: 0.9rem; }
    .results-table { font-size: 0.9rem; }
    .results-table td { padding: 0.5rem 0; }
    .total-row td { font-size: 1rem; }
}

/* Card Styling - Cleaner, softer shadows */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.card-body {
    padding: 1.5rem;
}

/* Inputs Styling */
.input-group { margin-bottom: 2rem; }
.input-group:last-child { margin-bottom: 0; }

label { 
    display: block; 
    font-size: 0.9rem; 
    margin-bottom: 0.5rem; 
    font-weight: 500; 
    color: var(--text-medium);
}

/* Input Wrappers for currency symbols */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    color: var(--text-light);
    font-weight: 500;
    z-index: 2;
}
.right-symbol .currency-symbol {
    left: auto;
    right: 12px;
}

input, select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Specific padding adjustments for inputs with currency symbols */
.input-wrapper input {
    padding-left: 2rem;
}
.right-symbol input { 
    padding-right: 2rem; 
    padding-left: 1rem; 
}

/* Select dropdown styling with proper arrow spacing */
select {
    padding-right: 3rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555555' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 239, 159, 0.2);
}

/* Standalone selects need margin */
select {
    margin-bottom: 1.2rem;
}

/* Remove double margin when select is last in group */
.input-group select:last-child {
    margin-bottom: 0;
}

/* Tooltip styles */
.tooltip { cursor: help; margin-left: 5px; opacity: 0.5; font-size: 0.8rem;}

/* --- CUSTOM RADIO BUTTONS --- */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-top: 0.25rem;
}

.radio-contain {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.6rem 1rem;
    background: #f9fafb;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.radio-contain:hover {
    border-color: var(--primary);
    background: #f0fdf4;
}

/* Hide the default radio input */
.radio-contain input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom radio circle */
.radio-contain span {
    position: relative;
    padding-left: 28px;
}

.radio-contain span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s ease;
}

/* Inner dot when checked */
.radio-contain span::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    transition: transform 0.2s ease;
}

/* Checked state */
.radio-contain input[type="radio"]:checked + span::before {
    border-color: var(--primary);
}

.radio-contain input[type="radio"]:checked + span::after {
    transform: translateY(-50%) scale(1);
}

.radio-contain:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background: #f0fdf4;
}

/* Radio buttons mobile */
@media (max-width: 500px) {
    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    .radio-contain {
        width: 100%;
        justify-content: flex-start;
    }
}


/* Employer Group subtle styling */
.employer-group {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px dashed var(--border-color);
}

/* Results Styling */
.summary-card { 
    text-align: center; 
    /* Green border accent like the site */
    border-top: 4px solid var(--primary);
    background: #fff;
    padding: 2rem;
}

.big-price { 
    font-size: 3rem; 
    font-weight: 700; 
    color: var(--text-dark); 
    line-height: 1.1;
    margin: 1rem 0 0.5rem 0;
}

.sub-text { color: var(--text-medium); font-size: 1rem; margin-bottom: 1.5rem;}

.badge {
    display: inline-block;
    background: var(--primary); /* Mint green badge */
    color: var(--text-dark);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-btn);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.results-table { width: 100%; border-collapse: separate; border-spacing: 0 0.5rem;}
.results-table td { padding: 0.75rem 0; vertical-align: middle; }
.results-table tr { border-bottom: 1px solid var(--border-color); }

.neutral { text-align: right; font-weight: 600; color: var(--text-dark); }
.positive { color: var(--success); text-align: right; font-weight: 600; }
.negative { color: var(--danger); text-align: right; font-weight: 600; }

.total-row td { 
    border-top: 2px solid var(--border-color); 
    font-size: 1.2rem; 
    padding-top: 1.2rem; 
    color: var(--text-dark);
}

.separator td { 
    border-bottom: none; 
    padding-top: 1.5rem; 
    border-top: 1px solid #f0f0f0;
    color: var(--text-medium);
}

/* Charts */
.chart-container { position: relative; height: 250px; width: 100%; }
.pt-0 { padding-top: 0 !important; }

/* Buttons - Reskinned to match "Get Instant Quote" */
.btn-primary {
    width: 100%;
    background: var(--primary);
    color: var(--text-dark); /* Dark text on light green */
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-btn); /* Pill shape */
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase; /* Match site style */
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(91, 239, 159, 0.4);
}
.btn-primary:hover { 
    background: var(--primary-dark); 
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(91, 239, 159, 0.5);
}
.btn-secondary {
     background: var(--secondary);
     /* Add secondary button style if needed later */
}


.warning-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
}
.hidden { display: none; }

footer { 
    text-align: center; 
    color: var(--text-light); 
    padding: 3rem 0; 
    font-size: 0.85rem; 
    background: #fff;
    border-top: 1px solid var(--border-color);
}
