/* ============================================
   CORREÇÃO DE FUNDO APENAS PARA ESTA PÁGINA
   Mantém cabeçalho e rodapé originais
   ============================================ */

/* Anula o fundo cinza do html que vem do principal.css */
html {
    background-color: transparent !important;
}

/* Aplica a imagem de fundo no body, ocupando toda a área rolável */
body {
    background-image: url('../imagens/background/background_formulario.jpg') !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    background-position: center center !important;
    background-color: transparent !important;
    min-height: 100vh; /* Garante que o body tenha altura total, incluindo a margem */
}

/* ============================================
   ESTILOS ORIGINAIS (NÃO ALTERADOS)
   ============================================ */

/* Container form styling */
.container_form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2em;
    background-color: white;
    width: 70%;
    margin: auto;
    margin-top: 20em;
    margin-bottom: 10em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    /* CORREÇÃO DO CORTE INFERIOR ESQUERDO: clip-path simétrico */
    clip-path: polygon(
        0 0,
        calc(100% - 60px) 0,
        100% 60px,
        100% 100%,
        60px 100%,
        0 calc(100% - 60px)
    );
}

/* Remove o pseudo-elemento antigo que causava corte incorreto */
.container_form::after {
    display: none;
}

.cut_image_top {
    position: absolute;
    top: 9px;
    right: -45px;
    width: 18em;
    transform: rotate(44deg);
    height: auto;
    z-index: 1;
}

.cut_image_bottom {
    position: absolute;
    bottom: 8px;
    left: -45px;
    width: 18em;
    transform: rotate(225deg);
    height: auto;
    z-index: 1;
}

.clip_image {
    position: absolute;
    top: -10px;
    left: -80px;
    width: 30em;
    height: auto;
    overflow: hidden;
}

.form_title {
    font-size: 4em;
    font-weight: 400;
    letter-spacing: .2em;
    color: #333;
    text-transform: uppercase;
    padding: 1em;
    max-width: 82%;
    word-wrap: break-word;
    text-align: center;
    z-index: 99999;
}

.form_contato {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    padding: 2em;
}

.fieldset_contato {
    border: none;
    margin-bottom: 2em;
}

.gray_sub_title {
    text-align: center;
    padding: 1em;
}

hr {
    border: none;
    border-top: 1px solid #e9e9e9;
    margin-bottom: 1.5em;
}

.input_default,
.custom-dropdown input,
textarea {
    width: 100%;
    padding: 0.8em;
    padding-left: .5em;
    margin-bottom: 1.5em;
    background-color: #e9e9e9;
    border: none;
    border-radius: 4px;
    color: #333;
    box-sizing: border-box;
    font-size: 1.5em;
    letter-spacing: .08em;
    transition: all 0.3s ease;
}

.input_default:invalid {
    background-color: #ee949c;
}

textarea {
    resize: none;
    font-size: 2.3em;
}

.input_multiple {
    cursor: pointer;
    max-width: 25em;
}

.input_default[name="numero"] {
    max-width: 12em;
}

.input_default:focus,
.custom-dropdown input,
textarea:focus {
    outline: none;
    background-color: #dedede;
    padding-left: .8em;
}

.input_default:hover,
textarea:hover {
    background-color: #dedede;
}

.label_text {
    display: block;
    font-weight: 400;
    letter-spacing: .2em;
    margin-bottom: 0.5em;
    font-size: 1.7em;
    text-transform: uppercase;
}

.btn_light_red {
    border: none;
    margin: 1em auto;
}

.popup {
    position: fixed;
    bottom: -10em;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffcccc;
    color: #000;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.5s ease;
}

.popup.show {
    bottom: 5em;
    opacity: 1;
}

.popup.hidden {
    opacity: 0;
    bottom: -10em;
}

@media (max-width: 1024px) {
    .form_title {
        font-size: 3.5em;
        max-width: 90%;
    }
    .container_form {
        width: 80%;
    }
    .form_contato {
        padding: .5em;
    }
    .clip_image {
        top: -7px;
        left: -60px;
        width: 20em;
    }
}

@media (max-width: 768px) {
    .form_title {
        font-size: 2.5em;
        max-width: 100%;
        word-wrap: normal;
    }
    .container_form {
        width: 95%;
        clip-path: polygon(
            0 0,
            calc(100% - 40px) 0,
            100% 40px,
            100% 100%,
            40px 100%,
            0 calc(100% - 40px)
        );
    }
    .form_contato {
        padding: 0;
    }
    .clip_image {
        top: -6px;
        left: -50px;
        width: 15em;
    }
    .cut_image_top {
        top: 7px;
        right: -24px;
        width: 11em;
    }
    .cut_image_bottom {
        bottom: 7px;
        left: -24px;
        width: 11em;
    }
}

/* Dropdown */
.custom-dropdown {
    position: relative;
    max-width: 25em;
}
.dropdown-options {
    display: none;
    position: absolute;
    margin-top: -2.3em;
    background-color: white;
    border: 1px solid #ccc;
    text-transform: uppercase;
    letter-spacing: .05em;
    width: 100%;
    z-index: 1;
    max-height: 200px;
    overflow-y: auto;
}
.dropdown-options .option {
    padding: 0.8em;
    font-size: 1.3em;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.dropdown-options .option:hover {
    background-color: #e9e9e9;
}
.custom-dropdown input {
    text-transform: uppercase;
    padding-right: 2.5em;
    background-color: #e9e9e9;
}
.custom-dropdown input:focus,
.custom-dropdown input:hover {
    outline: none;
    background-color: #dedede;
}
.custom-dropdown::after {
    content: '';
    position: absolute;
    top: 1.8em;
    right: 1em;
    transform: translateY(-50%) rotate(43deg);
    border: solid #333;
    border-width: 0 2px 2px 0;
    padding: 5px;
    display: inline-block;
    transform-origin: center;
    transition: transform 0.3s ease;
}
.custom-dropdown.dropdown-open::after {
    transform: rotate(225deg);
}