@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

*{
    scroll-behavior: smooth;
    font-family: "Inter", sans-serif;
    text-decoration: none;
    color: #1F2937;
}




section{
    min-height: 100vh;
}



h1{
    font-size: 24px;
    font-weight: 700;
    margin-top: 80px;
    margin-left: 8% ;
}

form{
    display: flex;
    flex-direction: column;
    gap: 25px;  
    align-items: center;
    width: max-content;
    margin: 0 auto;
    width: 700px; 
    margin-bottom: 20%;
    margin-top: 5vh;
}

form label{
    font-size: 18px;
    font-weight: 500;
    min-width: 130px;
    height: 45px;
    line-height: 45px;
    white-space: nowrap;
}

form label span{
    color: #FF0000;
}

.label_and_input{
    display: flex;
    gap: 35px;
    width: 100%;
}

.label_and_input ::placeholder{
    font-size: 16px;
    font-weight: 400;
    color: #9CA3AF
}

.input_container{
    display:flex;
    flex-direction: column;
    width: 100%;
}

form input, form textarea{
    border-radius: 4px;
    border: 1px solid #9CA3AF; 
    font-family: "Inter", sans-serif;
    resize: none; 
    outline: none; 
    padding-left: 10px; 
    height: 41px;
    font-size: 16px;
    font-weight: 400;
}

form input:focus, form textarea:focus{
    border-color: black;
    transition: 0.5s;
}

form textarea{
    height: 175px;
    padding-top: 15px;
    padding-right: 10px;
}

.error_message{
    margin-bottom: 5px;
    color: #FF0000;
    font-weight: 500;
    font-size: 14px;
    display: none;
}

.error_message.show{
    display: block;
}

.invalid{
    border-color: #FF0000;
}

.file_input_container{
    display: flex;
    gap: 35px;  
    width: 100%;
}

.file{
    display: none;
}

.file_button{
    height: 45px;
    width: 171px;
    cursor: pointer;
    border-radius: 6px;
    background-color: #6B7280;
    color: white;
    font-size: 18px;
    font-weight: 400;
    display: flex;
    justify-content: center;
    transition: 0.2s ease; 
}

.file_button:hover{
    background-color: #79808c;
}

.label_and_input p{
    background-color: white;
    width: 100%;
    height: 43px;
    border-radius: 4px;
    border: 1px solid #9CA3AF;
    margin: 0;
    display: flex;
    align-items: center;
    padding-left: 10px; 
    color: #9CA3AF;
    overflow: hidden;
}

.checkbox_container{
    display: flex;
    align-items: center;
    height: 21px;
}

input[type="checkbox"]{
    margin: 0;
    padding: 0;
    height: 21px;
    width: 21px;
    cursor: pointer;
    appearance: none;
    border-radius: 2px;
    border: 2px solid #9CA3AF;
    position: relative; 
    margin-left: 165px;
}

input[type="checkbox"]:checked{
    background-color: #8E22C4;
    border: none;
    transition: none; 
}

input[type="checkbox"]:not(:checked) {
    border: 2px solid #9CA3AF; 
    transition: none;
}

input[type="checkbox"]:checked::before{
    content: "";
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox_text{
    width: max-content;
    font-weight: 500;
    height: 21px;
    font-size: 14px;
    line-height: 21px;
    margin-left: -20px; 
}

#file_input-error{
    color: #FF0000;
    display: none; 
    font-family: "Inter", sans-serif;
    margin: 0;
    font-weight: 500;
    font-size: 14px;
    margin-left: 160px;
}

#file_input-error.show{
    display: block; 
}

.button_container{
    position: relative;
    height: 40px;
    margin-left: 180px;
    display: flex;
    justify-content: center;
}

.submit_button{
    position: absolute;
    height: 40px;
    width: 90px;
    border-radius: 6px;
    background-color: white;
    border: 1px solid #E5E7EB;
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: 0.2s;
} 

.submit_button.active {
    background-color: #6F1999;
    border: none;
    color: white;
    cursor: pointer;
}

.submit_button.active:hover {
    background-color: #7D30A3;
    border: none;
    color: white;
    cursor: pointer;
}   

#spinner{   
    display: none; 
    margin-left: 180px;
    width: 40px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 6px solid #6F1999;
    animation:
      l20-1 0.8s infinite linear alternate,
      l20-2 1.6s infinite linear;
}



@keyframes l20-1{
    0%    {clip-path: polygon(50% 50%,0       0,  50%   0%,  50%    0%, 50%    0%, 50%    0%, 50%    0% )}
    12.5% {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100%   0%, 100%   0%, 100%   0% )}
    25%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 100% 100%, 100% 100% )}
    50%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
    62.5% {clip-path: polygon(50% 50%,100%    0, 100%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
    75%   {clip-path: polygon(50% 50%,100% 100%, 100% 100%,  100% 100%, 100% 100%, 50%  100%, 0%   100% )}
    100%  {clip-path: polygon(50% 50%,50%  100%,  50% 100%,   50% 100%,  50% 100%, 50%  100%, 0%   100% )}
}
 @keyframes l20-2{ 
   0%    {transform:scaleY(1)  rotate(0deg)}
   49.99%{transform:scaleY(1)  rotate(135deg)}
   50%   {transform:scaleY(-1) rotate(0deg)}
   100%  {transform:scaleY(-1) rotate(-135deg)}
}




@media screen and (max-width: 760px) {
    form{
        width: 90%;
    }
}



@media screen and (max-width: 600px) {
    section::before {
        display: block;
        position: fixed;
        background-size: 108% 50%;
        margin: 0;
        top: auto;
        left: auto;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        opacity: 0.05; 
        transform: translate(36%, 45%);
        filter: grayscale(100%);
    }

    h1{
        margin-top: 50px;
        margin-bottom: 30px;
        margin-left: 0;
        text-align: center;
    }

    form label{
        font-size: 16px;
        font-weight: 500;
        height: 34px;
        line-height: 34px;
    }

    .label_and_input{
        flex-direction: column;
        gap: 3px; /******/
    }

    form input, form textarea{
        height: 30px;
    }

    form textarea{
        height: 64px;
    }

    .file_button{
        height: 34px;
        font-size: 16px;
    }
    
    .label_and_input p{
        height: 32px;
    }

    .checkbox_container{
        flex-direction: row;
        gap: 30px;
    }

    input[type="checkbox"]{
        margin-left: 0;
    }

    #file_error {
        color: #cc0000;
        display: none; 
        font-family: "Inter", sans-serif;
        margin: 0;
        font-weight: 500;
        font-size: 14px;
        margin-left: 0;
    }

    .button_container{
        margin-left: 0;
    }

    .submit_button{
        width: 227px;
    } 
}  

@media screen and (max-width: 338px) {
    .g-recaptcha{
        transform: scale(0.90);
        transform-origin: 0 0;
    }
}