/* latin-ext */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
    src: url('../fonts/DMSans-Regular-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
    src: url('../fonts/DMSans-Regular.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #fff;
}

::-webkit-scrollbar-thumb {
    background: #18C554;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #21e063;
}

*, *:before, *:after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
}

body {
    --text-color: #FFFFFF;
    color: var(--text-color);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.3;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

a, button {
    transition: all 0.15s ease-in-out;
}

ul {
    padding-left: 1.25rem;
}

.hidden {
    visibility: hidden;
}

.text-red {
    color: #FF3535 !important;
}

/*--- Header ---*/
.header {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.logo {
    width: 115px;
}

.header__right {
    display: flex;
    gap: 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.header__link {
    color: #000000;
}

.header__link:hover {
    opacity: 0.75;
}

@media screen and (min-width: 768px) {
    .header {
        height: 60px;
        padding: 0 2rem;
    }

    .logo {
        width: 200px;
    }
}

main {
    background: #000000;
}

/*--- Hero section---*/
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1720px;
    margin: 0 auto;
}

.form-section {
    width: 100%;
    max-width: 600px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    background-color: #000000;
}

.form-container {
    flex: 1;
    min-height: 0;
    padding: 25px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    border-radius: 20px;
    background-color: #090A0A;
    border: 1px solid #DBE2E880;
    box-shadow: 0px 0px 30px 0px #00FF9D80, 0px 0px 20px 0px #00FF994D inset;
}

.form-container > h2 {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.form-container > p {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.form-container > div,
.form-container > button {
    flex: 0 0 auto;
}

.register-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    margin-top: 0.5rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.input-wrapper {
    width: 100%;
    position: relative;
    margin-top: 6px;
}

.input-wrapper > .iti {
    width: 100%;
}

.iti__country-list {
    background-color: #222C36 !important;
}

.iti__country:hover {
    background-color: #151b21 !important;
}

.iti__dial-code {
    color: #ccc;
}

.iti__selected-country-primary {
    border-radius: 0.75rem 0 0 0.75rem;
}

.iti__search-input {
    background-color: #222C36 !important;
    color: #FFFFFF;
    min-height: 38px;
}

.iti__globe {
    filter: invert(1);
}

.iti--inline-dropdown  .iti__dropdown-content {
    z-index: 3 !important;
    background-color: #222C36 !important;
    border: 1px solid #151c23 !important;
}

.input-wrapper > label {
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    background-color: #222C36;
    position: absolute;
    top: -6px;
    left: 12px;
    padding: 0 0.25rem;
    border-radius: 0.5rem;
    z-index: 2;
}

.input-wrapper input,
.input-wrapper select {
    color: #FFFFFF;
    width: 100%;
    height: 38px;
    padding: 0.25rem 0.75rem;
    background-color: #222C36;
    border-radius: 0.75rem;
    border: 0;
    outline: 0;
}

.input-wrapper select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.input-wrapper input:focus-visible {
    border: #FFFFFF solid 1px;
}

.error-message {
    color: #FF3535;
    font-size: 0.75rem;
    padding-left: 1rem;
}

.error-messages {
    color: #FF3535;
    font-size: 1rem;
    padding-left: 1rem;
    align-self: self-start;
}

.password-eye {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: url("/images/promo/investing/eye-off.svg") no-repeat center / 100%;
    cursor: pointer;
}

.password-eye.show {
    background: url("/images/promo/investing/eye-on.svg") no-repeat center / 100%;
}

.form-password-text {
    font-style: italic;
    font-size: 11px;
}

.register-button {
    width: 100%;
    height: 50px;
    border: 0;
    background-color: #10A267;
    color: #FFFDFD;
    font-size: 20px;
    font-weight: 600;
    border-radius: 15px;
}

.register-button:not(:disabled):hover {
    cursor: pointer;
    background-color: #16b675;
}

.register-button:disabled {
    opacity: 0.5;
}

.logo-investing {
    width: 166px;
}

.form-agreement {
    color: #FFFFFF;
    font-size: 9px;
    text-align: center;
}

.form-agreement > a {
    color: #207FF7;
}

.form-agreement > a:hover {
    opacity: 0.75;
}

.banner-section {
    width: 100%;
    min-height: 220px;
    padding: 0.75rem 1rem;
    background: #090A0A url("/images/promo/trf/bg-sm.webp") no-repeat center bottom / 100%;
}

.banner__title {
    font-size: 1rem;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 9px;
}

.banner__subtitle {
    font-size: 1.25rem;
    line-height: 1;
    font-weight: 800;
    color: #24EC9B;
    margin-bottom: 14px;
    display: inline-block;
    max-width: 180px;
}

.banner__bottom-text {
    font-size: 10px;
    letter-spacing: 1px;
    max-width: 140px;
}

.banner__bottom-text > span {
    font-size: 12px;
    color: #24EC9B;
}

.steps-lg {
    display: none;
}

.steps-sm {
    width: 100%;
    max-width: 600px;
    padding: 16px 16px 0 16px;
}

.steps-sm h3 {
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

.steps-sm > div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 6px;
}

.steps-card {
    min-height: 92px;
    background-color: #0F1316;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 8px;
    box-shadow: 0px 0px 8px 0px #7F8C8D33, 0px 0px 4px 0px #F9EFEF26 inset;
}

.steps-card > img {
    width: 25px;
    height: 25px;
}

.steps-card__title {
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    color: #65D399;
    display: inline-block;
    height: 24px;
    position: relative;
    padding-left: 16px;
    margin-bottom: 4px;
}

.steps-card__number {
    position: absolute;
    left: 0px;
}

.steps-card__text {
    font-size: 10px;
    line-height: 11px;
    display: inline-block;
    width: 100%;
}

.footer-content {
    padding: 1.25rem 2rem 1rem 2rem;
    color: #000000;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 0.875rem;
}

.social-buttons svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #FFFFFF;
}

.risk-warning {
    font-size: 0.625rem;
    margin-top: 1.25rem;
}

.copyright {
    margin-top: 1.125rem;
    font-size: 0.625rem;
}

.registration-success {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1 !important;
    text-align: center;
    margin-top: 2rem;
}

.registration-success h2 {
    color: #18C554;
}

@media screen and (min-width: 768px) {
    main {
        background: #090A0A url("/images/promo/trf/bg-lg.webp") no-repeat center bottom / 100%;
    }

    .hero {
        flex-direction: row;
        align-items: stretch;
    }

    .banner-section {
        min-width: 50%;
        background: unset;
        padding: 34px;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .banner__title {
        font-size: 50px;
        line-height: 1.2;
    }

    .banner__subtitle {
        font-size: 55px;
        max-width: unset;
    }

    .banner__bottom-text {
        font-size: 26px;
        letter-spacing: 2px;
        max-width: unset;
        font-weight: 500;
        margin-top: auto;
        align-self: flex-end;
        padding-top: 38px;
    }

    .banner__bottom-text > span {
        font-size: 26px;
        letter-spacing: 2px;
        font-weight: 500;
    }

    .steps-sm {
        display: none;
    }

    .steps-lg {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
    }

    .steps-lg h3 {
        font-size: 26px;
        line-height: 30px;
    }

    .steps-lg > div {
        display: flex;
        flex-direction: column;
        gap: 42px;
    }

    .steps-list {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .steps-list > div {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding-left: 32px;
    }

    .steps-list__title {
        position: relative;
        color: #65D399;
        font-size: 24px;
        line-height: 28px;
        font-weight: 600;
    }

    .steps-list__number {
        position: absolute;
        left: -28px;
    }

    .steps-list__text {
        font-size: 16px;
        line-height: 22px;
    }

    .steps-list > img {
        width: 50px;
        height: 50px;
    }

    .form-section {
        min-height: 745px;
        background-color: transparent;
        padding: 34px;
        max-height: 880px;
    }

    .form-container {
        padding: 0.75rem 1rem 0.75rem 1rem;
        gap: 0.875rem;
    }

    .form-container > h2 {
        font-size: 28px;
    }

    .form-container > p {
        font-size: 18px;
    }

    .form-agreement {
        font-size: 11px;
    }

    .footer-content {
        padding: 3.5rem 2rem 3.75rem 2rem;
        margin: 0 auto;
        width: 100%;
        max-width: 1200px;
    }

    .social-buttons {
        gap: 1rem;
    }

    .social-buttons svg {
        width: 3rem;
        height: 3rem;
        color: #F5F6F7;
        transition: color 0.15s ease-in-out;
    }

    .social-buttons svg:hover {
        color: #fbfbfc;
    }

    .risk-warning {
        font-size: 0.75rem;
        margin-top: 4rem;
    }

    .copyright {
        font-size: 1rem;
    }
}

@media screen and (min-width: 1024px) {
    .register-button {
        font-size: 30px;
    }

    .social-buttons {
        gap: 1.25rem;
    }

    .social-buttons svg {
        width: 4rem;
        height: 4rem;
    }
}

@media screen and (min-width: 1200px) {
    .form-container {
        padding: 1.25rem 75px 1.25rem 75px;
    }
}

/*--- Language switcher ---*/
.lang-switcher {
    position: relative;
    cursor: pointer;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #000000;
}

.lang-toggle .fi {
    border-radius: 1px;
}

.lang-list {
    list-style: none;
    padding-top: 15px;
    position: absolute;
    top: 50px;
    right: 0;
    opacity: 0;
    max-height: 90vh;
    overflow-y: auto;
    visibility: hidden;
    z-index: 99;
    transition: all .15s ease-in-out;
}

.lang-list li {
    background-color: #FFFFFF;
    padding: 5px 15px;
}

.lang-switcher:hover .lang-list {
    opacity: 1;
    visibility: visible;
    top: 21px;
}

.lang-switcher .chevron {
    transition: transform .15s ease-in-out;
}

.lang-switcher:hover .chevron {
    transform: rotateZ(180deg);
}

.lang-list > li a {
    transition: color .15s ease-in-out;
}

.lang-list > li:hover a {
    color: #17C354;
}

.lang-list a {
    color: #141515;
    text-decoration: none;
}

.lang-list a > span {
    white-space: nowrap;
}

.g-recaptcha-v2-container {
    position: relative;
}

.g-recaptcha-v2-container > div {
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}
