/* =============================== */
/*  PAGE CONTACT
/* =============================== */

.contact-form-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 3rem;
    color: var(--red);
}

.form-wrapper {
    max-width: 700px;
    margin: auto
}

.form-wrapper-blue {
    background-color: #fff;
    border-radius: 15px;
    padding: min(40px, 5%);
}

.form-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.form-item  {
    position: relative;
    width: 100%;

    & p {
        margin-bottom: 0;
    }

    & label {
        position: absolute;
        top: 0;
        left: 0;
        transform: translateY(40px) translateX(0);
        padding: 0 10px;
        font-size: 0.8rem;
        z-index: 1;
        margin-bottom: 0;
        transition: 0.35s ease-in-out;
    }
}

.form-item-50 {
    width: calc(50% - 5px);
}

/* ACTIVE STATE */
.form-item.active label {
    top: 0;
    transform: translateY(20px) scale(0.85) translateX(-7px);
    font-size: 0.75rem;
    opacity: 0.8;
}

.form-item-100 {
    width: 100%;
    margin-top: 10px;

    & label {
        margin-bottom: 0;
        padding-left: 15px;
    }
}


.form-wrapper label,
.form-wrapper p {
    font-size: 0.8rem;
}

input, textarea {
    width: 100%;
    border-radius: 10px;
    background-color: #f1f1f1;
    border: none;
    padding: 5px 10px;
    box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.12);
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border: 1px solid var(--light-grey);
}

.form-row input {
    height: 60px;

    &:focus-visible {
        transform: scale(1.01);
        box-shadow: 0 4px 15px 0 rgba(34, 44, 94, 0.2);
    }
}

textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 20px;
    border-radius: 15px;
    padding: 15px;
    &:focus-visible {
        transform: scale(1.01);
        box-shadow: 0 4px 15px 0 rgba(34, 44, 94, 0.407);
    }
}

.wpcf7 input,
.wpcf7 textarea {
    transition: 0.3s ease-in-out;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    outline: none;
}

.submit-row p {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wpcf7-not-valid-tip {
    background-color: rgb(185, 0, 0);
    color: #fff;
    padding-inline: 10px;
    border-radius: 5px;
}

.wpcf7-response-output {
    background-color: #ffb027;
    color: #000;
}

.wpcf7 form.sent .wpcf7-response-output {
    background-color: #0f8828;
    border-color: #0f8828 !important;
    color: #fff;
}


/* ACCEPTANCES */
.form-acceptances {
    padding-left: 30px;

    & p {
        margin-bottom: 0; 
        font-size: 0.8rem;
    }

    & input[type='checkbox'] {
       width: fit-content;
    }
}

.form-acceptances .wpcf7-list-item {
    margin: 0;
}


.form-visible {
    position: relative;
    margin-left: 30px;
    /*margin-bottom: 15px;*/
}


.wpcf7-list-item {
    margin: 0 !important; 
}

.form-acceptances label {
    transform: translateY(0) !important;
}

.form-visible p {
    position: relative;
    display: block;
}


.form-marketing {
    margin-bottom: 10px
}

.form-visible  .wpcf7-acceptance {
    padding-left: 0 !important;
}


.form-acceptances input[type='checkbox'] {
    position: absolute;
    left: -30px;
    top:5px;
}

.form-acceptances .wpcf7-form-control-wrap {
    height: auto !important;
}

/* SUBMIT BUTTON */

.submit-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.submit-wrapper button {
    border: none;
}


