/* Estilos para o formulário e resultados */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Cabeçalho */
.header {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}

.header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.8em;
}

.header p {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 1.1em;
}

/* Formulário */
.form-cadastro {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    transform: scale(1.2);
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
    color: #2c3e50;
}

/* Endereços Condicionais */
.endereco-conditional {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    margin: 15px 0;
    display: none;
}

.endereco-conditional.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Ações do Formulário */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 200px;
}

.btn.primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn.secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(149, 165, 166, 0.3);
}

.btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.4);
}

/* Mensagens de Resultado */
.result-message {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 30px;
    border-left: 6px solid;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-message.success {
    border-left-color: #27ae60;
    background: linear-gradient(135deg, #fff 0%, #f8fff9 100%);
}

.result-message.error {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, #fff 0%, #fff8f8 100%);
}

.result-message h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #2c3e50;
}

.result-message p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #555;
}

/* Botões de Ação */
.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Rodapé */
.footer {
    margin-top: auto;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.footer p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9em;
}

.footer strong {
    color: #2c3e50;
}

/* Benefits */
.benefits {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.benefits span {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #2c3e50;
    border: 1px solid #e9ecef;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1em;
    margin-bottom: 15px;
}

/* Créditos do Desenvolvedor */
.developer-credit-top {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9em;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
    display: inline-block;
}

.developer-credit-top strong {
    font-weight: 700;
}

.developer-name {
    font-size: 0.85em;
    opacity: 0.9;
    margin-top: 2px;
}

/* Footer Credits */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: center;
}

.developer-credit, .hosting-credit {
    padding: 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.developer-credit {
    border-left: 4px solid #3498db;
}

.hosting-credit {
    border-left: 4px solid #27ae60;
}

.developer-credit p:first-child,
.hosting-credit p:first-child {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #2c3e50;
}

.developer-credit .developer-name {
    font-size: 0.9em;
    color: #7f8c8d;
    font-style: italic;
}

/* Validation Messages */
.validation-message {
    font-size: 0.85em;
    margin-top: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    display: none;
}

.validation-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.validation-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.validation-message.loading {
    display: block;
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Animações suaves */
.form-section {
    animation: slideUp 0.5s ease;
}

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

/* Responsivo */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 20px;
    }
    
    .logo {
        max-width: 120px;
    }
    
    .form-cadastro {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        min-width: auto;
        width: 100%;
    }
    
    .result-message {
        padding: 30px 20px;
    }
    
    .result-message h2 {
        font-size: 1.5em;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .developer-credit-top {
        font-size: 0.8em;
        padding: 8px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .developer-credit, .hosting-credit {
        padding: 15px;
    }
}

/* Efeitos hover */
.developer-credit:hover, .hosting-credit:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Estados de validação */
input:invalid {
    border-color: #e74c3c;
}

input:valid {
    border-color: #3498DB;
}

.loading-redirect {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.loading-redirect h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.loading-redirect a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.loading-redirect a:hover {
    text-decoration: underline;
}
#campo_ie input[disabled] {
    background: #eee;
    color: #666;
}
.checkbox-container {
    display: flex;
    justify-content: center; /* centraliza horizontalmente */
    margin-top: 10px;
    margin-bottom: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px; /* espaço entre checkbox e texto */
    font-weight: 500;
    cursor: pointer;
}

#grupo_contato {
    margin-top: 10px; /* espaço ao abrir */
}
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

/* Conteúdo central do overlay */
.overlay-content {
    background: #333;
    padding: 30px 50px;
    border-radius: 12px;
}