/* Estilos Específicos da Calculadora */
:root {
    --primary-color: #e67e22;
    --secondary-color: #1b4332;
    --bg-light: #f9f7f2;
    --text-dark: #333;
    --white: #ffffff;
}

.calculator-hero {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.calculator-hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.calculator-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.calculator-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.calculator-card {
    background: var(--white);
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #eee;
}

.calculator-card h2 {
    background-color: #f4f4f4;
    padding: 20px 30px;
    font-size: 1.5rem;
    border-bottom: 1px solid #ddd;
    color: var(--secondary-color);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group select,
.form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group select:focus,
.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.checkbox-group {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
    background-color: #fff8f0;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ffead0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.calc-btn-container {
    padding: 0 30px 40px;
    text-align: center;
}

.btn-calculate {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.btn-calculate:hover {
    background-color: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.4);
}

/* Result Section */
.result-section {
    display: none;
    /* Hidden by default */
    background-color: var(--secondary-color);
    color: white;
    padding: 40px 30px;
    text-align: center;
    animation: fadeIn 0.5s ease;
    border-radius: 0 0 15px 15px;
    /* Rounded bottom corners to match card */
}

.cta-final {
    background: linear-gradient(135deg, #fdfbf7 0%, #fff 100%);
    padding: 60px 0;
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, #d35400 100%);
    color: white;
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(230, 126, 34, 0.2);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cta-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta-box p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 35px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.cta-box .btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.cta-box .btn-whatsapp:hover {
    background-color: #1ebc57;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.result-percentage {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.result-text {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Disclaimer */
.disclaimer-box {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-left: 4px solid #999;
    color: #666;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    animation: slideUp 0.3s ease forwards;
    position: relative;
    border-top: 5px solid var(--primary-color);
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.modal-header h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-header p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.modal-content .form-group {
    margin-bottom: 20px;
}

.modal-content input[type="email"] {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    text-align: center;
    transition: 0.3s;
}

.modal-content input[type="email"]:focus {
    border-color: var(--primary-color);
    background-color: #fffaf5;
}

.privacy-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}