/* Variáveis CSS */
:root {
    --primary-blue: #0070bb;
    --primary-blue-hover: #0071bc;
    --white: #ffffff;
    --text-color: #000000;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0, 112, 187, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 112, 187, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px; /* Aumentado para melhor visualização em notebooks */
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #fafafa;
    color: #0070bb;
    padding: 2rem 0;
    text-align:center;
    box-shadow: var(--shadow);
}

header .container {
    display: flex;
    align-items: center;
}

.header-text {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.logo {
    width: 100px; /* Ajuste o tamanho conforme necessário */
    height: auto;
    margin-right: 20px;
}

.header-text {
    text-align: left;
}

header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main content */
main {
    flex: 1;
    padding: 3rem 0;
}

/* Seções */
section {
    background: var(--white);
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

section:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

section h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
}

/* Tabela de preços */
.table-container {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.pricing-table th {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: bold;
    font-size: 1.1rem;
}

.pricing-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.pricing-table tbody tr:hover {
    background-color: rgba(0, 112, 187, 0.05);
}

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

.pricing-table td:last-child {
    font-weight: bold;
    color: var(--primary-blue);
}

/* Seção de Política de Descontos */
#discount-policy {
    background: var(--white);
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

#discount-policy ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

#discount-policy h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Formulário */
.description {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #666;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group input {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 112, 187, 0.1);
}

.price-label {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Botões */
.button-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.calculate-btn, .reset-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    min-width: 180px;
}

.calculate-btn {
    background: var(--primary-blue);
    color: var(--white);
}

.calculate-btn:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.reset-btn {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.reset-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* Resultado */
.result-container {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-blue);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-content h3 {
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.total-label {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
}

.total-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.disclaimer {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
}

.breakdown {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.breakdown h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0; /* Aumentado o espaçamento vertical para maior legibilidade */
    border-bottom: 1px solid var(--border-color);
}

.breakdown-item:last-child {
    border-bottom: none;
}


/* Responsividade */
@media (min-width: 1024px) {
    /* Ajustes específicos para notebooks e telas maiores */
    header h1 {
        font-size: 3rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 1.2rem;
        font-size: 1.1rem;
    }
    
    .total-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .header-text {
        text-align: center;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .calculate-btn, .reset-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .total-price {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .total-value {
        font-size: 1.8rem;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .breakdown-item {
        padding: 1rem 0;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 0;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 1rem;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .total-value {
        font-size: 1.5rem;
    }
    
    .breakdown-item {
        padding: 0.75rem 0;
    }
}

/* Animações e micro-interações */
.form-group {
    transition: var(--transition);
}

.form-group:hover {
    transform: translateY(-1px);
}

.pricing-table tbody tr {
    transition: var(--transition);
}

/* Estados de loading */
.calculate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.calculate-btn.loading {
    position: relative;
    color: transparent;
}

.calculate-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}



/* Estilos para o formulário de WhatsApp */
#whatsapp-form {
    margin-top: 3rem; /* Aumenta o espaçamento superior */
    padding: 2rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

#whatsapp-form h4 {
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

#whatsapp-form p {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #555;
}

#whatsapp-form .form-grid {
    grid-template-columns: 1fr; /* Garante que os campos fiquem em coluna em telas menores */
    gap: 1.5rem; /* Espaçamento entre os campos */
}

#whatsapp-form .form-group {
    margin-bottom: 0; /* Remove margem inferior padrão para melhor controle com gap */
}

#whatsapp-form label {
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

#whatsapp-form input[type="email"],
#whatsapp-form input[type="tel"] {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

#whatsapp-form input[type="email"]:focus,
#whatsapp-form input[type="tel"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 112, 187, 0.1);
}

#whatsapp-form .button-container {
    margin-top: 2rem;
}

#success-message {
    font-weight: bold;
    padding: 1rem;
    border-radius: var(--border-radius);
    background-color: #e6ffe6; /* Fundo verde claro */
    border: 1px solid #66cc66; /* Borda verde */
    color: #006600; /* Texto verde escuro */
}

/* Responsividade específica para o formulário de WhatsApp */
@media (min-width: 768px) {
    #whatsapp-form .form-grid {
        grid-template-columns: repeat(2, 1fr); /* Dois campos por linha em telas maiores */
    }
}


