body{
    background-color: var(--bg-color) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header{
    width: 100%;
    height: 40vh;
    min-height: 300px;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    background-image: url(../assets/img/header_servizi_bg.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    gap: 20px;
}

.header .title,
.header .subtitle{
    color: var(--bg-color);
    text-align: center;
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.219);
}

.header .title {
    font-weight: 600;
    font-size: 40px;
}

.header .subtitle{
    font-weight: 500;
    font-size: 20px;
    width: 90%;
    max-width: 450px;
}

.header .line{
    width: 100px;
    height: 5px;
    border-radius: 10px;
    background-color: var(--bg-color);
    box-shadow: 0px 0px 10px 3px rgba(255, 255, 255, 0.158);
}

section.form{
    width: 95%;
    max-width: 900px;
    
    height: fit-content;
    min-height: 100vh;

    margin-top: 50px;
    
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    

    padding-bottom: 100px;

    /* background-color: rgba(0, 0, 0, 0.103); */
}

.form .title{
    width: fit-content;
    font-size: 30px;
    padding: 10px 17px;
    font-weight: 600;
    margin-bottom: 30px;
}


.form .input{
    width: 100%;
    height: 50px;
    background-color: blue;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 50px;
    box-shadow: 0px 0px 0px 2px #989898 inset;
    background-color: hsla(0, 0%, 85%, 0.37);
    overflow: hidden;
}

.form .input .icon{
    color: rgba(0, 0, 0, 0.63);
    font-size: 22px;
    margin-inline: 20px 15px;
}

.form .input input {
    flex: 1;
    margin-right: 20px;
    border: none;
    background-color: transparent !important;
    outline: none;
    height: calc(100% - 10px);
    font-size: 17px;
}
.form .input:focus-within {
    box-shadow: 0px 0px 0px 2px var(--first-color) inset;
    background-color: #d8b83642;
}

.form .input input::placeholder{
    color: rgba(0, 0, 0, 0.63);
    font-size: 17px;
}

.form .line{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.form .textarea{
    width: 100%;
    border: none;
    outline: none;
    margin: 16px;
    margin-top: 10px;
    font-size: 17px;
    background-color: transparent;
    height: fit-content;
    min-height: 150px;
}

.form .textarea::placeholder{
    color: rgba(0, 0, 0, 0.63);
    font-size: 17px;
}
.form .input.big{
    height: fit-content;
    border-radius: 20px !important;
}

.form .line:nth-child(1){
    background-color: red;
}


.form .file-uploader{
    width: 100%;
    height: fit-content;
    background-color: #D5D5D5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding-block: 35px;
    gap: 10px;
    user-select: none;
    cursor: pointer;
}

.form .file-uploader:hover{
    opacity: 0.8;
}

.form .file-uploader .icon{
    font-size: 50px;
    margin-left: 30px;
    color: rgba(0, 0, 0, 0.781);    
}

.form .file-uploader .title{
    font-weight: 500;
    font-size: 20px;
    color: rgba(0, 0, 0, 0.781);    
}

.form .selection-box{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.form .selection-box .title{
    font-weight: 500;
    font-size: 20px;
    margin: 0;
    padding: 0;
    height: fit-content;
    user-select: none;
}

.form .selection-box .selection{
    width: 100%;
    height: 55px;
    background-color: #D9D9D9;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0px;
    border-radius: 10px;
}

.form .selection-box .selection button{
    flex: 1;
    font-size: 18px;
    margin: 5px;
    border: 2px solid transparent;
    border-radius: 10px;
    background-color: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.form .selection-box .selection button:hover{
    border: 2px solid #C8AA32 !important;
}

.form .selection-box .selection button.sel{
    border: 2px solid black;
}

.form .privacy{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.form .privacy input{
    transform: scale(1.8);
}

.form .privacy label{
    font-weight: 500;
    user-select: none;
    cursor: pointer;
}

.form .privacy label a{
    color: #3865FB;
    text-decoration: underline;
}
.form .privacy label a:hover{
    opacity: 0.5;
}

.form .submit{
    width: 100%;
    height: 50px;
    font-size: 20px;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    background-color: var(--first-color);
    cursor: pointer;
    transition: all 0.2s;
}

.form .submit:hover{
    width: 98%;
}

.loader-box{
    display: none;

    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    background-color: rgba(0, 0, 0, 0.877);
    color: var(--bg-color) !important;
}

@keyframes loading {
    from{
        transform: rotate(-180deg);
    }
    to{
        transform: rotate(180deg);
    }
}

.loader-box i{
    font-size: 100px;
}

.loader-box i.loader{
    animation: loading infinite 2s;
}

.loader-box .loader-text a{
    color: rgb(70, 144, 230);
    font-size: 20px;
}

.loader-text{
    font-size: 30px;
    font-weight: 600;
    text-align: center;
}



@media screen and (max-width: 588px) {
    .form .line{
        flex-direction: column;
    }

    .form .title {
        font-size: 25px;
        padding: 10px 17px;
    }

    section.form{
        width: calc(100% - 40px);
        
    }

    .form .file-uploader {
        padding-block: 10px;
        gap: 10px;
    }

    .form .file-uploader .title {
        font-size: 16px;
    }

    .form .selection-box .title {
        font-size: 18px;
    }

    .form .selection-box .selection button {
        font-size: 16px;
    }

    .form .privacy label {
        font-weight: 500;
        font-size: 13px;
    }

}