﻿.d-none {
    display: none !important;
}

button {
    border-radius: 0;
}

input, button, select, optgroup, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button, input {
    overflow: visible;
}

button, select {
    text-transform: none;
}

select {
    word-wrap: normal;
}

button, [type="button"], [type="reset"], [type="submit"] {
    -webkit-appearance: button;
}

button:not(:disabled), [type="button"]:not(:disabled), [type="reset"]:not(:disabled), [type="submit"]:not(:disabled) {
    cursor: pointer;
}

button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner {
    padding: 0;
    border-style: none;
}

input[type="radio"], input[type="checkbox"] {
    box-sizing: border-box;
    padding: 0;
}

input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"] {
    -webkit-appearance: listbox;
}

input::placeholder {
    color: #444444;
}

textarea {
    overflow: auto;
    resize: vertical;
}

.form__wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.form__wrapper.two {
    max-width: 650px;
}

.form-title {
    font-family: "Montserrat", Sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 45px;
    margin-bottom: 15px;
}

.form-row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -5px;
    margin-left: -5px;
}

@media (min-width: 576px) {
    .form-row>.form-group {
        -ms-flex: 0 0 33.3%;
        flex: 0 0 33.3%;
        max-width: 50%;
        padding-right: 5px;
        padding-left: 5px;
    }
    .form-row.two>.form-group {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
    }
    .form-row>.form-group.sel {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 5px;
        padding-left: 5px;
    }
}

@media (max-width:576px) {
    .form-row>.form-group {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
        padding-right: 5px;
        padding-left: 5px;
        margin-bottom: 20px;

    }
    .form-control.sel {
        width: 100%;
    }
}

@media (max-width:480px) {
    .form-row>.form-group {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .form-control.sel {
        width: 100%;
    }
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    display: block;
    width: 100%;
    height: 38px;
    padding: 8px 8px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    font-variant-numeric: lining-nums;
    color: #444444;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #4f4967;
    border-radius: 5px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control:focus {
    color: #4f4967;
    /* background-color: #fff; */
    border-color: #a45bff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(229, 190, 255, 0.2);
}

.control-label {
    display: none;
}

.custom-control-label {
    display: inline-block;
    margin-bottom: .5rem;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: .25rem;
    font-size: 80%;
    color: #fb6f6f;
}

input[type=checkbox], input[type=radio] {
    box-sizing: border-box;
    padding: 0;
}

textarea.form-control {
    overflow: auto;
    resize: vertical;
    height: auto;
}

/* CSS для секции "Пользовтельское соглашение" */

.custom-control {
    position: relative;
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5rem;
}

.custom-control-input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.custom-control-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: top;
}

.custom-control-label.two {
    color: #4f4967;
}

.custom-checkbox .custom-control-label::before {
    border-radius: .25rem;
}

.custom-control-label::before {
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.custom-control-label::before {
    position: absolute;
    top: .25rem;
    left: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    content: "";
    background-color: #fff;
    border: #adb5bd solid 1px;
}

.custom-control-label::after {
    position: absolute;
    top: .25rem;
    left: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    content: "";
    background: no-repeat 50%/50% 50%;
}

.custom-checkbox .custom-control-input:checked~.custom-control-label::after {
    background-image: url("../images/icon/chec.svg");
}

.custom-control-label::after {
    position: absolute;
    top: .25rem;
    left: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    content: "";
    background: no-repeat 50%/50% 50%;
}

.custom-control-input:checked~.custom-control-label::before {
    color: #fff;
    border-color: #bcc8e4;
    background-color: #bcc8e4;
}

.custom-control-input:focus~.custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.custom-control-input:focus:not(:checked)~.custom-control-label::before {
    border-color: #20b4a8;
}

.custom-control-input:active~.custom-control-label::before {
    color: #fff;
    background-color: #b3d7ff;
    border-color: #b3d7ff;
}

.custom-control-input.two:checked~.custom-control-label.two::before {
    border-color: #4f4967;
    background-color: #4f4967;
}

.form-agreement label {
    font-size: 0.875rem;
    color: #fff;
}

.form-link {
    color: #bcc8e4;
}

.form-link.two {
    color: #8e31b3;
}

/* CSS для индикации полей форме при их валидности */

.form-control.is-valid {
    border-color: #28a745;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center right calc(.375em + .1875rem);
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

textarea.form-control.is-valid {
    padding-right: calc(1.5em + .75rem);
    background-position: top calc(.375em + .1875rem) right calc(.375em + .1875rem);
}

.form-control.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, .25);
}

/* CSS для индикации полей форме при их не валидности */

.form-control.is-invalid {
    border-color: #fb6f6f;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E");
    background-repeat: no-repeat;
    background-position: center right calc(.375em + .1875rem);
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

textarea.form-control.is-invalid {
    padding-right: calc(1.5em + .75rem);
    background-position: top calc(.375em + .1875rem) right calc(.375em + .1875rem);
}

.form-control.is-invalid:focus {
    border-color: #fb6f6f;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, .25);
}

.form-control.is-invalid~.invalid-feedback {
    display: block;
}

/* CSS для индикатора */

.progress {
    display: -ms-flexbox;
    display: flex;
    height: 1rem;
    overflow: hidden;
    font-size: .75rem;
    background-color: #e9ecef;
    border-radius: .25rem;
    margin-bottom: 0.5rem;
}

.progress-bar {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background-color: #007bff;
    transition: width .6s ease;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
}

.form-submit {
    text-align: right;
}

/* CSS для кнопки submit */

button[type=submit] {
    width: 100%;
    font-family: Raleway, sans-serif;
    font-size: 16px;
    line-height: 27px;
    font-weight: 500;
    color: #fff;
    background-color: #4f4967;
    border: 1px solid #4f4967;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 50px;
    transition: all .5s;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.form-submit.two button {
    width: 150px;
    border-radius: 50px;
}

.form-submit.two button:hover {
    background-color: #f4f4ff;
    border-color: #4f4967;
    color: #4f4967;
}

button[type=submit]:hover {
    background-color: #4f496770;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

button[type="submit"]:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}

button[type="submit"]:disabled {
    opacity: 0.65;
}

/* Стили для сообщения об ошибках */

.form-error {
    position: relative;
    padding: .5rem 1rem 0.6rem;
    margin-bottom: 1rem;
    border-radius: .25rem;
    color: #fb6f6f;
    background-color: #fb6f6f0d;
    border: 1px solid #fb6f6f;
}

/* Стили для сообщения об успешной отправки */

.form-result-success {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    color: #fff;
    background: rgba(0, 0, 0, .6);
    font-family: Raleway, sans-serif;
    font-weight: 500;
    font-size: 18px;
    border-radius: 5px;
}

.form-result-success>div {
    position: relative;
    padding: 2.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid #eff4f1;
    z-index: 1001;
    border-radius: 0;
    color: #444444;
    background-color: #eff4f1;
}

.form-result-success a {
    color: #28a745;
    background-color: transparent;
}