
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
    height: 100vh;
    background-color: hsl(148, 38%, 91%);

}

.input-error {
    border: 2px solid red;
}


.main {
    margin-top: 100px;
    background-color: white;
    border-radius: 2%;
    padding-left: 30px;
    padding-right: 30px;
    width: 724px;
    


}

/*Contact title*/
.contact-h1 {
    padding: 25px 0px 25px 0px;
    color: hsl(169, 82%, 17%);
    font-weight: 700;
    font-size: 26px;

}

/*Form styles*/

span {
    color: hsl(169, 82%, 27%);
}

.form-title {
    color: hsl(187, 24%, 22%);
    font-size: 12px;
}

.form-input {
    border: 1px solid hsl(186, 15%, 59%);
    margin-right: 20px;
    /* Add space between the form-input divs */
    margin-top: 3px;
    cursor: pointer;
}

.form-input:hover {
    border: 1px hsl(169, 82%, 27%) solid;

}

.form-input:focus,
.form-input-query:focus {
    outline: none;

    border: 1px hsl(169, 82%, 27%) solid;
}

.label-query {
    padding: 8px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.form-input-query:hover {
    background-color: hsl(148, 38%, 91%);
    /* Change background on hover */
    color: hsl(187, 24%, 22%);
    /* Change text color on hover */
}

input[type="radio"] {

    width: 15px;
    height: 15px;
}

input[type="radio"]:checked {
    accent-color: hsl(169, 82%, 27%);
    /* Color cuando está seleccionado */
    cursor: pointer;

}

#checkbox:checked {
    accent-color: hsl(169, 82%, 27%);
}

/* Background color when selected */
.form-input-query.active {
    background-color: hsl(148, 38%, 91%);
    color: hsl(187, 24%, 22%);
}



#general,
#support {
    margin-left: 19px;
    align-items: center;

}

.label-query {
    margin-left: 8px;
    align-items: center;



}

.query-div .form-input:last-child {
    margin-right: 0;
    /* Remove margin from the last .form-input to avoid extra spacing on the right */
}

#check-label,
#checkbox {
    cursor: pointer;
}

/*submit button*/

#submit-btn {
    background-color: hsl(169, 82%, 27%);
    color: hsl(0, 0%, 100%);
    border-radius: 4px;
    border: none;
    padding: 10px;
    margin-bottom: 50px;
    font-size: 12px;
    width: auto;
}

#submit-btn:hover {
    background-color: hsl(169, 82%, 15%);
    color: hsl(0, 0%, 100%);
    transition: ease-in 0.3s;
}

/*Success message*/


.success {
    padding: 18px 23px 5px 23px;
    background-color: hsl(187, 24%, 22%);
    color: hsl(0, 0%, 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    position: fixed; 
    top: 10px; 
    left: 50%; /* Position to the center horizontally */
    transform: translateX(-50%); /* Center align using transform */
    width: auto;
    max-width: 90%; /* Ensure it doesn't get too wide on small screens */
    
   
    
    
}
.flex img, .sent{
    display: inline-flex;
    font-size: 14px;
   
}
.sent{
    font-weight: 700;
}
.completed{
    color: hsl(148, 38%, 91%);
    font-size: 13px;
}



/*Media querys*/
@media (max-width: 608px){
    .main{
        max-width: 450px;
    }
    .query-div{
        flex-direction: column;
        
    }
    .form-input-query{
        margin-right: 0px;
        
    }
}
@media (max-width: 505px){
    .main{
        max-width: 350px;
    }
}
@media (max-width: 375px){
    .main{
        max-width: 280px;
    }
    .contact-h1{
        font-size: 25px;
    }
    .form-title{
        font-size: 10px;
    }
}