.form__wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 44px;
    border-radius: 16px;
    background: var(--color-gray-light);
    box-shadow: 4px 6px 12px 0 rgba(0, 0, 0, 0.06);
}

.form__container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form__title {
    width: 100%;
    padding: 0 36px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.33;
    text-align: center;
}

.form {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-fields {
    display: flex;
    flex-direction: column;
    margin-bottom: 44px;
    gap: 16px;
}

.form-row {
    position: relative;
}

.form-label {
    position: absolute;
    top: 18px;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 24px;
    font-size: 16px;
    line-height: 1;
    font-weight: 400;
    color: var(--color-text-primary);
    transition: .1s ease-in-out;
    cursor: text;
}

.form-row.has-value .form-label {
    top: 4px;
    height: auto;
    font-size: 12px;
    transform: translateY(0);
}

.form-input {
    display: block;
    margin: 0;
    width: 100%;
    height: 52px;
    padding: 20px 24px 4px;
    border-radius: 8px;
    border: 1px solid var(--color-brand-darkblue);
    background-color: var(--color-white);
    box-shadow: 4px 6px 12px 0 rgba(0, 0, 0, 0.06);
    font-size: 16px;
    line-height: 1;
    font-weight: 400;
    color: var(--color-text-primary);
    outline: none;
}

.form-error {
    padding-top: 8px;
    padding-left: 24px;
    font-size: 14px;
    color: var(--color-error-red);
}

.form__selection {
    display: flex;
    flex-direction: column;
    margin-bottom: 26px;
}

.form__selection.form__selection--deposit .form-radio label,
.form__selection.form__selection--real .form-radio label{
    font-weight: 700;
}

.form__selection-title {
    margin-bottom: 24px;
    font-size: 16px;
    font-weight: 700;
}

.form__selection-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-radio {
    position: relative;
    font-size: 16px;
}

.form-radio input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
}

.form-radio label {
    position: relative;
    cursor: pointer;
    padding-left: 36px;
    margin: 0;
}

.form-radio label:before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--color-brand-darkblue);
    background: var(--color-gray-light);
}

.form-radio label:after {
    content: '';
    display: none;
    position: absolute;
    left: 1px;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 4px solid var(--color-white);
    background: var(--color-brand-darkblue);
}

.form-radio input:checked+label:after {
    display: block;
}

.form-checkbox {
    position: relative;
}

.form-checkbox input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
}

.form-checkbox label {
    position: relative;
    cursor: pointer;
    padding-left: 36px;
    margin: 0;
}

.form-checkbox label:before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 5px;
    width: 24px;
    height: 24px;
    border: 1px solid var(--color-brand-darkblue);
    background: var(--color-gray-light);
}

.form-checkbox input:checked+label:before {
    color: var(--color-white);
    background: var(--color-brand-darkblue) url('../img/icon-checkmark.svg') no-repeat center center;
}

.form-agreement {
    margin-bottom: 52px;
}

.form-submit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.form .form-row--phone input.iti__tel-input {
    width: 100%;
    max-width: calc(100% - 110px);
    padding: 0 16px !important;
    margin-left: auto !important;
    box-shadow: none !important;
}

.form .form-row--phone input.iti__tel-input::placeholder {
    color: rgba(44, 44, 44, 0.5);
}

.form .form-row--phone .iti__dropdown-content {
    top: calc(100% + 12px);
    left: -1px;
    right: auto;
    margin: 0;
    padding: 12px 0;
    width: calc(100% + 2px) !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);
}

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

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

.form .form-row--phone .iti__selected-country {
    width: 104px;
    height: 52px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--color-brand-darkblue);
    background-color: var(--color-white);
    color: #030d17;
    transition: .25s ease;
    outline: none;
    box-shadow: none !important;
}

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

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

.form .form-row--phone .iti__search-icon {
    display: none;
}

.form .form-row--phone .iti__search-input {
    display: block;
    width: calc(100% - 16px);
    height: 36px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 8px;
    font-size: 16px;
    background-color: var(--color-white);
    transition: .25s ease;
}

.form .form-row--phone .iti__search-input::placeholder {
    color: rgba(44, 44, 44, 0.5);
    font-size: 16px;
    line-height: 1;
}

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

.form .form-row--phone .iti__selected-dial-code {
    font-size: 16px;
}

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

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

.form .form-row--phone .iti__country.iti__highlight {
    border-color: transparent;
    background: rgba(44, 44, 44, 0.10);
}

.form .form-row--phone .iti__country-name {
    color: var(--color-text-primary);
    font-size: 14px;
}

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

.form .form-row.error .form-input {
    border-color: var(--color-error-red);
}

.form__feedback {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 44px;
    border-radius: 16px;
    background: var(--color-gray-light);
    box-shadow: 4px 6px 12px 0 rgba(0, 0, 0, 0.06);
    text-align: center;
}

.form__feedback.form__feedback--success .form__feedback-icon {
    margin-top: 0;
}

.form__feedback-icon {
    margin-top: auto;
    width: 106px;
}

.form__feedback-title {
    margin-top: 32px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.form__feedback-text {
    margin-top: 16px;
    font-size: 16px;
}

.form__feedback-btn {
    margin-top: auto;
    margin-bottom: auto;
}

@media (max-width: 1200px) {
    .form__wrapper {
        width: 100%;
    }

    .form__container {
        width: 100%;
        max-width: 568px;
    }
}

@media (max-width: 992px) {
    .form-checkbox label:before {
        top: 2px;
    }
}

@media (max-width: 600px) {
    .form__wrapper {
        padding: 20px;
    }

    .trading__career-col.trading__career-col--content {
        gap: 36px;
    }

    .trading__career-inner {
        gap: 16px;
    }

    .form__title {
        font-size: 24px;
        padding: 0;
    }

    .form-agreement {
        margin-bottom: 32px;
    }

    .form-checkbox label:before {
        top: 0;
    }
}
