/* ===== RESET E CONFIGURAÇÕES GERAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    margin: 0 auto;
}

.content {
    width: 100%;
    margin: 0 4%;
    padding: 10px 0;
    /* Diminuído de 20px para 10px */
}

/* ===== HEADER ===== */
.main_header {
    background: #ffffff;
    border-bottom: 1px solid #f4f4f4;
    padding: 0.5em 0;
}

.main_header .content {
    padding: 0;
}

.main_header_logo {
    text-align: center;
    margin: auto;
    width: 138px;
}

.main_header_logo img {
    height: 69px;
}

/* ===== CONTEÚDO PRINCIPAL ===== */
.main_content {
    padding: 5px 0;
    /* Diminuído o padding */
}

.section-seu-codigo {
    padding: 5px 0;
    /* Diminuído de 10px para 5px */
    background-color: #f4f4f4;
}

.section-seu-codigo .content {
    padding: 0.5em 0;
    /* Diminuído de 1em para 0.5em */
}

.section_title {
    width: 100%;
    margin-bottom: 0.5em;
    /* Diminuído de 1em para 0.5em */
    font-size: 1.3em;
    font-weight: 700;
    /* Negrito */
    text-align: left;
    /* Alinhado à esquerda */
    border-bottom: 1px solid #eceaea;
    padding-bottom: 0.5em;
    /* Diminuído */
    max-width: 1200px;
    /* Respeita largura do formulário */
    margin-left: auto;
    margin-right: auto;
}

.section-seu-codigo .content p {
    text-align: left;
    /* Alinhado à esquerda */
    color: #007cff;
    font-size: 1.1em;
    /* Ligeiramente menor */
    font-weight: 700;
    /* Negrito */
    margin-bottom: 0.5em;
    /* Diminuído */
    max-width: 500px;
    /* Respeita largura do formulário */
    margin-left: auto;
    margin-right: auto;
}

/* ===== BOX DO ARTIGO/FORMULÁRIO ===== */
.box-artigo {
    width: 100%;
    padding: 0.5em;
    /* Diminuído de 1em para 0.5em */
    display: flex;
    justify-content: center;
}

/* ===== CONTAINER DO FORMULÁRIO ===== */
.container-form {
    position: relative;
    max-width: 1200px;
    width: 100%;
    background: #FFF;
    padding: 20px;
    /* Diminuído de 25px para 20px */
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    /* Margem superior reduzida */
}

.container-form .title-form {
    font-size: 1em;
    color: #ea1b08;
    font-weight: 700;
    text-align: left;
    /* Alinhado à esquerda */
    margin-bottom: 10px;
    /* Diminuído de 15px para 10px */
    padding-left: 0;
    /* Remove qualquer padding lateral */
}

.container-form .form {
    margin-top: 10px;
    /* Diminuído de 15px para 10px */
}

/* ===== GRUPOS DE INPUT ===== */
.form .input-box {
    width: 100%;
    margin-top: 8px;
    /* Diminuído de 10px para 8px */
}

.input-box label {
    color: #000;
    display: block;
    margin-bottom: 3px;
    /* Diminuído de 5px para 3px */
}

.form .input-box input,
.form .select-box {
    position: relative;
    height: 35px;
    width: 100%;
    outline: none;
    font-size: 1rem;
    color: #333;
    margin-top: 3px;
    /* Diminuído de 5px para 3px */
    border: 1px solid #A4E3F0;
    border-radius: 6px;
    padding: 0 15px;
    background: #F0F8FF;
    /* Azul bem claro - substitui #E9F8FB */
}

.form .input-box input:focus {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    background: #E6F3FF;
    /* Azul um pouco mais escuro no focus */
}

/* ===== TEXTAREA ===== */
.form .input-box textarea {
    position: relative;
    height: 100px;
    width: 100%;
    outline: none;
    font-size: 1rem;
    color: #333;
    margin-top: 3px;
    /* Diminuído de 5px para 3px */
    border: 1px solid #A4E3F0;
    border-radius: 6px;
    padding: 10px;
    background: #F0F8FF;
    /* Azul bem claro - substitui #E9F8FB */
    resize: vertical;
}

.form .input-box textarea:focus {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    background: #E6F3FF;
    /* Azul um pouco mais escuro no focus */
}

/* ===== LAYOUT EM COLUNAS ===== */
.form .column {
    display: flex;
    column-gap: 15px;
}

.form-group {
    margin-bottom: 10px;
    position: relative;
}

.form-group[data-size="12"] {
    width: 100%;
}

.form-group[data-size="6"] {
    width: calc(50% - 10px);
}

.form-group[data-size="4"] {
    width: calc(50% - 10px);
}

.form-group[data-size="3"] {
    width: calc(50% - 10px);
}

/* ===== GRUPO DE GÊNERO/RADIO ===== */
.form .gender-box {
    margin-top: 8px;
    /* Diminuído de 10px para 8px */
}

.form .gender-option,
.form .gender {
    display: flex;
    align-items: center;
    column-gap: 50px;
    flex-wrap: wrap;
}

.form .gender {
    column-gap: 5px;
}

.gender input {
    accent-color: #007CFF;
    width: 15px;
    height: 15px;
}

.form .gender input,
.form .gender label {
    cursor: pointer;
}

.gender label {
    color: #000;
}

/* ===== SELECT BOX ===== */
.select-box select {
    height: 100%;
    width: 100%;
    outline: none;
    border: none;
    color: #808080;
    font-size: 1em;
    background: #F0F8FF;
    /* Azul bem claro - substitui #e9f8fb */
}

/* ===== BOTÃO ===== */
.form button {
    height: 40px;
    width: 100%;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 12px;
    /* Diminuído de 15px para 12px */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #007cff;
}

.form button:hover {
    background: #28D1F2;
}

/* ===== ANTI-SPAN ===== */
.naoexibir {
    display: none !important;
}

/* ===== FOOTER ===== */
.main_footer {
    background-color: #007cff;
    color: #fff;
    font-size: 0.875em;
    margin-top: 20px;
    /* Diminuído o margin-top */
}

.main_footer .content {
    padding: 2em 0;
    /* Diminuído de 3em para 2em */
}

.main_footer_copy {
    background-color: transparent;
    width: 100%;
    text-align: center;
    padding: 1em 0;
    /* Diminuído de 1.5em para 1em */
}

.main_footer_copy p {
    font-size: 1em;
    color: #ffffff;
    margin-bottom: 0.3em;
    /* Diminuído de 0.5em para 0.3em */
}

.main_footer_copy .m-b-footer {
    margin-bottom: 0.3em;
    /* Diminuído de 0.5em para 0.3em */
}

.main_footer_copy .by {
    font-size: 0.96em;
}

.main_footer_copy .by i {
    font-size: 0.96em;
    margin-right: 3px;
    color: #e82626;
}

.main_footer_copy .by a {
    text-decoration: underline;
    color: #ffffff;
}

.main_footer_copy .by a:hover {
    color: #000000;
}

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

/* 480px BREAKPOINT */
@media (min-width: 30em) {
    .container-form {
        padding: 20px;
        /* Mantido reduzido */
    }
}

/* 768px BREAKPOINT */
@media (min-width: 48em) {
    .content {
        width: 90%;
        margin: 0 5%;
    }
}

/* 960px BREAKPOINT */
@media (min-width: 60em) {
    .section-seu-codigo .content {
        width: 80%;
        margin: 0 10%;
    }

    .container-form {
        max-width: 1200px;
    }
}

/* Mobile First - Ajustes para telas menores */
@media (max-width: 767px) {
    .form .column {
        flex-direction: column;
        gap: 0;
    }

    .container-form {
        padding: 15px;
        /* Reduzido em mobile */
        margin: 0 10px;
    }

    .form .gender-option,
    .form .gender {
        column-gap: 20px;
    }

    .section_title,
    .section-seu-codigo .content p {
        margin-left: 10px;
        margin-right: 10px;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 480px) {
    .container-form {
        padding: 12px;
        /* Mais reduzido em telas pequenas */
        margin: 0 5px;
    }

    .section_title {
        font-size: 1.1em;
    }

    .section-seu-codigo .content p {
        font-size: 1em;
    }

    .content {
        padding: 5px 0;
        /* Mais reduzido */
    }

    .form-row {
        display: flex;
        gap: 15px;
        /* Espaço entre os campos */
        margin-bottom: 15px;
    }


    .input-box {
        flex: 1;
        /* Ambos os campos ocupam a mesma largura */
    }

    .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Duas colunas de tamanho igual */
        gap: 15px;
        margin-bottom: 15px;
    }

}