.training__registration {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: #fff;
    z-index: 1001;
    overflow-y: auto;
}

.training__registration .training__registration-container {
    position: relative;
    max-width: 950px;
    width: 100%;
    margin: 0 auto;
    padding: 80px 15px 30px 15px;
}

.training__registration .training__registration-title {
    text-align: center;
}

.training__registration .training__registration-title h2 {
    margin: 0;
    font-size: var(--title-size-md);
    line-height: 1.3;
    font-weight: 500;
}

.training__registration .training__registration-form {
    width: 100%;
    max-width: 328px;
    margin: 64px auto 0;
}

.training__registration .training__registration-form.processing {
    position: relative;
    pointer-events: none;
}

.training__registration .training__registration-form.processing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, .5);
    z-index: 1;
}

.training__registration .training__registration-form.processing::after {
    content: '';
    position: absolute;
    display: inline-block;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    border: 5px solid var(--accent-color);
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
    z-index: 1;
}

@-webkit-keyframes rotation {
    0% {
        -webkit-transform: translate(-50%, -50%) rotate(0deg);
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        -webkit-transform: translate(-50%, -50%) rotate(360deg);
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
@keyframes rotation {
    0% {
        -webkit-transform: translate(-50%, -50%) rotate(0deg);
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        -webkit-transform: translate(-50%, -50%) rotate(360deg);
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.training__registration .training__registration-fields {
    margin-bottom: 16px;
}

.training__registration .training__registration-row {
    position: relative;
    margin-bottom: 16px;
}

.training__registration .training__registration-row:last-child {
    margin-bottom: 0;
}

.training__registration .training__registration-input {
    display: block;
    margin: 0;
    width: 100%;
    height: 48px;
    padding: 20px 12px 4px;
    font-size: 14px;
    font-weight: 500;
    color: #030d17;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #d4dbe2;
    outline: none;
    transition: background-color .25s ease;
}

.training__registration .training__registration-input:hover {
    background-color: #f6f7f8;
}

.training__registration .training__registration-input:focus {
    background-color: #fff;
}

.training__registration .training__registration-row--phone .iti--allow-dropdown {
    width: 100%;
}

.training__registration .training__registration-row--phone input.iti__tel-input {
    width: 100%;
    max-width: calc(100% - 116px);
    padding: 12px !important;
    margin-left: auto !important;
    box-shadow: none !important;
}

.training__registration .training__registration-row--phone input.iti__tel-input:focus {
    border-color: #ddeafd;
    box-shadow: 0 0 0 4px #ddeafd;
}

.training__registration .training__registration-row--phone input.iti__tel-input::placeholder {
    color: #8599ad;
}

.training__registration .training__registration-row--phone.error input.iti__tel-input::placeholder {
    color: #d74860;
}

.training__registration .training__registration-row--phone .iti__dropdown-content {
    top: calc(100% + 12px);
    left: auto;
    right: auto;
    margin: 0;
    padding-top: 12px;
    width: 100% !important;
    border-radius: 8px;
    border: 1px solid #f6f7f8;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.05), 0px 8px 32px 6px rgba(0, 0, 0, 0.10);
}

.training__registration .training__registration-row--phone .iti__country-container {
    width: 100%;
}

.training__registration .training__registration-row--phone .iti--flexible-dropdown-width .iti__country-list {
    white-space: initial;
}

.training__registration .training__registration-row--phone .iti__selected-country {
    width: 108px;
    height: 48px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #d4dbe2;
    background-color: #fff;
    color: #030d17;
    transition: .25s ease;
    outline: none;
    box-shadow: none !important;
}

.training__registration .training__registration-row--phone .iti__selected-country:hover {
    background-color: #f6f7f8;
}

.training__registration .training__registration-row--phone .iti__selected-country-primary {
    padding: 0;
    margin: 0;
    background: transparent !important;
}

.training__registration .training__registration-row--phone .iti__search-input {
    display: block;
    width: calc(100% - 16px);
    height: 48px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 12px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #d4dbe2;
    background-color: #fff;
    transition: .25s ease;
}

.training__registration .training__registration-row--phone .iti__search-input::placeholder {
    color: #8599ad;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.training__registration .training__registration-row--phone .iti__search-input:focus {
    outline: none;
}

.training__registration .training__registration-row--phone .iti__selected-dial-code {
    font-size: 14px;
    font-weight: 500;
}

.training__registration .training__registration-row--phone .iti__dial-code {
    color: #8599ad;
    font-size: 14px;
    line-height: 1.14;
    font-weight: 500;
    text-transform: uppercase;
}

.training__registration .training__registration-row--phone .iti__country {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid transparent;
}

.training__registration .training__registration-row--phone .iti__country.iti__highlight {
    border-color: #e7f0fe;
    background-color: #f0f6ff;
}

.training__registration .training__registration-row--phone .iti__country-name {
    color: #030d17;
    font-size: 14px;
}

.training__registration .training__registration-row--phone .iti__country-list {
    margin-top: 8px;
    padding: 0 8px;
}

.training__registration .training__registration-row.error .training__registration-input {
    color: #000;
    background-color: #fff7f8;
    border: 1px solid #e37d8e;
}

.training__registration .training__registration-label {
    position: absolute;
    top: 24px;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0 12px;
    font-size: 16px;
    font-weight: 500;
    color: #8599ad;
    font-weight: 400;
    line-height: 1.5;
    transform: translateY(-50%);
    transition: .1s ease-in-out;
    cursor: text;
}

.training__registration .training__registration-row.has-value .training__registration-label {
    top: 13px;
    font-size: 12px;
}

.training__registration .training__registration-row.error .training__registration-label {
    color: #d74860;
}

.training__registration .training__registration-agreement {
    margin-bottom: 16px;
}

.training__registration .training__registration-checkbox {
    position: absolute;
    opacity: 0;
}

.training__registration .training__registration-agreement label {
    position: relative;
    display: block;
    padding-left: 40px;
    font-size: 14px;
    cursor: pointer;
}

.training__registration .training__registration-agreement label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background-position: center;
    background-size: 120%;
    background-repeat: no-repeat;
    background-color: #e7ebef;
    border: 1px solid #e3e8ed;
    border-radius: 4px;
    transition: .25s ease-in-out;
}

.training__registration .training__registration-checkbox:checked + label::before {
    background-image: url(../img/icon-check.svg);
    background-color: var(--accent-color);
    border-color: #ce5d21;
}

.training__registration .training__registration-button {
    display: block;
    width: 100%;
    height: 48px;
    padding: 5px;
    font-size: 16px;
    font-weight: 500;
    color: var(--btn-text-color);
    background-color: var(--accent-color);
    border: 1px solid var(--btn-border-color);
    border-radius: 8px;
    box-shadow: 0px 4px 4px 0px rgba(240, 110, 45, 0.20);
    cursor: pointer;
    transition: background-color .25s ease, border .25s ease;
    outline: none;
}

.training__registration .training__registration-button:hover {
    background-color: var(--btn-background-color-hover);
    border-color: var(--btn-border-color-hover);
}

.training__registration .training__registration-close {
    position: absolute;
    display: block;
    width: 30px;
    height: 30px;
    right: 15px;
    top: 30px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-image: url(../img/icon-close.svg);
    border: none;
}

.training__registration .training__registration-error {
    margin: 10px 0 0;
    padding-left: 8px;
    color: #d74860;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
}

.training__registration .training__registration-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px auto 0;
}

.training__registration .success__block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 520px;
    padding: 20px;
    text-align: center;
    background-color: #f4f5f5;
    border: 1px solid #dee1e2;
    border-radius: 24px;
    box-shadow: 0px 4px 16px 0px rgba(120, 143, 165, .05);
}

.training__registration .success__title {
    margin-top: 20px;
    font-size: var(--title-size-xsm);
    line-height: 1.3;
    font-weight: 600;
}

.training__registration .success__txt {
    margin-top: 5px;
    margin-bottom: 0;
}

.training__registration .success__btn {
    display: block;
    min-width: 220px;
    height: 48px;
    margin-top: 30px;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    color: var(--btn-text-color);
    background-color: var(--accent-color);
    border: 1px solid var(--btn-border-color);
    border-radius: 8px;
    box-shadow: 0px 4px 4px 0px rgba(240, 110, 45, 0.20);
    cursor: pointer;
    transition: background-color .25s ease, border .25s ease;
    outline: none;
    text-decoration: none;
}

.training__registration .success__btn:hover {
    background-color: var(--btn-background-color-hover);
    border-color: var(--btn-border-color-hover);
}

@media (max-width: 767px) {
    .training__registration .training__registration-title h2 {
        font-size: 30px;
    }
}

@media (max-width: 520px) {
    .training__registration .training__registration-form {
        margin-top: 50px;
    }

    .training__registration .success__btn {
        width: 100%;
    }

    .training__registration .training__registration-title h2 {
        font-size: 20px;
    }
}