/* Reset universal */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corpo da página */
body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    background: #212329;
    background-size: cover;
    font-family: Calibri, Arial, sans-serif;
    color: #ffffff;
    font-size: clamp(14px, 1.5vw, 18px);
    padding-top: 20px;
    position: relative;
}

/* Espaço extra para rodapé fixo */
body::after {
    content: "";
    display: block;
    height: 130px;
}

/* Título principal */
.title {
    margin-bottom: 20px;
    text-align: center;
}

.title h1 {
    font-size: clamp(24px, 3vw, 40px);
}

/* Texto informativo */
.text-content {
    text-align: justify;
    line-height: 1.6;
    margin: 10px auto;
    width: 100%;
    max-width: 800px;
}

.text-content h3 {
    margin: 10px 0;
}

.text-content p {
    margin: 10px 0;
    color: #ffffff;
}

.text-content hr {
    border: none;
    border-top: 2px solid #CE6F0A;
    margin: 20px 0;
    width: 100%;
}

/* Área central do formulário */
.center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.box {
    background: #333;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
}

/* Labels */
label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: clamp(14px, 1.5vw, 18px);
}

/* Campos de entrada */
.form-control {
    width: 100%;
    max-width: 800px;
    background: transparent;
    border: none;
    outline: none;
    border-bottom: 1px solid gray;
    color: #ffffff;
    font-size: clamp(16px, 1.2vw, 18px);
    margin-bottom: 18px;
    padding: 5px;
    transition: border-bottom 0.3s ease-in-out;
}

.form-control:hover,
.form-control:focus {
    border-bottom: 1px solid #f9423D;
}

.form-control:focus-visible {
    outline: 2px solid #f9423D;
}

/* Botão de envio */
button.submit,
input.submit {
    background-color: #CE6F0A;
    border: none;
    color: #ffffff;
    font-size: clamp(16px, 1.5vw, 20px);
    letter-spacing: 2px;
    height: 50px;
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
    transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out;
    cursor: pointer;
}

button.submit:hover,
input.submit:hover {
    background-color: #f9423D;
    color: #000000;
}

/* Dropdowns */
select.form-control {
    appearance: none;
    border: 3px solid #ccc;
    padding: 7px;
    font-size: clamp(14px, 1.5vw, 16px);
    background-color: #ffffff;
    color: black;
    cursor: pointer;
    width: 100%;
    max-width: 700px;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
}

/* Seleção múltipla */
select[multiple] {
    height: 150px;
    background-color: #ffffff;
    color: #000000;
    border: 3px solid #ccc;
    padding: 7px;
    font-size: clamp(14px, 1.5vw, 16px);
    cursor: pointer;
    overflow-y: auto;
    resize: vertical;
}

/* Opções */
select option {
    padding: 7px;
    background-color: #ffffff;
    color: #000000;
}

select option:hover {
    background-color: #f9423D;
    color: #ffffff;
}

/* Mensagem de resposta */
#responseMessage {
    margin-top: 15px;
    font-weight: bold;
}

/* Rodapé fixo em formato de barra com 3 linhas */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, #1a1a1a, #2c2c2c);
    color: #ffffff;
    text-align: center;
    padding: 14px 10px;
    font-size: clamp(12px, 1.2vw, 15px);
    border-top: 2px solid #CE6F0A;
    z-index: 1000;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.5;
}

.footer-content p {
    margin: 4px 0;
}

.footer a {
    color: #CE6F0A;
    text-decoration: none;
}

.footer a:hover {
    color: #f9423D;
    text-decoration: underline;
}

.footer-content hr {
    border: none;
    border-top: 2px solid #CE6F0A;
    margin: 12px 0;
    width: 100%;
}

/* Responsividade */
@media screen and (max-width: 768px) {

    .box,
    .form-control,
    select,
    button.submit {
        max-width: 95%;
    }
    

    .text-content {
        padding: 0 10px;
    }

    .footer {
        font-size: 13px;
        padding: 16px 12px;
    }

    .footer-content {
        padding: 0 10px;
    }

    .footer-content p {
        white-space: normal;
    }
    .footer-content hr {
        margin: 8px 0;
        border-top: 1px solid #CE6F0A;
    }
}