/* ============================================================
   RESET E CONFIGURAÇÕES BÁSICAS
   ============================================================ */

* {
    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, #1e3c72 0%, #2a5298 50%, #20B2AA 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   CABEÇALHO
   ============================================================ */

header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #20B2AA, #48D1CC);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.logo-text h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-subtitle {
    color: #20B2AA;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 4px;
    display: block;
    margin-top: -5px;
}

.header-info {
    text-align: right;
    flex: 1;
    min-width: 300px;
}

.header-info h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.header-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 300;
    margin: 0;
}

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */

main {
    padding: 0 0 3rem 0;
}

section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

section h2 {
    color: #1e3c72;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #20B2AA;
    padding-bottom: 0.5rem;
}

section h3 {
    color: #4a5568;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* ============================================================
   FORMULÁRIO
   ============================================================ */

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
    font-size: 1rem;
}

select, input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

select:focus, input:focus {
    outline: none;
    border-color: #20B2AA;
    box-shadow: 0 0 0 3px rgba(32, 178, 170, 0.2);
    transform: translateY(-2px);
}

select:hover, input:hover {
    border-color: #cbd5e0;
}

/* Estilo para campos inválidos */
select.invalid, input.invalid {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* Mensagens de erro */
.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    font-weight: 500;
}

/* ============================================================
   RADIO BUTTONS (ATA)
   ============================================================ */

.radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #4a5568;
    position: relative;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
    flex: 1;
    justify-content: flex-start;
    min-height: 50px;
    font-size: 1rem;
}

.radio-label:hover {
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.radio-label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    margin: 0;
    margin-right: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked {
    border-color: #20B2AA;
    background: #20B2AA;
}

.radio-label input[type="radio"]:checked::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Remove o span customizado - não precisamos mais dele */
.radio-custom {
    display: none;
}

/* Estado ativo do radio button */
.radio-label.active {
    border-color: #20B2AA;
    background: rgba(32, 178, 170, 0.1);
    color: #20B2AA;
}

/* ============================================================
   BOTÕES
   ============================================================ */

button {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #20B2AA 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
}

button:active {
    transform: translateY(-1px);
}

button:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================================
   ÁREA DE RESULTADO
   ============================================================ */

.result-section {
    border-left: 5px solid #20B2AA;
}

.result-content {
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.placeholder {
    color: #718096;
    font-style: italic;
    text-align: center;
    font-size: 1rem;
}

/* Resultado de sucesso */
.result-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.result-success h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.kit-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.kit-info p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.kit-info strong {
    color: #e6fffa;
}

/* Resultado de erro */
.result-error {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.result-error h3 {
    color: white;
    margin-bottom: 1rem;
}

/* ============================================================
   SEÇÃO DE INFORMAÇÕES
   ============================================================ */

.info-section {
    background: linear-gradient(135deg, #edf2f7, #f7fafc);
    border: 1px solid #e2e8f0;
}

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

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.info-card h4 {
    color: #1e3c72;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-card p {
    color: #4a5568;
    line-height: 1.6;
}

/* ============================================================
   RODAPÉ
   ============================================================ */

footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 2rem 0 1rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h4 {
    color: #20B2AA;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .header-info {
        text-align: center;
        min-width: auto;
    }
    
    .logo-text h1 {
        font-size: 2rem;
    }
    
    .header-info h2 {
        font-size: 1.5rem;
    }
    
    .header-info p {
        font-size: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 0;
    }
    
    .logo-text h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .logo-subtitle {
        letter-spacing: 2px;
        font-size: 0.9rem;
    }
    
    .logo-icon {
        font-size: 2.5rem;
    }
    
    .header-info h2 {
        font-size: 1.3rem;
    }
    
    section {
        padding: 1rem;
    }
    
    select, input {
        padding: 0.875rem;
    }
    
    button {
        padding: 0.875rem 1rem;
    }
}

/* ============================================================
   ANIMAÇÕES
   ============================================================ */

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

.result-content {
    animation: fadeInUp 0.5s ease-out;
}

/* Loading spinner para o botão */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 8px;
}
