html {
    scroll-behavior: smooth;
}

.form-section {
    margin: 50px 0 !important;
}


.form-section .advantages-title {
    font-size: 1.8rem;
}

.form-section,
.contacts-form .input_wrapper,
.form-group.input-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.form-section .form-wrapper {
    width: 100%;
    gap: 15px;
    /* padding: 50px 30px; */
    box-sizing: border-box;
    /* background: #de1a1a; */
}

.form-section .form-wrapper .form-title {
    font-size: 34px;
    margin-bottom: 15px;
    margin-top: 0;
    color: white;
    text-align: center;
}

.form-group.input-wrap {
    width: 100%;
    max-width: 500px;
    gap: 3px !important;
}

.form-group.input-wrap small {
    color: #4b5563;
    text-align: left !important;
    width: 100%;
}

.form-group.input-wrap input {
    width: 100%;
    height: 50px;
    padding: 11px 15px;
    border: 0;
    font-size: 16px;
    box-sizing: border-box;
    background: white;
    border-style: solid;
    border-width: var(--reg-form-field-border-width, 1px);
    border-color: var(--reg-form-field-border-color, rgba(0, 0, 0, 0.2));
    border-radius: 6px !important;
}

.submit-btn-group {
    width: 100%;
}

.form-group.input-wrap input[type="tel"] {
    width: 100%;
}

.form-section .form-wrapper .submit_btn {
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    height: 50px;
    padding: 11px 16px;
    display: flex;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    border: 0;
    background: #2563eb;
    color: white;
    border-radius: 6px;
}

.form_message.error.inactive,
.form_message.success.inactive {
    display: none;
}

.form_message.error.active,
.form_message.success.active {
    display: block !important;
}

.form_message {
    width: 100%;
    min-height: 50px;
    align-content: center;
    box-sizing: border-box;
    padding: 11px 15px !important;
    font-size: 16px !important;
    border-radius: 6px;
}

.form_message.error {
    background-color: #ff7f7f;
    border: 2px dashed #ce0909;
    color: #fff;
}

.form_message.success {
    background-color: #d4ffe0;
    border: 2px dashed #1f6b34;
    color: #000;
}

@media (max-width: 480px) {
    .form_message,
    .form-group.input-wrap input {
        font-size: 14px !important;
    }

    .form-group.input-wrap small {
        font-size: 12px;
    }
}

.form_message.error.inactive {
    display: none;
}

.form_message.error.active {
    display: block;
    color: #0a0a0a;
}

.error-border {
    border-bottom: dashed 1px #ce0909;
}

p.error-msg {
    margin: 0;
    color: red;
    padding: 5px 0 0;
    font-size: 12px;
    font-style: italic;
    position: absolute;
    bottom: -18px;
}

.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
    -webkit-animation-name: fadeIn;
    /* Fade in the background */
    -webkit-animation-duration: 0.4s;
    animation-name: fadeIn;
    animation-duration: 0.4s;
}

.modal-content {
    position: fixed;
    left: 50%;
    top: 20%;
    transform: translate(-50%, 0);
    background-color: #fefefe;
    max-width: 400px;
    min-height: 300px;
    -webkit-animation-name: slideIn;
    -webkit-animation-duration: 0.4s;
    animation-name: slideIn;
    animation-duration: 0.4s;
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    padding: 2px 16px;
    background-color: #ff1838;
    color: white;
}

.modal-body {
    padding: 16px;
    text-align: center;
}

/* Add Animation */
@-webkit-keyframes slideIn {
    from {
        opacity: 0;
    }

    to {
        bottom: 0;
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
    }

    to {
        bottom: 0;
        opacity: 1;
    }
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* preloader */
.preloader {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 99;
    width: 100%;
    height: 100%;
    overflow: visible;
    /* background: #fbfbfb url("//cdnjs.cloudflare.com/ajax/libs/file-uploader/3.7.0/processing.gif") no-repeat center center; */
    background: #fbfbfb url("../images/tenor.gif") no-repeat center center;
    opacity: 1;
    transition: opacity 2s linear;
}

.preloader-visible {
    visibility: visible;
    opacity: 1;
    transition: opacity 2s linear;
}

.preloader-hidden {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 2s, opacity 2s linear;
}