@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');




section{
    min-height: 100vh;
    color: #1F2937;
    display: flex;
    flex-direction: column;
    align-items: center;
}


section h1{
    font-size: 24px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

section .contents{
    font-size: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 82%;
    max-width: 1400px;
    margin-top: 3%;
    margin-bottom: 10%;
}

section .content{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.title_mobile{
    display: none;
}

section .content .title{
    font-weight: 700;
}

section .content p{
    max-width: 617px;
    font-weight: 500;
    line-height: 24px;
}

section img{
    width: 454px;
    height: 207px;
    object-fit: cover;
    border-radius: 8px;
    z-index: 0;
}

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;
}			  

@media screen and (max-width: 1080px) and (min-width: 850px) {
    section img{
        display: none;
    }
}

@media screen and (max-width: 850px) {
    section h1{
        margin-top: 45px;
    }
    
    section .contents{
        height: auto;
        max-height: none;
        margin-top: 3%;
        width: 92%;
        max-width: none;
        gap: 30px;
    }

    section .content{
        flex-direction: column;
        gap: 25px;
    }

    .container div:nth-child(1) {
        flex-direction: column-reverse;
    }

    .title_mobile{
        display: block;
        margin: 0;
        text-align: start;
        width: 100%;
    }

    section .content p{
        margin: 0;
        max-width: none;
    }

    section .content .title{
        display: none;
    }

    section img{
        width: 100%;
        height: 207px;
        object-fit: cover;
        border-radius: 8px;
    }
}

