/* =========================================
   formulario_inscricao — ficha pública de inscrição
   Mesmo acabamento do portal_cotas / portal_do_inscrito:
   capa em degradê, cartão branco, blocos com borda azul
   e revelação suave ao rolar.
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f6f8;
    color: #333;
}

.is-hidden {
    display: none !important;
}

.container {
    max-width: 900px;
    margin: 0 auto 3rem auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
}

.div_titulo {
    margin: 0 0 25px 0;
    padding: 10px;
    text-align: center;
    background-color: #1a73e8;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    letter-spacing: 1px;
}

.obrig {
    color: #d93025;
}

.obrig_ou {
    color: #b8860b;
}

/* =========================================
   CAPA
========================================= */
.hero {
    position: relative;
    z-index: 0;
    overflow: hidden;
    padding: 46px 20px 64px;
    margin-bottom: -30px;
    text-align: center;
    color: #fff;
    background: linear-gradient(120deg, #0d47a1, #1a73e8, #2b8fff, #1557b0);
    background-size: 300% 300%;
    animation: heroGradiente 16s ease infinite;
}

@keyframes heroGradiente {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero_conteudo {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
}

.hero_tag {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 30px;
    font-size: .8em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    animation: surgir .8s ease both;
}

.hero_titulo {
    font-size: 2.2em;
    line-height: 1.2;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .2);
    animation: surgir .8s .1s ease both;
}

.hero_sub {
    font-size: 1.02em;
    line-height: 1.6;
    opacity: .95;
    animation: surgir .8s .2s ease both;
}

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

/* bolhas decorativas da capa */
.hero_bolhas span {
    position: absolute;
    bottom: -120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    animation: subir 18s linear infinite;
}

.hero_bolhas span:nth-child(1) { left: 8%;  width: 90px;  height: 90px;  animation-duration: 20s; }
.hero_bolhas span:nth-child(2) { left: 28%; width: 45px;  height: 45px;  animation-duration: 14s; animation-delay: 2s; }
.hero_bolhas span:nth-child(3) { left: 52%; width: 130px; height: 130px; animation-duration: 24s; animation-delay: 1s; }
.hero_bolhas span:nth-child(4) { left: 74%; width: 60px;  height: 60px;  animation-duration: 16s; animation-delay: 4s; }
.hero_bolhas span:nth-child(5) { left: 90%; width: 100px; height: 100px; animation-duration: 22s; animation-delay: 3s; }

@keyframes subir {
    0%   { transform: translateY(0) scale(1); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: .5; }
    100% { transform: translateY(-115vh) scale(1.2); opacity: 0; }
}

/* =========================================
   REVELAR AO ROLAR
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.visivel {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero { animation: none; }
    .hero_bolhas { display: none; }
    .hero_tag, .hero_titulo, .hero_sub { animation: none; }
}

/* =========================================
   FORMULÁRIO
========================================= */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group-container {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    width: 100%;
    font-family: Arial, sans-serif;
    transition: border-color .3s, box-shadow .3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, .15);
    outline: none;
}

input[readonly] {
    background: #f4f6fb;
    color: #0d47a1;
    font-weight: bold;
}

input[type="radio"] {
    accent-color: #1a73e8;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.campo_ajuda {
    margin: -1rem 0 1.4rem;
    font-size: .82em;
    color: #7f8ca6;
}

.bloco_titulo {
    margin: 2rem 0 1.2rem;
    padding: 8px 12px;
    background: #eef4ff;
    border-left: 4px solid #1a73e8;
    border-radius: 4px;
    font-weight: bold;
    color: #0d47a1;
    letter-spacing: .5px;
    font-size: .95em;
}

.msg_erro {
    display: none;
    margin-bottom: 1.5rem;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    background: #f8d7da;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
}

.msg_erro.tremendo {
    animation: tremer .4s;
}

@keyframes tremer {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-6px); }
    75%      { transform: translateX(6px); }
}

.btn-container {
    display: flex;
    margin-top: 1.5rem;
}

.btn_inscrever {
    width: 100%;
    padding: 16px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background .3s, transform .2s;
}

.btn_inscrever:hover:not(:disabled) {
    background: #1557b0;
    transform: translateY(-2px);
}

.btn_inscrever:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: .8;
    transform: none;
}

/* =========================================
   Botão "Gerar CPF" — só aparece com ?adm=eletro na URL
========================================= */
.cpf_campo {
    display: flex;
    align-items: stretch;
    gap: 0.4rem;
}

.btn_cpf_teste {
    flex: none;
    width: 2.4rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #eef4ff;
    color: #1a73e8;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.btn_cpf_teste:hover:not(:disabled) {
    background: #1a73e8;
    color: #fff;
}

.btn_cpf_teste:disabled {
    color: #b8c4d8;
    cursor: wait;
}

/* =========================================
   Senha de acesso ao portal
========================================= */
.senha_campo {
    position: relative;
}

.senha_campo input {
    padding-right: 2.5rem;
}

.btn_ver_senha {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    cursor: pointer;
}

.btn_ver_senha:hover {
    color: #1a73e8;
}

.senha_forca {
    margin-top: 0.4rem;
}

.senha_forca_barra {
    height: 6px;
    border-radius: 3px;
    background: #e4e8f0;
    overflow: hidden;
}

.senha_forca_barra span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: #e4e8f0;
    transition: width .2s, background .2s;
}

.senha_forca_barra span.fraca  { background: #d93025; }
.senha_forca_barra span.media  { background: #f29900; }
.senha_forca_barra span.boa    { background: #1a73e8; }
.senha_forca_barra span.forte  { background: #1e7e34; }

.senha_forca_txt {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: bold;
}

.senha_forca_txt.fraca { color: #d93025; }
.senha_forca_txt.media { color: #b26a00; }
.senha_forca_txt.boa   { color: #1a73e8; }
.senha_forca_txt.forte { color: #1e7e34; }

.senha_confere {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.78rem;
}

.senha_confere.ok   { color: #1e7e34; }
.senha_confere.erro { color: #d93025; }

.senha_regras {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.5rem;
    margin: -0.5rem 0 1.5rem;
    padding: 0;
    list-style: none;
}

.senha_regras li {
    font-size: 0.78rem;
    color: #777;
}

.senha_regras li i {
    font-size: 0.5rem;
    vertical-align: middle;
    margin-right: 0.3rem;
}

.senha_regras li.ok {
    color: #1e7e34;
}

.senha_regras li.ok i {
    font-size: 0.78rem;
}

/* =========================================
   Confirmação (tela final, depois de gravar)
========================================= */
.sucesso_caixa {
    padding: 2rem;
    border: 2px solid #1e7e34;
    border-radius: 5px;
    background: #e9f7ee;
    text-align: center;
}

.sucesso_titulo {
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: bold;
    color: #1e7e34;
}

.sucesso_titulo i {
    display: block;
    font-size: 2.4em;
    margin-bottom: .3rem;
}

.sucesso_texto {
    font-size: 1rem;
    color: #24402c;
}

.sucesso_email {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #466050;
}

.sucesso_alerta {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid #b26a00;
    background: #fff6e5;
    color: #6b4500;
    font-size: 0.9rem;
    text-align: left;
}

.btn_portal {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    color: #fff;
    background-color: #1a73e8;
    border: 1px solid #1557b0;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color .3s;
}

.btn_portal:hover {
    background-color: #1557b0;
}

/* =========================================
   Busca de CEP
========================================= */
.cep_campo {
    display: flex;
    align-items: stretch;
}

.cep_campo input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn_cep {
    flex: none;
    width: 2.4rem;
    border: 1px solid #ccc;
    border-left: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background: #eef4ff;
    color: #1a73e8;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.btn_cep:hover:not(:disabled) {
    background: #1a73e8;
    color: #fff;
}

.cep_msg {
    display: block;
    margin-top: 3px;
    font-size: .75rem;
    color: #b8860b;
    min-height: 1em;
    white-space: normal;
}

/* =========================================
   FOOTER
========================================= */
.footer {
    text-align: right;
    padding: 1rem 1.5rem;
    color: white;
    font-size: .85em;
    background-color: #1a73e8;
    margin-top: 1rem;
    margin-bottom: 70px;
}

/* =========================================
   MOBILE
========================================= */
@media (max-width: 768px) {
    .hero { padding: 34px 16px 56px; }
    .hero_titulo { font-size: 1.6em; }

    .container { padding: 20px; border-radius: 0; }

    .form-group-container {
        flex-direction: column;
        gap: 0;
    }

    .form-group-container .form-group {
        width: 100% !important;
    }
}

/* ═══ Captcha ═══════════════════════════════════════════════
   A imagem e o botão de recarregar ficam lado a lado, na mesma
   altura do campo onde se digita o código. */
.captcha_linha { align-items: flex-end; }

.captcha_caixa {
    display: flex;
    gap: 10px;
    height: 42px;
}

#img_captcha {
    height: 100%;
    border: 1px solid #ccd;
    border-radius: 4px;
    display: block;
}

.btn_recarrega_captcha {
    height: 100%;
    margin: 0;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha_campo {
    width: 150px;
    height: 42px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
