:root {
    --primary: #017158; /* Verde ICR */
    --bg: #1c1c1c;      /* Cinza escuro fundo */
    --card: #2b2b2b;    /* Cinza claro cards */
    --text: #ffffff;
    --border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg);
    padding: 50px;
    color: var(--text);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: var(--card);
    /* Diminuindo o padding lateral do card para 1rem libera mais espaço para os inputs */
    padding: 3rem 3rem; 
    border-radius: 1.5rem;
    width: 85%;
    max-width: 550px; /* Largura total generosa */
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Garante que o formulário ocupe 100% da largura útil do container */
#inscricaoForm {
    width: 100%;
}
.header { text-align: center; margin-bottom: 2rem; }
.logo-img {
    width: 100%;           /* Ocupa a largura total do container */
    height: auto;          /* Mantém a proporção baseada na largura */
    max-height: 300px;     /* Limite de altura */
    object-fit: cover;
    border-radius: 1rem;   /* Arredondamento suave acompanhando o container */
    border: 2px solid var(--primary);
    margin-bottom: 1.5rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.subtitle { color: rgba(255,255,255,0.5); font-size: 0.9rem; }

.form-group { margin-bottom: 1.5rem; display: flex; flex-direction: column; width: 100%; }
.form-group label { font-size: 0.85rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,0.7); }
.form-group label .material-icons { font-size: 1.1rem; }

/* Atualize a regra dos inputs e selects */
input, select {
    width: 100%;
    background-color: #171717;
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    
    /* Aumentando o preenchimento: 1.1rem em cima/baixo e 1.5rem nas laterais */
    padding: 1.1rem 1.5rem; 
    
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
    margin-top: 0.5rem;
}

/* Ajuste específico para o Select (setinha) não ficar apertado */
select {
    appearance: none; /* Remove estilo padrão se quiser customizar mais */
    cursor: pointer;
}
/* Ajuste no grupo do formulário para garantir alinhamento */
.form-group {
    margin-bottom: 2rem;   /* Aumentado o espaço entre um campo e outro */
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group label {
    font-size: 0.95rem;    /* Label levemente maior */
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;              /* Mais espaço entre o ícone e o texto */
    color: rgba(255,255,255,0.8);
}

input:focus, select:focus { outline: none; border-color: var(--primary); }

.checkbox-group {
    margin-bottom: 1.25rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    accent-color: var(--primary);
    flex: 0 0 auto;
}

.btn-submit {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 0.6rem;
    width: 100%;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: filter 0.3s;
}

.btn-submit:hover { filter: brightness(1.2); }

.success-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 560px;
    padding: 1.5rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.35);
    box-sizing: border-box;
    margin: 0 auto;
    color: #ffffff;
}

.pix-container {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--primary);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    width: 100%;
    box-sizing: border-box;
}

.pix-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.pix-details p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.pix-details strong {
    color: #4ade80; /* Verde claro para a chave */
}

.whatsapp-instruction {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.check-icon {
    font-size: 4rem;
    color: #4ade80;
    margin-bottom: 0.5rem;
}

/* Garante que o container se ajuste ao conteúdo novo */
.container {
    height: auto;
    min-height: fit-content;
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
    text-decoration: none;
    padding: 1rem;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
    font-weight: bold;
    width: 100%;
    box-sizing: border-box;
}

body.success-mode {
    padding: 16px;
    box-sizing: border-box;
    align-items: flex-start;
    justify-content: flex-start;
}

body.success-mode .success-area {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    body {
        padding: 16px;
        box-sizing: border-box;
    }

    .success-area {
        width: 100%;
        max-width: 100%;
        padding: 1.5rem 1rem 2rem;
    }

    .pix-container {
        padding: 1.25rem 1rem;
    }

    .btn-whatsapp {
        padding: 1rem 0.9rem;
    }
}

.hidden { display: none; }