p {
    margin: 0;
    padding: 0;
}

/* Log-in block in the top of registration page  */
.registration-cta {
    display: flex;
    padding-top: 20px;
    padding-right: 28px;
    justify-content: flex-end;
}

.registration-cta span {
    font-size: 14px;
    font-weight: bold;
    color : rgb(1, 106, 248);
}

.registration-cta a {
    color : rgb(1, 106, 248);
    text-decoration: none;
}

/* Content block containing registration window */
.registration-block {
    width: 568px;
    min-height: 255px;
    box-shadow : rgb(204, 220, 253) 0px 0px 6px 0px;
    margin: 24px auto;
    background-color: rgb(235, 244, 255);
}

/* Header of registration window */
.registration-block__header {
    background-color: rgba(0, 96, 255, 0.16);
    padding: 8px;
    text-align: center;
}

.registration-block__header h3 {
    padding: 0;
    margin: 0;
    font-size: 14px;
    font-weight: 900;
    color: rgb(7, 111, 255);
}

.registration-block__header span {
    padding: 0;
    margin: 8px 0 0 0;
    font-size: 10px;
    font-weight: 400;
    color: rgb(7, 111, 255);
}

/* Steps describing registration progress */
.registration-steps {
    display: flex;
    padding: 0;
    margin: 12px 0 0 0;
    justify-content: center;
    list-style: none;
}

.registration-step {
    position: relative;
    margin-right: 56px;
    width: 25px;
    height: 25px;
    border-radius: 100%;
    background-color: white;
}

.registration-step:after {
    content: "";
    position: absolute;
    width: 42px;
    height: 1px;
    background-color : rgb(7, 111, 255);
    left: 32px;
    top: 12px;
}

.registration-step:last-child {
    margin-right: 0;
}

.registration-step:last-child:after {
    display: none;
}

.registration-step a {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
}

.registration-step.active {
    background-color : rgb(7, 111, 255);
}

.registration-step__wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
}

.registration-step__number {
    margin-top: 2px;
    font-size: 14px;
    line-height: 20px;
    font-weight: bold;
    color : rgb(0, 105, 249);
}

.registration-step.active .registration-step__number {
    color: #FFFFFF;
}

.registration-step__title {
    margin-top: 6px;
    font-size: 12px;
    font-weight: bold;
    color : rgb(0, 105, 249);
}

/* Form that contain fields, checkboxes, buttons etc */
.registration-form {
    width: 300px;
    margin: 32px auto 0;
}

.registration-form button[type=submit]{
    font-family: 'Red Hat Display', sans-serif;
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    background-color : rgb(0, 105, 249);
    font-size: 15px;
    font-weight: 900;
    text-align: center;
    color: #FFFFFF;
    border: 0;
    line-height: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.registration-form button[type=submit]:disabled{
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.registration-form button[type=submit]:hover {
    background-color : rgb(0, 105, 249);
}

.registration-form button[type=submit]:active{
    filter: contrast(0.6);
}

.registration-field {
    margin-bottom: 12px;
}

/* Wrapper for individual registration form elements */
.registration-field > label {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.2px;
    color: #2F2F32;
}

.registration-field .field_error_msg {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: #f44336;
    display: block;
}

.registration-field .label {
    display: flex;
    justify-content: space-between;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: -0.2px;
    color: #2F2F32;
}

.registration-field a {
    color: #0B71F0;
}

.registration-field a:hover {
    text-decoration: underline;
}

.registration-field .label span{
    font-weight: 400;
    font-size: 11px;
    line-height: 15px;
    letter-spacing: -0.183333px;
    color: #39363A;
}

.registration-field .label label {
    color: #000;
}

.registration-field .label a {
    color : rgb(0, 105, 249);
    text-decoration: none;
}

.registration-field.checkbox {
    margin-top: 24px;
}

.registration-field.checkbox span {
    margin-top: 8px;
}

.registration-field.checkbox label {
    display: flex;
    align-items: flex-start;
}

/* Input field for text and password */
.registration-input {
    position: relative;
    width: 100%;
}

.registration-input input,
.registration-input select {
    width: 100%;
    box-sizing: border-box;
    border: 1px #6c6c6c solid;
    background-color: #fff;
    padding: 20px 12px 8px;
    font-size: 14px;
    color: #000000;
    outline: none;
}

.registration-input select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.registration-input select:focus {
    outline: none;
}

.registration-input input[type=number]::-webkit-outer-spin-button,
.registration-input input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.registration-input input[type=number] {
    -moz-appearance: textfield;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "▼";
    font-size: 12px;
    top: 16px;
    right: 12px;
    position: absolute;
}

.registration-input input:focus + label,
.registration-input input:not(:placeholder-shown) + label,
.registration-input.valid label,
.registration-input select + label {
    top: 5px;
    left: 12px;
    font-size: 12px;
}

.registration-input.valid input,
.registration-input.valid select {
    border: 1px #15b859 solid;
}

.registration-input.invalid input,
.registration-input.invalid select {
    border: 1px #f44336 solid;
}

.registration-input label {
    position: absolute;
    top: 15px;
    left: 12px;
    font-size: 14px;
    color: #2F2F32;
    transition: all 0.2s ease-in-out;
    cursor: text;
    opacity: 0.6;
}

.registration-input.pw-field input {
    padding-left: 32px;
}

.registration-input.pw-field label {
    margin-left: 20px;
}

.registration-input .strength-meter {
    width: 180px;
    height: 4px;
    z-index: 3;
    position: absolute;
    left: 32px;
    bottom: 4px;
    border-radius: 2px;
}

.registration-input .strength-meter .indicator {
    width: 0;
    height: 100%;
    border-radius: 2px;
    transition: all linear .3s;
}

#change-password {
    position: absolute;
    cursor: pointer;
    left: 8px;
    bottom: 11px;
    font-size: 16px;
    text-decoration: none;
    color: #757077;
}

/* Radio buttons that looks like MUI button group */
.registration-radio {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.registration-radio input {
    display: none;
}

.registration-radio label {
    border: solid 1px #6c6c6c;
    background-color: #FFFFFF;
    font-size: 13px;
    line-height: 1.85;
    text-align: center;
    color: #2F2F32;
    width: 78px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.registration-radio .gender-select {
    display: flex;
}

.gender-select label.checked {
    background-color: #0B71F0;
    color: #FFFFFF;
}

.gender-select label:checked {
    background-color: #0B71F0;
    color: #FFFFFF;
}

.gender-select label:first-of-type {
    margin-right: -1px;
}

.gender-select label:last-child {
    margin-left: -1px;
}

.gender-invalid .gender-select label {
    border: 1px #f44336 solid;
}

.registration-radio__title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.2px;
    text-align: right;
    color: #39363a;
}

/* Icons in the bottom of registration form */
.registration-icons {
    padding: 0 8px;
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.registration-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 12px;
}

.registration-icon span {
    margin-top: 2px;
    font-weight: 700;
    font-size: 11px;
    line-height: 20px;
    letter-spacing: -0.2px;
    text-align: center;
    color: #0B71F0;
}

/* Styles for terms and conditions */
.registration-terms {
    margin-top: 12px;
    background-color: #FFFFFF;
}

.registration-terms__toggle {
    width: 100%;
    padding: 12px;
    background-color: #FFFFFF;
    box-sizing: border-box;
    font-family: OpenSans, sans-serif;
    font-size: 11px;
    letter-spacing: -0.18px;
    text-align: center;
    color: #757077;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.registration-terms__toggle:after {
    content: " ";
    background: url(../Images/arrow_down.svg) no-repeat top left;
    display: inline-block;
    width: 12px;
    height: 12px;
    position: relative;
    top: 2px;
    left: 2px;
}

.registration-terms__toggle.opened:after {
    transform: rotate(180deg);
}

.registration-terms__content {
    display: none;
    padding: 12px;
    font-family: OpenSans, sans-serif;
    font-size: 10px;
    letter-spacing: -0.17px;
    color: #757077;
}

/* Inline wrapper to combine elements in one line */
.registration-inline {
    display: flex;
}

.registration-inline .registration-input input {
    border-radius: 0;
}

.registration-inline .registration-input:first-child {
    margin-right: -1px;
}

.registration-inline .registration-input:last-child {
    margin-left: -1px;
}

.registration-inline .registration-input:first-child input {
}

.registration-inline .registration-input:last-child input {
}

/* Custom checkbox */
.registration-checkbox {
    margin-right: 8px;
}

.registration-checkbox:last-child {
    margin-right: 0;
}

.registration-checkbox input {
    display: none;
}

.registration-checkbox label {
    display: flex;
    align-items: center;
    position: relative;
    font-size: 12px;
    cursor: pointer;
}

.registration-checkbox label:before {
    content: "";
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 2px;
    border: solid 1px #6c6c6c;
    background-color: #fff;
    margin-right: 8px;
}

.registration-checkbox label:after {
    content: "";
    flex-shrink: 0;
    width: 9px;
    height: 5px;
    position: absolute;
    top: 6px;
    left: 6px;
    border: 3px solid #333;
    border-top: none;
    border-right: none;
    background: transparent;
    opacity: 0;
    transform: rotate(-45deg);
}

.registration-checkbox input:checked + label:after {
    border-color: #0B71F0;
    opacity: 1;
}

/* Separate style for communication checkboxes only */
/*
.registration-communications {
    display: flex;
    justify-content: space-between;
    margin: 14px 0;
}
*/
.registration-communications {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 10px;
    background: #c3deff;
    border-radius: 5px;
}
.registration-communications .subtitle{
    margin: 0;
}
.registration-communications .registration-checkbox {
    width: 50%;
    margin-top: 10px;
    margin-right: 0!important;
}
/* Separate styles for opting radio buttons only */
.registration-opting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.registration-opting .radio_buttons {
    display: flex;
    margin-right: 25px;
}

/* Radio buttons used for opt-ins */
.default-radio:first-child {
    margin-right: 35px;
}

.default-radio input[type=radio] {
    display: none;
}
.default-radio label {
    display: inline-block;
    cursor: pointer;
    position: relative;
    margin-right: 0;
    line-height: 18px;
    user-select: none;
}

.default-radio label:before {
    content: "";
    display: inline-block;
    width: 19px;
    height: 19px;
    position: absolute;
    right: -26px;
    bottom: 1px;
    border: solid 1px #6c6c6c;
    background-color: #FFFFFF;
    border-radius: 100%;
    flex-shrink: 0;
}

.default-radio label:after {
    content: "";
    display: none;
    width: 15px;
    height: 15px;
    position: absolute;
    right: -23px;
    bottom: 4px;
    background-color: #231a8b;
    border-radius: 100%;
    flex-shrink: 0;
}

.default-radio input[type=radio]:checked + label:after {
    display: inline-block;
}

.default-radio label:hover:before {
    filter: brightness(120%);
}

.default-radio input[type=radio]:disabled + label:before {
    filter: grayscale(100%);
}

/* Registration warning and error pages */
.registration-error {
    padding-bottom: 32px;
}

.registration-error__title {
    width: 100%;
    border-bottom: solid 0.5px #e9e9e9;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 20px 0;
}

.registration-error__title span {
    width: 200px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    line-height: 1.45;
    letter-spacing: 0.11px;
    margin-top: 10px;
}

.registration-error__title.type_error span {
    color: #f44336;
}

.registration-error__title.type_warning span {
    color: #ff9b00;
}


.registration-error__message {
    box-sizing: border-box;
    width: 100%;
    background-color: #f9f9fd;
    padding: 15px 10px;
}

.registration-error__message a {
    font-size: 14px;
    font-weight: bold;
    color : rgb(0, 105, 249);
    text-decoration: none;
}

.registration-error__message p {
    margin: 0 auto;
    padding: 0;
    width: 300px;
    font-size: 13px;
    line-height: 1.56;
    color: #39363a;
}

.registration-error__message h6 {
    max-width: 300px;
    text-align: center;
    margin: 12px auto;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.56;
    letter-spacing: normal;
    color: #39363a;
}

/* Custom styles */
.subtitle {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
}

.multi-field > label {
    display: flex;
    align-items: center;
}

.multi-field label span {
    font-size: 12px;
    margin-left: 4px;
}

.deposit-limit {
    padding: 0;
}

.deposit_limit_frequency {
    width: 100%;
    box-sizing: border-box;
    border: 1px #2F2F32 solid;
    background-color: #fff;
    padding: 13px 8px;
    font-size: 14px;
    color: #000000;
    cursor: pointer;
    outline: none;
}

.country-select {
    width: 80px;
}

.country-select .flag {
    padding: 14px 8px;
}

.errmsg {
    font-weight: 700;
    font-size: 14px;
    line-height: 19px;
    text-align: center;
    letter-spacing: -0.233333px;
    color: #F44336;
    margin-bottom: 12px;
}

/* Responsive */

@media screen and (max-width: 1024px) {
    .registration-block {
        width: 100%;
        min-height: 255px;
        margin: 0;
        box-shadow: none;
    }
    .registration-cta {
        display: none;
    }
}

@media screen and (max-width: 480px) {

}