/* 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; /* Ensure the pseudo-element is positioned relative to this container */
    clip-path: polygon(0 0, calc(100% - 60px) 0, 100% 60px, 100% 100%, 0 100%);
}

/* Adicionar outro polygon */
.container_form::after {
    content: '';
    position: absolute; /* Position the pseudo-element absolutely */
    bottom: 0; /* Align to the bottom */
    left: 0; /* Align to the left */
    width: 100%; /* Full width of the container */
    height: 100%; /* Full height of the container */
    background-color: #f5f5f5; /* Use the same background color */
    clip-path: polygon(0 100%, 60px 100%, 0 calc(100% - 60px), 0 0, 0 0); /* Your bottom left polygon */
    z-index: 1; /* Place behind the main container */
}

.cut_image_top{
    position: absolute;
    top: 9px; /* Adjust based on your image size */
    right: -45px; /* Adjust based on your image size */
    width: 18em; /* Set the desired width */
    transform: rotate(44deg);
    height: auto; /* Maintain aspect ratio */
    z-index: 1; /* Ensure it's on top */
}

.cut_image_bottom{
    position: absolute;
    bottom: 8px; /* Adjust based on your image size */
    left: -45px; /* Adjust based on your image size */
    width: 18em; /* Set the desired width */
    transform: rotate(225deg);
    height: auto; /* Maintain aspect ratio */
    z-index: 1; /* Ensure it's on top */
}

.clip_image{
    position: absolute;
    top: -10px; /* Adjust based on your image size */
    left: -80px; /* Adjust based on your image size */
    width: 30em; /* Set the desired width */
    height: auto; /* Maintain aspect ratio */
    overflow: hidden;
}

.form_title {
    font-size: 4em;
    font-weight: 400;
    letter-spacing: .2em;
    color: #333;
    text-transform: uppercase;
    padding: 1em;
    max-width: 82%; /* Adjust as needed */
    word-wrap: break-word; /* Force text to wrap to the next line */
    text-align: center; /* Keep it centered when wrapping */
    z-index: 99999;
}

/* Form Styling */
.form_contato {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    padding: 2em;
}

.fieldset_contato {
    border: none;
    margin-bottom: 2em;
}

/* Section Titles (legends) */
.gray_sub_title {
    text-align: center;
    padding: 1em;
}

hr {
    border: none;
    border-top: 1px solid #e9e9e9;
    margin-bottom: 1.5em;
}

/* Input and Textarea Styling */
.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;
    font-size: 1.3em;
    color: #333;
    box-sizing: border-box;
    font-size: 1.5em;
    letter-spacing: .08em;
    transition: all 0.3s ease; /* Add transition for padding */
}

/* Tratar de input com valores invalidos */
.input_default:invalid {
    background-color: #ee949c; /* Light red */
}

/* No resize for textareas */
textarea {
    resize: none;
    font-size: 2.3em;
}

.input_multiple{
    cursor: pointer;
    max-width: 25em;
}

.input_default[name="numero"]{
    max-width: 12em;
}

/* Remove outline on focus */
.input_default:focus,
.custom-dropdown input,
textarea:focus {
    outline: none;
    background-color: #dedede;
    padding-left: .8em; /* Moves text, thus shifting the caret */
}

.input_default:hover,
textarea:hover{
    background-color: #dedede;
}


/* Labels Styling */
.label_text {
    display: block;
    font-weight: 400;
    letter-spacing: .2em;
    margin-bottom: 0.5em;
    font-size: 1.7em;
    text-transform: uppercase;
}

/* Submit Button */
.btn_light_red {
    border: none;
    margin: 1em auto;
}


/* POP UP */
.popup {
    position: fixed;
    bottom: -10em; /* Initially hidden below the screen */
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffcccc; /* Light red background */
    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; /* Slide in from the bottom */
    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; /* Adjust based on your image size */
        left: -60px; /* Adjust based on your image size */
        width: 20em; /* Set the desired width */
    }

}

@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%, 0 100%);
    }

    .container_form::after{
        clip-path: polygon(0 100%, 40px 100%, 0 calc(100% - 40px), 0 0, 0 0);
    }

    .form_contato{
        padding: 0;
    }

    .clip_image{
        top: -6px; /* Adjust based on your image size */
        left: -50px; /* Adjust based on your image size */
        width: 15em; /* Set the desired width */
    }

    .cut_image_top{
        top: 7px; /* Adjust based on your image size */
        right: -24px; /* Adjust based on your image size */
        width: 11em; /* Set the desired width */
    }

    .cut_image_bottom{
        bottom: 7px;
        left: -24px;
        width: 11em;
    }
}


/* DROPDOWN */

/* Dropdown options styling */
.custom-dropdown {
    position: relative;
    /* width: 100%; */
    max-width: 25em;
}

.dropdown-options {
    display: none; /* Hidden by default */
    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; /* Limit the height for better usability */
    overflow-y: auto; /* Scrollable if there are too many options */
}

.dropdown-options .option {
    padding: 0.8em;
    font-size: 1.3em; /* Match the font size */
    color: #333; /* Text color to match */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dropdown-options .option:hover {
    background-color: #e9e9e9; /* Highlight on hover */
}

.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;
}



/* Icone flecha do dropdown */
.custom-dropdown::after {
    content: '';
    position: absolute;
    top: 1.8em;
    right: 1em; 
    transform: translateY(-50%) rotate(43deg); /* Initial position of arrow */
    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); /* Rotate arrow upwards */
}