.form {
    height: 620px;
    background-image: url('../img/form/form-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.form.review {
    background-image: url('../img/form/review_bg.jpg');
}

.form .form-app {
    width: 50%;
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 40px 0 40px 20px;
    box-sizing: border-box;
}

.form .bg-black {
    position: absolute;
    width: 50%;
    top: 0;
    right: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.form h2 {
    font-style: italic;
    font-size: 26px;
    font-weight: 500;
}

.form p {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 200;
}

.form .input-group {
    margin-bottom: 10px;
    display: flex;
    justify-content: end;
    gap: 10px;
}

.form .input-group input,
.form .input-group textarea,
.form .input-group select {
    max-width: 338px;
    width: 100%;
    box-sizing: border-box;
    outline: 0;
    border: 0;
    border-radius: 5px;
    padding: 10px;
    font-family: "Ysabeau", sans-serif;
    background-color: #ffede4;
}

.form .input-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form .custom-select-wrap {
    position: relative;
    max-width: 338px;
    width: 100%;
}

.form .custom-select-wrap::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 43px;
    background-color: #E74B3E;
    border-radius: 5px;
    pointer-events: none;
}

.form .custom-select-wrap::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #FFEDE480;
    pointer-events: none;
    z-index: 1;
}

.form.review h2 {
    margin-bottom: 15px;
}

.form.review .input-group {
    margin-bottom: 19px;
}

.form.review .input-group textarea {
    height: 197px;
}

.form.review .input-group + .input-group {
    margin-bottom: 16px;
}

.form .form-send {
    display: flex;
    max-width: 338px;
    margin-left: auto;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
}

.form .form-send p {
    font-size: 14px;
    margin: 0;
}

.form button {
    font-family: "Ysabeau", sans-serif;
    outline: 0;
    border: 0;
    padding: 6px 16px;
    border-radius: 5px;
    font-size: 18px;
    color: #fff;
    background-color: #E74B3E;
}

@media screen and (max-width: 1060px) {
    .form {
        height: auto;
    }

    .form .bg-black {
        width: 100%;
    }

    .form .form-app {
        width: 100%;
        padding: 40px 0 40px 0;
    }

    .form .input-group input,
    .form .input-group textarea,
    .form .input-group select {
        max-width: unset;
    }

    .form .input-group {
        flex-direction: column;
        text-align: left;
        margin-bottom: 10px;
        gap: 0;
    }

    .form .form-send {
        max-width: unset;
        margin-left: unset;
    }

    .form .custom-select-wrap {
        max-width: unset;
    }
}
