/* CSS Variables for Clean, Neutral Theme */
:root {
    --primary-color: #2563EB;
    /* Trusty Blue */
    --primary-hover: #1D4ED8;
    --bg-color: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.hero .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Calculator Card */
.calculator-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

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

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

h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.row {
    display: flex;
    gap: 20px;
}

.half {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.currency-label {
    color: var(--text-muted);
    font-weight: 400;
}

input[type="number"],
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input[type="number"]:focus,
select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

/* Hidden Rows logic */
.hidden-row {
    display: none;
}

.primary-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 20px;
}

.primary-btn:hover {
    background-color: var(--primary-hover);
}

/* Results Section */
.result-section {
    background-color: #F1F5F9;
    padding: 24px;
    border-radius: var(--radius);
    height: fit-content;
}

.empty-state {
    color: var(--text-muted);
    text-align: center;
    padding: 40px 0;
    font-style: italic;
}

/* Verdict Banner */
.verdict-banner {
    padding: 15px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.verdict-banner .verdict-label {
    font-weight: 600;
    margin-right: 8px;
    color: rgba(0, 0, 0, 0.6);
}

.verdict-banner .verdict-text {
    font-weight: 800;
    font-size: 1.4rem;
}

.verdict-go {
    background-color: #ECFDF5;
    border-color: #A7F3D0;
    color: #065F46;
}

.verdict-tight {
    background-color: #FFFBEB;
    border-color: #FDE68A;
    color: #92400E;
}

.verdict-nogo {
    background-color: #FEF2F2;
    border-color: #FECACA;
    color: #991B1B;
}


.summary-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px -1px rgb(0 0 0 / 0.05);
    border: 1px solid var(--border-color);
}

.summary-card .label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-card .value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.breakdown-table td {
    padding: 10px 0;
    border-bottom: 1px solid #E2E8F0;
    font-size: 0.95rem;
}

.breakdown-table tr:last-child td {
    border-bottom: none;
}

.breakdown-table td:last-child {
    text-align: right;
    font-weight: 500;
}

.highlight-row {
    color: var(--text-main);
    font-weight: 500;
}

.info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #CBD5E1;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 11px;
    cursor: help;
    margin-left: 4px;
}

.secondary-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.metric {
    background: white;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.metric-value {
    font-weight: 600;
    color: var(--text-main);
}

/* Info Section */
.info-section {
    margin-bottom: 40px;
}

.info-card {
    background: white;
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: var(--radius);
}

.info-card h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.info-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.info-card li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
}

.info-card li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.disclaimer {
    background-color: #FFF7ED;
    /* Pale orange/warning */
    border-left: 4px solid #F97316;
    padding: 12px;
    font-size: 0.85rem;
    color: #9A3412;
}

/* Action Section */
.action-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .action-section {
        grid-template-columns: 1fr;
    }
}

.action-card {
    background: white;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.2s;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.action-card h4 {
    margin-bottom: 8px;
    font-weight: 600;
}

.action-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.action-link {
    display: inline-block;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.action-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* SEO Lead Text */
.seo-lead {
    font-size: 1.15rem;
    color: var(--text-main);
    max-width: 800px;
    margin: 10px auto 15px auto;
    font-weight: 500;
}

/* Content Section (SEO) */
.content-section {
    margin-bottom: 40px;
}

.content-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.content-card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.content-card h3 {
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

.content-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 15px;
}

.content-card ul {
    margin-bottom: 15px;
    padding-left: 20px;
    color: var(--text-muted);
}

.content-card li {
    margin-bottom: 8px;
}

/* Updated FAQ Section (H3 variant) */
.faq-section {
    margin-bottom: 40px;
}

.faq-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.faq-card h2 {
    text-align: center;
    border-bottom: none;
    margin-bottom: 30px;
}

/* Updated FAQ Section (Accordion with H3) */
.faq-section {
    margin-bottom: 40px;
}

.faq-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.faq-card h2 {
    text-align: center;
    border-bottom: none;
    margin-bottom: 30px;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    /* Hide default arrow in some browsers */
}

/* H3 inside summary should behave like text */
.faq-item summary h3 {
    display: inline;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

/* Custom arrow */
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    float: right;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}

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

.faq-item p {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px 0 20px 0;
    border-top: 1px solid #E2E8F0;
    margin-top: 60px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.separator {
    margin: 0 10px;
    color: #CBD5E1;
}

.copyright {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #94A3B8;
}