:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #10b981;
    --bg-color: #f3f4f6;
    --text-color: #1f2937;
    --card-bg: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    margin: 0;
    color: var(--secondary-color);
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

h2 {
    margin-top: 0;
    font-size: 1.2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Inputs */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; /* Fixes padding width issues */
}

small {
    font-size: 0.75rem;
    color: #6b7280;
}

button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
}

button:hover {
    background-color: var(--secondary-color);
}

/* Results */
.summary-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.result-item {
    padding: 15px;
    background-color: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.result-item.highlight {
    background-color: #ecfdf5;
    border-color: var(--accent-color);
}

.result-item h3 {
    margin-top: 0;
    font-size: 1rem;
    color: #4b5563;
}

.result-item p {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 5px 0;
}

.savings {
    color: var(--accent-color);
    font-size: 1.2rem !important;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.cash-value-display {
    margin-top: 20px;
    text-align: center;
    padding: 10px;
    background: #eff6ff;
    border-radius: 5px;
}

/* Compliance */
.compliance-footer {
    margin-top: 40px;
    padding: 20px;
    background-color: #374151;
    color: #9ca3af;
    border-radius: 8px;
    font-size: 0.8rem;
    text-align: center;
}

.compliance-footer h3 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Add to bottom of style.css */

.cta-button {
    background-color: var(--accent-color); /* Uses the green defined at top */
    margin-top: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    background-color: #059669; /* Darker green on hover */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 6px 8px rgba(16, 185, 129, 0.4);
}