/* ============================================
   CALCULADORA FINANCEIRA - ESTILOS
   ============================================ */

/* Tabs da Calculadora */
.tabs-calculadora {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-calc {
    flex: 1;
    padding: 12px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-calc.active {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.tab-calc-content {
    display: none;
}

.tab-calc-content.active {
    display: block;
}

/* Grid da Calculadora */
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Seções */
.section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section.full-width {
    grid-column: 1 / -1;
}

.section h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #25D366;
    font-size: 1.5em;
}

/* Grupos de Input */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #25D366;
}

.input-group small {
    display: block;
    color: #666;
    margin-top: 5px;
    font-size: 0.85em;
}

/* Result Boxes */
.result-box {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #25D366;
}

.result-box h3 {
    color: #333;
    font-size: 1em;
    margin-bottom: 5px;
}

.result-box .value {
    color: #25D366;
    font-size: 1.8em;
    font-weight: bold;
}

.result-box .detail {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Cost Breakdown */
.cost-breakdown {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cost-item:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 1.2em;
    color: #25D366;
}

/* Alertas */
.alert {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.alert-info {
    background: #d1ecf1;
    border-left-color: #17a2b8;
}

/* Contrato */
.contract {
    background: white;
    padding: 40px;
    line-height: 1.8;
}

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

.contract .clause {
    margin-bottom: 20px;
}

.contract .clause strong {
    color: #25D366;
}

.signature-area {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.signature-box {
    text-align: center;
}

.signature-line {
    border-top: 2px solid #333;
    margin-top: 60px;
    padding-top: 10px;
}

/* Botões */
.btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Impressão */
@media print {
    .no-print {
        display: none !important;
    }

    .section {
        page-break-inside: avoid;
    }

    .calc-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }

    .signature-area {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
