.form-container {
    width: 80%;
    height: auto;
    position: relative;
    top: 0%;
    left: 50%;
    transform: translate(-50%, 0%);
}
.form-box {
    padding: 25px;
    margin: 15px 0 50px;
    border: 1px solid #e7e8ff;
    background-color: #fff;
    box-shadow: 0 5px 40px 0 rgba(80, 101, 142, 0.08);
}
.input-group {
    margin: 30px 0;
}
.input-item {
    width: calc(50% - 6px)
}
.input-item + .input-item {
    margin-left: 12px;
}

.input-item.full {
    border-radius: 30px;
    width: 100%;
    flex-basis: 100%;
}
.input-item + .input-item {
    margin-left: 12px;
}
.input-item select {
    position: relative;
    overflow: hidden;
    -moz-appearance: none;
    appearance: none;
    -webkit-appearance: none;
    background: transparent url(../images/icon-arrow-down-grey.svg) no-repeat calc(100% - 15px) center;
}
.input-item select:after {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #f00;
    position: absolute;
    top: 40%;
    right: 5px;
    content: "";
    z-index: 98;
}
.input-item select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #000;
}
input[type='number'] {
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.time {
    margin-top: 0;
}
.time span {
    font-size: 13px;
}
.phone-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    overflow: hidden;
}
.phone-wrapper input, .phone-wrapper select {
    border: none;
    border-radius: 0;
    outline: none;
}
.phone-wrapper span.divider {
    margin: 0 5px;
}
.phone-wrapper select, .phone-wrapper select option {
    color: #495057;
}
.phone-wrapper select.hour {
    padding-right: 5px;
}
.phone-wrapper select.minutes {
    padding: 0 5px;
}
.phone-wrapper select.day-night {
    padding: 0 5px;
}
.phone-wrapper select option {
    margin: 10px;
}
.btn {
    display: block;
    margin: 20px 0 10px;
}

.modal-backdrop {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url(../images/shape-a.png);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 100%;
    background-color: rgba(247, 249, 254, 0.9);
}
.modal-show {
    visibility: visible;
    opacity: 1;
}
.hide {
    visibility: hidden;
    opacity: 0;
    height: 0;
}
.modal-backdrop .form-container {
    width: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.modal-backdrop .form-box, .modal-backdrop .success-message  {
    padding: 25px;
    border: 1px solid #e7e8ff;
    background-color: #fff;
    box-shadow: 0 5px 40px 0 rgba(80, 101, 142, 0.08);
}
.modal-backdrop .input-group {
    margin: 30px 0;
}
.modal-backdrop .input-item {
    width: calc(50% - 6px)
}
.modal-backdrop  .input-item.full {
    border-radius: 30px;
    width: 100%;
    flex-basis: 100%;
}
.input-item + .input-item {
    margin-left: 12px;
}
.modal-backdrop  .input-item select {
    position: relative;
    overflow: hidden;
    -moz-appearance: none;
    appearance: none;
    -webkit-appearance: none;
    background: transparent url(../images/icon-arrow-down-grey.svg) no-repeat calc(100% - 15px) center;
}
.modal-backdrop  .input-item select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #000;
}
.modal-backdrop  input[type='number'] {
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
}

.modal-backdrop  input::-webkit-outer-spin-button,
.modal-backdrop  input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.modal-backdrop  .time {
    margin-top: 0;
}
.time span {
    font-size: 13px;
}
.number-wrapper {
    display: flex;
}
.number-code {
    width: 25%;
    margin-right: 3px;
}
.phone-wrapper, .time-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: stretch;
    border: 1px solid #ced4da;
    overflow: hidden;
}
.phone-wrapper {
    padding: 0;
}
.phone-wrapper .country-code {
    padding: 0.375rem 0.75rem;
    border-right: 1px solid #ced4da;
    margin-right: 5px;
}
.phone-wrapper-focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.phone-wrapper input, .time-wrapper select {
    border: none;
    border-radius: 0;
    outline: none;
    width: 100%;
}
.time-wrapper span.divider {
    margin: 0 5px;
}
.time-wrapper select, .time-wrapper select option {
    color: #495057;
}
.time-wrapper select.hour {
    padding-right: 5px;
}
.time-wrapper select.minutes {
    padding: 0 5px;
}
.time-wrapper select.day-night {
    padding: 0 5px;
}
.time-wrapper select option {
    margin: 10px;
}
.btn {
    display: block;
    margin: 20px 0 10px;
}
.success-message {
    display: none;
    text-align: center;
    font-weight: 700;
    font-size: 28px;
}
.success-message span.text {
    color: #2a81ea;
    font-size: 18px;
}
span.error {
    color: #ff3346;
    font-weight: 500;
}

@media screen and (max-width: 576px) {
    .form-box {
        padding: 12px;
    }
    .input-phone-wrapper {
        flex-basis: 100%;
        width: 100%;
    }
    .input-time-wrapper {
        flex-basis: 100%;
        width: 100%;
    }
    .input-time-wrapper + .input-time-wrapper {
        margin-left: 0;
    }

}
