form {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

form .form {
    width: 100%;
}

form .form__row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 40px 0;
}

form .form__row--full {
    width: 100%;
}

form .form__row--full .form__group {
    width: 100%;
}

form .form__row .form__group {
    width: calc(50% - 34px);
}

form .form__row .form__group--full {
    width: 100%;
}

form label {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    line-height: 50px;
    pointer-events: none;
    transition: linear .3s;
    color: var(--color-white);
    font-size: 18px;
}

form label span {
    font-size: 14px;
    position: absolute;
    top: -3px;
    right: -10px;
}

form label.focused {
    font-size: 13px;
    line-height: 20px;
    top: -15px;
    font-weight: 500;
    color: var(--color-primary);
}

form .hidden {
    display: none;
}

form input {
    width: 100%;
    border: none;
    padding: 0;
    border-bottom: 2px solid var(--color-primary);
    background: none;
    z-index: 5;
    font-size: 17px;
    font-weight: 400;
    color: var(--color-white);
    line-height: 50px;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    border-radius: 0;
    font-family: "Raleway", sans-serif;
}

form textarea {
    width: 100%;
    height: 210px;
    font-size: 17px;
    font-weight: 400;
    resize: none;
    border: none;
    padding: 14px 0 0 0;
    border-bottom: 2px solid var(--color-primary);
    background: none;
    color: var(--color-white);
    z-index: 5;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    border-radius: 0;
    font-family: "Raleway", sans-serif;
}

form .wpcf7-spinner {
    display: none;
}

form .wpcf7-form-control-wrap {
    width: 100%;
    height: 100%;
    display: block;
}

form .wpcf7-not-valid-tip {
    width: 100%;
    font-size: 13px;
    font-weight: 400;
    position: absolute;
    top: calc(100% + 5px);
    color: var(--color-white);
    right: 0;
    text-align: right;
}

form .wpcf7-response-output {
    border: none !important;
    width: 100% !important;
    text-align: center !important;
    margin: 20px 0 0 0 !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: black;
}

form .form__copyrights {
    width: 100%;
    max-width: 870px;
    color: var(--color-white);
    font-size: 12px;
    line-height: 1.6;
    font-weight: 400;
    margin: 32px auto;
}

form .form__copyrights a {
    color: var(--color-white);
    font-weight: 700;
    text-decoration: none;
}

form .form__controls {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
}

form .form__controls .btn--submit {
    display: block;
    width: auto;
    margin: 0;
    border: none;
    transition: linear .15s;
    position: relative;
    padding: 0;
    background: var(--color-primary);
}

form .form__controls .btn--submit:hover {
    background: var(--color-white);
}

form .form__controls .btn--submit span:nth-child(1) {
    display: block;
}

form .form__controls .btn--submit input {
    color: var(--color-white);
    background: none;
    border: none;
    text-align: center;
    font-size: 23px;
    line-height: 1;
    font-weight: 400;
    padding: 14px 20px;
    cursor: pointer;
    min-width: 150px;

    transition: linear .15s;
}

form .form__controls .btn--submit:hover input {
    color:var(--color-primary);
}
form .form__controls .btn--submit > span {
    z-index: 100;
}

form .form__controls .btn--submit:hover::before {
    width: 100%;
}

form[data-status="invalid"] .wpcf7-response-output {
    color: var(--color-white);
    font-weight: 400;
    font-size: 16px;
}

form[data-status="sent"] .wpcf7-response-output {
    color: var(--color-white);
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    text-align: left;
}

.form__row--checkbox .form__group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
}
.form__row--checkbox .form__group:nth-child(1){
    margin: 0!important;
}
.form__row--checkbox .wpcf7-form-control-wrap {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;

}

.form__row--checkbox .wpcf7-form-control {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap:32px;
}

.wpcf7-list-item label {
    position: relative;
    top: initial;
    left: initial;
    pointer-events: initial;
    cursor: pointer;
}
.wpcf7-list-item label:hover {
    text-decoration: underline;
}
.wpcf7-list-item input {
    display: none;
}
.form__row--checkbox  .wpcf7-list-item{
    margin:0;
}
.form__row--checkbox .wpcf7-list-item-label {
    display: block;
    position: relative;
    top: initial;
    right: initial;
    padding-left:32px;
    font-size:18px;
}
.form__row--checkbox .wpcf7-list-item-label::before{
    content:'';
    width: 16px;
    height: 16px;
    border:2px solid var(--color-primary);
    position: absolute;
    top:calc(25px - 10px);
    left:0;
}
.form__row--checkbox p {
    font-size:18px;
}
.form__row--checkbox p span  {
    font-size: 14px;
    position: absolute;
    top: -3px;
    right: -10px;
}
.form__row--checkbox input:checked ~ .wpcf7-list-item-label::after{
    content:'';
    width: 12px;
    height: 12px;
    background:var(--color-primary);
    position: absolute;
    top:calc(25px - 6px);
    left:4px;
}
@media all and (max-width: 1024px) {
    form label {
        font-size: 16px;
    }
    .form__row--checkbox p {
        font-size:16px;
    }
    .form__row--checkbox .wpcf7-list-item-label{
        font-size:16px;
    }
    form .form__copyrights {
        width: 100%;
        text-align: center;
    }
    form .form__controls{
        align-items: center;
    }
}

@media all and (max-width: 900px) {
    form .form__row {
        flex-direction: column;
    }

    form .form__row .form__group {
        width: 100%;
    }

    form .form__row .form__group:nth-child(1) {
        margin: 0 0 40px 0;
    }

    form .form__row .form__group--full {
        width: 100%;
        margin: 0;
    }
}


@media all and (max-width: 768px){
    .form__row--checkbox .form__group{
        flex-direction: column;
    }

}
@media all and (max-width: 500px) {
    form input {
        width: 100%;
    }

    form textarea {
        width: 100%;
    }
    .form__row--checkbox .form__group{
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
        gap:18px;
    }
    .form__row--checkbox .wpcf7-form-control {
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
        gap:0;
    }

}
