:root {
    --color-red: #ea3131;
}
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-white);
}

form .hidden {
    display: none;
}

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

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

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: 600;
    position: absolute;
    top: calc(100% + 3px);
    color: var(--color-red);
    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;
    text-align: center;
    color: var(--color-white);
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
    margin: 50px auto 0 auto;
}
form .form__copyrights a {
    color: var(--color-white);
    font-weight: 700;
    text-decoration: none;
}

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

form .form__controls .btn--submit {
    display: block;
    margin: 0;
    border: none;
    transition: linear .3s;
    position: relative;
    padding: 0;
    background: var(--color-primary);
}
form .form__controls .btn--submit input {
    color:var(--color-white);
background: none;
    border: none;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 54px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
    width: 184px;
}

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-red);
    font-weight: 600;
    font-size: 16px;
}

form[data-status="sent"] .wpcf7-response-output {
    color: #24294e;
    font-weight: 600;
    font-size: 16px;
}

@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: 500px) {
    form input {
        width: 100%;
    }
    form textarea {
        width: 100%;
    }
}
