:root {
    --primary-color: #27ae60;
    --primary-dark: #219150;
    --secondary-color: #2c3e50;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --highlight-bg: #e8f5e9;
    --alert-color: #e74c3c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.site-header {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.site-header h1 { margin-bottom: 0.5rem; font-size: 1.8rem; }

/* LAYOUT GRID (Desktop) */
@media (min-width: 768px) {
    .layout-grid {
        display: grid;
        grid-template-columns: 1fr 1.5fr; /* Calculadora na esq, Texto na dir */
        gap: 40px;
        align-items: start;
    }
}

/* CARD & FORM */
.card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.form-group { margin-bottom: 15px; }
.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkbox-group input { width: auto; }

.btn-calculate {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-calculate:hover { background-color: var(--primary-dark); }

/* RESULTADOS */
.hidden { display: none; }

.result-area {
    margin-top: 25px;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.result-table { margin-top: 15px; }

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.result-total {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding: 15px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2rem;
}

.highlight-bg { background-color: var(--highlight-bg); padding: 10px; border-radius: 4px; }

.disclaimer-box {
    margin-top: 15px;
    padding: 10px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #856404;
}

/* MONETIZAÇÃO */
.ad-slot {
    width: 100%;
    min-height: 100px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    border: 1px dashed #ccc;
    color: #999;
}

.affiliate-cta {
    margin-top: 20px;
    text-align: center;
}

.affiliate-cta a {
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: underline;
}

/* CONTEÚDO SEO */
.content-section { font-size: 1rem; color: #444; }
.content-section h2 { margin-top: 2rem; margin-bottom: 1rem; color: var(--secondary-color); }
.content-section h3 { margin-top: 1.5rem; margin-bottom: 0.8rem; color: var(--primary-dark); }
.content-section ul, .content-section ol { margin-left: 20px; margin-bottom: 1rem; }
.content-section li { margin-bottom: 0.5rem; }
.content-section p { margin-bottom: 1rem; }

details {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
}
summary { font-weight: bold; cursor: pointer; }
details p { margin-top: 10px; margin-bottom: 0; }

.site-footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 40px;
    background-color: #eee;
    font-size: 0.9rem;
}