/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

.calculadora-container {
    min-height: 100vh;
    background: #0b1b3b;
    padding: 2rem 1rem;
}

/* Header */
.calculator-header {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.calculator-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.calculator-header p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Grid Layout */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card h2 {
    font-size: 1.5rem;
    color: hsl(195, 78%, 18%);
    margin-bottom: 1.5rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: hsl(195, 78%, 18%);
}

.form-group input:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
}

.help-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #64748b;
}

.info-box {
    background: #f8fafc;
    padding: 0.875rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #64748b;
    margin: 1.5rem 0;
}

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: hsl(195, 78%, 18%);
    color: white;
}

.btn-primary:hover {
    background: hsl(195, 78%, 25%);
}

.btn-secondary {
    background: hsl(195, 65%, 55%);
    color: white;
}

.btn-secondary:hover {
    background: hsl(195, 65%, 65%);
}

.btn-ghost {
    background: transparent;
    color: hsl(195, 78%, 18%);
    width: 100%;
    text-align: left;
}

.btn-ghost:hover {
    background: #f8fafc;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Advanced Fields */
#advanced-fields {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

#toggle-advanced {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Chart */
.chart-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.875rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Results */
.results-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-item {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.result-item.highlight {
    background: #f8fafc;
    border-color: hsl(195, 78%, 18%);
}

.result-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(195, 78%, 18%);
}

.turnover-info {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

/* Economia Card */
.economia-card {
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.economia-subtitle {
    color: #64748b;
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.economia-grid {
    display: grid;
    gap: 1rem;
}

.economia-item {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.economia-item.total {
    background: #f8fafc;
    border-color: hsl(195, 78%, 18%);
    border-width: 2px;
}

.economia-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.economia-range {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(195, 78%, 18%);
}

/* CEO Card */
.ceo-card {
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.resumo-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

/* CTA */
.cta-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.modal-description {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.error-message {
    display: none;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-group.error .error-message {
    display: block;
}

.form-group.error input,
.form-group.error select {
    border-color: #dc2626;
}

.privacy-text {
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
    margin-top: 1rem;
}

/* Blur Effect */
.blur-content {
    filter: blur(5px);
    pointer-events: none;
}

.blur-content.active {
    filter: none;
    pointer-events: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .calculator-header h1 {
        font-size: 1.75rem;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .result-value {
        font-size: 1.25rem;
    }
}
