#modal {
    display: none;
    background: rgba(255, 255, 255, 1) url('../bg2.png') no-repeat center center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12;
    overflow: auto;
    width: 100%;
    padding: 0 15px;
}

#modal .container {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
}
.request__congr {
    margin-bottom: 20px;
    text-align: center;
}
.request__block {
    background: #fff;
    display: flex;
    
    align-items: center;
    gap: 15px;

    border-radius: 5px;
    box-shadow: 0 5px 8px rgba(88, 88, 88, 0.4);
    padding: 15px;
}
.request__tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    position: relative;
    max-width: 900px;
    margin-inline:auto;margin-bottom: 20px
}

.request__tabs::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 14px;
    width: calc(100% - 26px);
    height: 4px;
    background: #995aff
}
.request__tabs.first_step::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 14px;
    width: calc(100% - 26px);
    height: 4px;
    background: #995aff
}

.request__tabs::after {
    content: "";
    position: absolute;
    top: 20px;
    right: 13px;
    width: 32%;
    height: 4px;
    background: #7A7A7A
}

.request__tabs.first_step::after {
    content: "";
    position: absolute;
    top: 20px;
    right: 13px;
    width: 65%;
    height: 4px;
    background: #e8e8e8
}

@media (max-width: 500px) {
    .request__tabs::after {
        width:28%
    }
}

@media (max-width: 600px) {
    .request__tabs {
        max-width:90%
    }
}

.request__tab {
    z-index: 2;
    flex: 0 1 33.333%;
    width: 100%;
    color: #000;
    font-weight: 500;
    font-size: 16px
}

.request__tab:nth-child(1) .request__tab-icon {
    margin-left: 13px
}

.request__tab:nth-child(2) {
    display: flex;
    flex-direction: column;
    align-items: center
}

.request__tab:nth-child(3) {
    display: flex;
    flex-direction: column;
    align-items: end
}

.first_step .request__tab:nth-child(2) .request__tab-icon,
.request__tab:nth-child(3) .request__tab-icon {
    margin-right: 10px;
    background: #e8e8e8
}

.request__tab:nth-child(3) .request__tab-icon {
    margin-right: 0;
}

.request__tab:nth-child(3) p {
    margin-right: 5px;
}

.request__tab p {
    white-space: nowrap
}

.first_step .request__tab-icon {
    background: #995aff;
}
.request__tab-icon {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background: #995aff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 5px
}
.request__products {
    width: 40%;
}
.request__product {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.request__product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain
}

.request__product-name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 5px;
    text-align: center;
}

.request__product-name span {
    display: block;
    color: #56299b
}

.request__order {
    padding-bottom: 10px;
    width: 60%;
    border-top: 1px solid #5C0D9B;
    border-bottom: 1px solid #5C0D9B;
    padding: 15px 0;
}

.request__order-title {
    font-size: 20px;
    font-weight: 500;
    width: 100%;
    margin-bottom: 15px
}

.request__order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px
}

.request__form .button {
    margin-top: 30px
}

form {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 8px rgba(88, 88, 88, 0.4);
    padding: 15px;
    margin-top: 20px;
}
form .field {
    position: relative;
    margin-bottom: 20px;
}

form .field-title {
    padding: 0 0 20px;
    font-size: 15px;
    display: block;
}

form label {
    position: absolute;
    left: 20px;
    top: -5px;
    font-size: 12px;
    z-index: 30;
    padding-left: 10px;
    padding-right: 10px;
    width: auto;
    white-space: nowrap;
    opacity: 1;
    background: #fff;
}

form input {
    outline: none;
    width: 100%;
    height: 48px;
    margin: 0;
    background: #fff;
    border: none;
    font-size: 16px !important;
    color: #000;
    padding: 10px 8px 10px;
    /*margin-bottom: 20px;*/
    border-radius: .375rem;
    border: 1px solid #5C0D9B;
}

form select {
    border-radius: .375rem;
    border: 1px solid #5C0D9B;
    width: 100%;
    height: 4em;
}

form input.error,
form select.error {
    border-color: #ff0000;
}

form label.error {
    color: #ff0000;
}


form input[type="tel"] {
    padding-left: 3.8rem;
}

#gender-error {
    opacity: 0;
}

.country-input__value {
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    padding-left: 3rem;
    font-size: 1rem;
}

.country-input__value:before {
    content: "";
    display: block;
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    float: left;
    width: 1.8rem;
    height: 1.4rem;
    background: url(../65.png) no-repeat;
    background-size: 100% 100%;
}

form button {
    display: block;
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 500;
    line-height: 140%;
    text-transform: uppercase;
    padding: 15px 0;
    box-shadow: 0 7px 11px 0 rgba(12, 28, 228, .2);
    width: 100%;
    border-radius: 10px;
    text-align: center;
    background: linear-gradient(89deg, #141f31, #243b55);
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease 0s;
    max-width: 340px;
    margin: 0 auto;
}
form button[disabled] {
    background: #ccc;
}

form button:hover {
    background: #fa4311;
    background: linear-gradient(-180deg, #232526, #414345);
    box-shadow: 0 0 0 3px #7459f2;
}

form .group-field {
    display: flex;
    gap: 15px;
}

form .group-field.w33 > .field {
    width: calc(33% - 7.5px);
}

form .group-field .field {
    width: calc(50% - 7.5px);
}

form .field.w33 {
    width: 33%;
}
form .field.w33 ~ .field {
    width: 100%;
}

form .choice-gender {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #F5F5F5;
    position: relative;
    line-height: 1;
    font-size: 18px;
    top: 0;
    left: 0;
    text-align: center;
    height: 4em;
    border-radius: .375rem;
    border: 1px solid #5C0D9B;
    transition: all .3s;
}

form .choice-gender:hover {
    cursor: pointer;
    background: linear-gradient(89deg, #141f31, #243b55);
    color: #fff;
}

form input[name="gender"]:checked ~ .choice-gender {
    background: linear-gradient(89deg, #141f31, #243b55);
    color: #fff;
}

form input[name="gender"] {
    opacity: 0;
    visibility: hidden;
    position: absolute;
}

@media (max-width: 460px) {
    form .group-field {
        flex-wrap: wrap;
        row-gap: 0;
    }
    form .group-field.w33 > .field,
    form .group-field .field {
        width: 100%;
    }
    form .group-field.gender-block .field {
        width: calc(50% - 7.5px);
    }
}