
/* form */


.form_contatti_cnt{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    width: 100%;
    align-items: center;
    justify-content: center;
}
.form_cnt {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}
.form-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 0;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: .5rem 0;
}
.form-row-button {
    display: flex; flex-direction: row; justify-content: flex-start; align-items: center;
}
.form-field-submit {
    display: flex; flex-direction: row; justify-content: flex-start; align-items: center;
}
.form-mess {
    font-size: 1rem;
    display: block;
    padding: 1.3em 1.5em;
    background-color: var(--violet);
    color: var(--white);
    border-radius: 25px;
    margin-bottom: 1.5em;
}
.form-mess-ko{
    background-color: var(--error);
}
.form-mess-ok{
    background-color: var(--success);
}
.form-mess-title {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0 0 1rem 0;
}
.form-mess ul {
    list-style: none;
    padding: 0 .5em .5em .5em;
}
.form-mess ul li {
    padding: .1rem 0;
    margin: 0;
    line-height: 1.2;
}


form {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}
.form_row {
    display: flex;
    gap: 1rem;
    width: 100%;
    padding: .3rem 0;
}
.form_row_nospace {
    display: flex;
    gap: 0;
    width: 100%;
    padding: .3rem 0;
}
.form_field {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    text-align: left;
    padding: .2rem .5rem;
}
.form_row_nospace .form_field{
    gap: 0;
    padding: .2rem 0;
}

.form_field_mid {
    width: 66%;
    
}
.form_field_min {
    width: 33%;
}
.form_field.form_field_input_w_button{
    display: grid;
    grid-template-columns: 1fr 50px;
    gap: 0;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 27px;
    height: 60px;
    padding: 3px 5px 3px 10px; 
    box-sizing: border-box;
}
.form_field.form_field_input_w_button input{
    border: none;
    background-color: var(--gray-50);
    color: var(--primary);
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
    padding: 2px 10px;
    box-sizing: border-box;
}
.form_field.form_field_input_w_button input:focus {
    outline: none;
}


.radio-button{
    display: flex;
    gap: .5rem;
    align-items: center;
    justify-content: flex-start;
    padding: .5rem 0;
    white-space: nowrap;
}

.form_field_link{
    text-align: right;
    padding: .3rem 0;
}
    .form_field_link a{
        padding: .2rem 0;
        color: var(--secondary);
        font-weight: 400;
        text-decoration: none;
    }
    .form_field_link a:hover{
        color: var(--secondary);
        text-decoration: underline;
    }
.label,
label {
    font-size: 1.3em;
    color: var(--text-primary);
    text-transform:capitalize;
    padding: .2rem 0;
}
.label a, label a{ text-decoration: underline; }

input[type=checkbox], input[type=radio] {
    width: 25px;
    margin: .2rem 0 0
}

input[type=checkbox]+label, input[type=radio]+label {
    font-size: .75rem;
    font-weight: 400;
    color: #494b50;
    padding: 0 0
}
.radio-as-button-list {
    display: flex;
    gap: .5rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding-top: .7rem

}
.radio-as-button-list input[type=radio] {
    display: none;
}
.radio-as-button-list input[type=radio] + label {
    padding: 2px 5px;
    cursor: pointer;
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 5px;
  }
  .radio-as-button-list input[type=radio]:checked + label {
    background-color: var(--gray-100);
  }

.form_field_chekbox {
    gap: .5rem;
    align-items: flex-start;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding-top: .7rem
}



.form_field_chekbox label {
    width: calc(100% - 25px)
}



input,select,textarea {
    box-sizing: border-box;
    width: 100%;
    padding: .5rem; 
    border: none;
    border-radius: .15rem;
    font-size: 1.2em;
    font-family: inherit;
    background-color: var(--bg-light);
    color: var(--dark-color);
}

input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 60px var(--gray-50) inset !important;
    background-color: var(--gray-50);
    background-clip: content-box !important;
}



@media (min-width: 768px) {
    .form-row {
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 1rem;
        padding: 0 0;
    }
    .form-field {
        width: 100%;
    }
}


/* .form_row{ display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: var(--spacing-sm); }
.form_row.form_row-center{ justify-content: center; }
.form_field{ display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: var(--spacing-sm); }
input, textarea{ width: 100%; border: 1px solid var(--dark-color); padding: var(--spacing-xs); border-radius: var(--spacing-xs); } */


