/**
 * Signup / Registration Page Styles
 * Extracted from internal CSS for maintainability
 */

/* Validation messages - red text, design like create-account.html (#F04438) */
.form-error,
.register-form-sec .help-block,
.register-form-sec .error_text,
.register-form-sec .msg_recaptcha.errMsg,
.register-form-sec .msg_about_other.errMsg,
#personal-registration-sec .help-block,
#personal-registration-sec .error_text,
#personal-registration-sec .msg_recaptcha.errMsg,
#personal-registration-sec .msg_about_other.errMsg,
#business-registration-sec .help-block,
#business-registration-sec .error_text,
#business-registration-sec .msg_recaptcha.errMsg,
#business-registration-sec .msg_about_other.errMsg { color: #F04438 !important; font-size: 14px; font-weight: 500; margin-top: 6px; }
.help-block.form-error { display: none !important; }
input[type="checkbox"].help-block { outline: 2px solid #F04438; outline-offset: 2px; }
.stepper-item { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #7F97AC; font-weight: 600; position: relative; }
.step-circle { width: 48px; height: 48px; border-radius: 9999px; display: grid; place-items: center; border: 2px solid #DDE6EE; color: #101E21; background: #fff; }
.stepper-item.active .step-circle { border-color: #067DBF; color: #067DBF; }
.stepper-item.completed .step-circle { background: linear-gradient(135deg, #067DBF 0%, #11395B 100%); color: #fff; border-color: transparent; }
.stepper-item.active .step-label,
.stepper-item.completed .step-label { color: #101E21; }
.step-label { font-size: 16px; text-align: center; }
.stepper-connector { flex: 1; height: 0; border-top: 2px dashed #DDE6EE; margin: 0 16px; align-self: flex-start; margin-top: 24px; min-width: 20px; }
label.selected {background: #067DBF; background: linear-gradient(90deg, rgba(6, 125, 191, 1) 0%, rgba(17, 57, 91, 1) 100%);}
.badge-pill { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.15); display: inline-flex; align-items: center; gap: 8px; }
.iti.iti--allow-dropdown.iti--separate-dial-code {width: 100%;}
.review-slider-wrap { overflow: hidden; position: relative; }
.review-slider-wrap .owl-stage-outer { overflow: hidden; height: auto !important; }
.review-slider-wrap .owl-stage { display: flex; will-change: transform; height: auto !important; }
.review-slider-wrap .owl-item { width: auto !important; min-width: 300px; flex-shrink: 0; }
.review-slider-wrap.owl-carousel { height: auto !important; }
.review-slider-wrap .review-slider-item { margin: 0; }
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.review-slider-wrap.marquee-mode .owl-stage {
    animation: marquee 40s linear infinite;
}
.review-slider-wrap.marquee-mode:hover .owl-stage {
    animation-play-state: paused;
}

/* Award items - prevent layout shift & jerk on mobile (Owl carousel) */
/* .award-wrapper .award-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
} */
/* .award-wrapper .award-item img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
} */
@media (max-width: 1023px) {
    .award-wrapper {
        min-height: 140px;
        overflow: hidden;
    }
    .award-wrapper .award-item {
        min-height: 120px;
        flex-shrink: 0;
    }
    /* Pre-carousel: mimic single-item view to reduce jerk when Owl initializes */
    .award-wrapper:not(.owl-loaded) {
        display: flex;
        flex-wrap: nowrap;
    }
    .award-wrapper:not(.owl-loaded) .award-item {
        flex: 0 0 100%;
        min-width: 100%;
    }
}
@media (min-width: 1024px) {
    .award-wrapper .award-item { min-height: 0; }
}

/* Award carousel arrows - fix display & positioning for register page */
 .register-left-panel .award-wrapper.owl-carousel {
    position: relative;
    padding: 0 44px;
}
.register-left-panel .award-wrapper .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
}
.register-left-panel .award-wrapper .owl-nav button {
    pointer-events: auto;
    width: 44px !important;
    height: 44px !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 50%;
    left: 0 !important;
}
.register-left-panel .award-wrapper .owl-nav button.owl-next {
    left: auto !important;
    right: 0 !important;
}
@media (max-width: 767px) {
    .register-left-panel .award-wrapper.owl-carousel {
        padding: 0 40px;
    }
    .register-left-panel .award-wrapper .owl-nav button {
        width: 36px !important;
        height: 36px !important;
    }
} 

/* Loader overlay - used by signup layout during form submission */
.loader-spinner {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(0,0,0,0.5);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.loader-spinner.visible {
    display: flex !important;
}

.c2a_logo{
    display: none;
 }
 
/* Fixed height layout - no body scroll, no white space, single scroll on right panel */
body { margin: 0 !important; overflow: hidden !important; }
.register-page-fixed {
    position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    display: flex !important; flex-direction: column !important; overflow: hidden !important;
}
.register-page-fixed .register-panels-row { flex: 1 1 0 !important; min-height: 0 !important; display: flex !important; overflow: hidden !important; }
.register-page-fixed .register-left-panel { flex: 0 0 50% !important; overflow-y: auto !important; }
.register-page-fixed .register-right-panel { flex: 0 0 50% !important; overflow: hidden !important; display: flex !important; flex-direction: column !important; }
.register-page-fixed .register-right-scroll { flex: 1 !important; min-height: 0 !important; overflow-y: auto !important; overflow-x: hidden !important; position: relative !important; }
@media (max-width: 1023px) {
    body { overflow: auto !important; }
    .register-page-fixed { position: static !important; min-height: 100vh; overflow: visible !important; }
    .register-page-fixed .register-panels-row {
        flex-direction: column !important;
        min-height: auto !important;
        overflow: visible !important;
        align-items: stretch !important;
        display: flex !important;
    }
    /* Left panel: 100vh full screen on mobile */
    .register-page-fixed .register-left-panel {
        flex: 0 0 auto !important;
        min-height: 100vh !important;
        height: 100vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    /* Right panel: 100vh full screen when scrolled to */
    .register-page-fixed .register-right-panel {
        flex: 0 0 auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .register-page-fixed .register-right-scroll {
        flex: 1 1 auto !important;
        min-height: 100vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
}

/* Validation: border red, but text/option values stay normal (not red) */
.register-form-sec input.help-block,
.register-form-sec select.help-block,
.register-form-sec input.is-invalid,
.register-form-sec select.is-invalid,
#personal-registration-sec input.help-block,
#personal-registration-sec select.help-block,
#personal-registration-sec input.is-invalid,
#personal-registration-sec select.is-invalid,
#business-registration-sec input.help-block,
#business-registration-sec select.help-block,
#business-registration-sec input.is-invalid,
#business-registration-sec select.is-invalid { color: #101E21 !important; }
.register-form-sec .form-group:has(input.help-block) .select2-selection,
.register-form-sec .form-group:has(select.help-block) .select2-selection,
.register-form-sec .form-group:has(input.is-invalid) .select2-selection,
.register-form-sec .form-group:has(select.is-invalid) .select2-selection,
#personal-registration-sec .form-group:has(input.help-block) .select2-selection,
#personal-registration-sec .form-group:has(select.help-block) .select2-selection,
#personal-registration-sec .form-group:has(input.is-invalid) .select2-selection,
#personal-registration-sec .form-group:has(select.is-invalid) .select2-selection,
#business-registration-sec .form-group:has(input.help-block) .select2-selection,
#business-registration-sec .form-group:has(select.help-block) .select2-selection,
#business-registration-sec .form-group:has(input.is-invalid) .select2-selection,
#business-registration-sec .form-group:has(select.is-invalid) .select2-selection { border-color: #F04438 !important; }
.register-form-sec .form-group:has(input.help-block) .select2-selection__rendered,
.register-form-sec .form-group:has(select.help-block) .select2-selection__rendered,
.register-form-sec .form-group:has(input.is-invalid) .select2-selection__rendered,
.register-form-sec .form-group:has(select.is-invalid) .select2-selection__rendered,
#personal-registration-sec .form-group:has(input.help-block) .select2-selection__rendered,
#personal-registration-sec .form-group:has(select.help-block) .select2-selection__rendered,
#personal-registration-sec .form-group:has(input.is-invalid) .select2-selection__rendered,
#personal-registration-sec .form-group:has(select.is-invalid) .select2-selection__rendered,
#business-registration-sec .form-group:has(input.help-block) .select2-selection__rendered,
#business-registration-sec .form-group:has(select.help-block) .select2-selection__rendered,
#business-registration-sec .form-group:has(input.is-invalid) .select2-selection__rendered,
#business-registration-sec .form-group:has(select.is-invalid) .select2-selection__rendered { color: #101E21 !important; }
.register-form-sec .form-group:has(select.help-block) .select2-selection__placeholder,
.register-form-sec .form-group:has(select.is-invalid) .select2-selection__placeholder,
#personal-registration-sec .form-group:has(select.help-block) .select2-selection__placeholder,
#personal-registration-sec .form-group:has(select.is-invalid) .select2-selection__placeholder,
#business-registration-sec .form-group:has(select.help-block) .select2-selection__placeholder,
#business-registration-sec .form-group:has(select.is-invalid) .select2-selection__placeholder { color: #7F97AC !important; }


.progressbar { display: flex; align-items: flex-start; gap: 0; }
.progressbar-item { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #7F97AC; font-weight: 600; }
.progressbar-item.active .progressbar-title { color: #101E21; }
.progressbar-item.complete-step .progressbar-title { color: #101E21; }
#register-review-slider .owl-dots { display: none; }
#register-review-slider .owl-nav { display: none; }

/* Form steps - new design (font sizes match design: labels 14px, inputs 16px/18px) */
.register-form-sec .form-label { display: block; font-size: 14px; font-weight: 600; color: #101E21; margin-bottom: 10px; }
.register-form-sec .form-control,
.register-form-sec select.form-control,
.register-form-sec .select2-container .select2-selection--single .select2-selection__rendered { font-size: 16px; }
@media (min-width: 1024px) {
    .register-form-sec .form-control,
    .register-form-sec select.form-control,
    .register-form-sec .select2-container .select2-selection--single .select2-selection__rendered { font-size: 18px; }
}
.register-form-sec .form-note { font-size: 16px; color: #7F97AC; margin-bottom: 1rem; }
.register-form-sec .section-title { font-size: 1.25rem; font-weight: 700; color: #101E21; margin-bottom: 0.5rem; }
.register-form-sec .form-group { margin-bottom: 1.5rem; }
.register-form-sec .row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.register-form-sec .col-12 { flex: 0 0 100%; }
.register-form-sec .col-6 { flex: 0 0 100%; }
.register-form-sec .col-md-12 { flex: 0 0 100%; }
.register-form-sec .col-md-5 { flex: 0 0 100%; }
.register-form-sec .col-md-2 { flex: 0 0 100%; }
.register-form-sec .col-3 { flex: 0 0 25%; }
.register-form-sec .col-6 { flex: 0 0 50%; }
@media (min-width: 768px) {
    .register-form-sec .col-6, .register-form-sec .col-md-6 { flex: 0 0 calc(50% - 0.5rem); }
    .register-form-sec .col-md-4 { flex: 0 0 calc(33.333% - 0.67rem); }
    .register-form-sec .col-md-5 { flex: 0 0 calc(41.666% - 0.5rem); }
    .register-form-sec .col-md-8 { flex: 0 0 calc(66.666% - 0.5rem); }
    .register-form-sec .col-md-2 { flex: 0 0 calc(16.666% - 0.5rem); }
    .register-form-sec .col-3.col-md-2 { flex: 0 0 calc(16.666% - 0.5rem); }
    .register-form-sec .col-6.col-md-8 { flex: 0 0 calc(66.666% - 0.5rem); }
}
.register-form-sec .gwbirthdate { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.register-form-sec .gwbirthdate input { width: 4rem; text-align: center; }
.register-form-sec .gwbirthdate .dateofbirth3_input { width: 5rem; }
.register-form-sec .checkbox-wrap { margin-bottom: 1rem; }

/* Checkbox design - match create-account.html (native 24px, flex layout) */
.register-form-sec .checkbox-design { display: flex; align-items: flex-start; gap: 10px; }
.register-form-sec .checkbox-design.flex.items-center { align-items: center; }
.register-form-sec .checkbox-native { width: 24px; height: 24px; min-width: 24px; min-height: 24px; margin: 0; cursor: pointer; accent-color: #067DBF; flex-shrink: 0; }
.register-form-sec .checkbox-design a { color: #067DBF; text-decoration: underline; }
.register-form-sec .checkbox-design a:hover { color: #101E21; }
.register-form-sec .checkbox-item { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; font-size: 14px; color: #101E21; padding: 0.5rem 0; }
.register-form-sec .checkbox-item input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.register-form-sec .checkmark { position: relative; flex-shrink: 0; width: 22px; height: 22px; min-width: 22px; border: 2px solid #DDE6EE; border-radius: 4px; transition: background 0.2s, border-color 0.2s; }
.register-form-sec .checkbox-item:hover .checkmark { border-color: #067DBF; }
.register-form-sec .checkbox-item input:checked ~ .checkmark { background: linear-gradient(135deg, #067DBF 0%, #11395B 100%); border-color: transparent; }
.register-form-sec .checkbox-item input:checked ~ .checkmark::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 12px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.register-form-sec .checkbox-item input:focus-visible ~ .checkmark { outline: 2px solid #067DBF; outline-offset: 2px; }
.register-form-sec .checkbox-item a { color: #067DBF; text-decoration: underline; }
.register-form-sec .form-btn { margin-right: 0.75rem; margin-top: 1rem; }
.register-form-sec .btn-primary { position: relative; overflow: hidden; }
.register-form-sec .step-item > .row:last-of-type { margin-bottom: 0; position: relative; }
.register-form-sec .dop-container { margin-top: 1rem; }
.register-form-sec .dop-container .form-group { margin-bottom: 1rem; }

/* DOP option container - dropdown panel below input */
.register-form-sec .dop-container .form-group { position: relative; }
.register-form-sec .dop-container .select2-dropdown {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    left: 0 !important;
    top: 100% !important;
    bottom: auto !important;
    margin-top: 4px;
}
.register-form-sec .dop-container .select2-results__options { display: block !important; }

/* Destination of Payments & Origin Of Funds - design aligned with create-account.html */
.register-form-sec .dop-container .select2-container { width: 100% !important; }
.register-form-sec .dop-container .select2-container--default .select2-selection--multiple {
    border: 1px solid rgba(16,30,33,0.15);
    border-radius: 10px;
    padding: 8px 12px;
    min-height: 40px !important;
    font-size: 16px;
    font-weight: 600;
    color: #101E21;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.register-form-sec .dop-container .select2-container--default.select2-container--focus .select2-selection--multiple,
.register-form-sec .dop-container .select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #067DBF;
    box-shadow: 0 0 0 2px rgba(6,125,191,0.15);
    outline: none;
}
.register-form-sec .dop-container .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
/* Selected tag: pill design with flag + text + remove */
.register-form-sec .dop-container .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: linear-gradient(135deg, #067DBF 0%, #11395B 100%);
    border: none;
    border-radius: 999px;
    padding: 4px 8px 4px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
}
.register-form-sec .dop-container .select2-selection__choice .dop-flag-text {
    order: 0;
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 6px;
    flex-shrink: 0;
    margin-right: 0;
}
.register-form-sec .dop-container .select2-selection__choice .dop-flag-text .flag-icon {
    padding: 0;
    padding-left: 22px;
    border: none;
    width: 22px;
    min-width: 22px;
    flex-shrink: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
}
.register-form-sec .dop-container .select2-selection__choice .dop-flag-text .flag-icon:before {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 14px;
}
.register-form-sec .dop-container .select2-selection__choice .dop-flag-text .currency-flag-img,
.register-form-sec .dop-container .select2-selection__choice .dop-flag-text .country-svg-flag {
    width: 18px;
    max-height: 14px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}
.register-form-sec .dop-container .select2-selection__choice .dop-flag-text .country-name-text {
    margin: 0;
    white-space: nowrap;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
}
.register-form-sec .dop-container .select2-selection__choice .select2-selection__choice__remove {
    order: 1;
    margin-left: 14px;
    padding-left: 0;
    border: none;
    background: transparent;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    align-self: center;
    cursor: pointer;
    padding: 0;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.register-form-sec .dop-container .select2-selection__choice .select2-selection__choice__remove:hover {
    color: #fff !important;
    opacity: 1;
    background: transparent;
    border: none;
}
.register-form-sec .dop-container .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    color: #7F97AC;
    font-weight: 500;
    line-height: 1.4;
}
.register-form-sec .dop-container .select2-container .select2-search--inline .select2-search__field {
    min-height: 22px;
    height: auto;
    padding: 2px 0;
    margin-top: 0;
    font-size: 16px;
}
@media (min-width: 1024px) {
    .register-form-sec .dop-container .select2-container--default .select2-selection--multiple {
        padding: 10px 14px;
        min-height: 42px !important;
        font-size: 18px;
    }
}

/* DOP dropdown options - DOP dropdown panel - may render outside form */
.dop-dropdown.select2-dropdown {
    border: 1px solid rgba(16,30,33,0.15) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    margin-top: 4px !important;
}
.dop-dropdown.select2-container--default .select2-results__option {
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #101E21;
    display: flex;
    align-items: center;
}
.dop-dropdown .select2-results__option .dop-flag-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.dop-dropdown .select2-results__option .dop-flag-text .flag-icon {
    padding: 0;
    padding-left: 24px;
    border: none;
    min-width: 24px;
}
.dop-dropdown .select2-results__option .dop-flag-text .flag-icon:before {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 15px;
}
.dop-dropdown .select2-results__option .dop-flag-text .currency-flag-img,
.dop-dropdown .select2-results__option .dop-flag-text .country-svg-flag {
    width: 20px;
    max-height: 15px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}
.dop-dropdown .select2-results__option .dop-flag-text .country-name-text {
    margin: 0;
}
.dop-dropdown.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: rgba(6,125,191,0.08);
    color: #067DBF;
}
.dop-dropdown.select2-container--default .select2-results__option[aria-selected=true] {
    background: rgba(6,125,191,0.06);
}

.register-form-sec .providecopytext { position: absolute; background: #fff; border: 1px solid #DDE6EE; border-radius: 8px; padding: 12px; font-size: 13px; color: #101E21; box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 10; max-width: 280px; }
.register-form-sec .tooltip-btn1 { cursor: help; margin-left: 6px; vertical-align: middle; display: inline-block; }
.register-form-sec .tooltip-btn1 img { width: 14px; height: 14px; display: block; }

/* Contact number fields - design like create-account.html (single input look) */
.register-form-sec .contact-number-wrap {
    display: flex; flex-wrap: nowrap; align-items: stretch; gap: 0;
    border: 1px solid rgba(16,30,33,0.15); border-radius: 10px; overflow: hidden;
    min-height: 48px; background: #fff;
}
@media (min-width: 1024px) {
    .register-form-sec .contact-number-wrap { min-height: 60px; }
}
.register-form-sec .contact-number-wrap .phonenumber-flag-wrap { flex: 0 0 auto; width: 56px; min-width: 56px; }
.register-form-sec .contact-number-wrap .phonenumber-flag-wrap .select2-container { width: 100% !important; min-width: 56px; }
.register-form-sec .contact-number-wrap .phonenumber-flag-wrap .select2-container .select2-selection--single {
    height: 100% !important; min-height: 46px; display: flex !important; align-items: center !important; position: relative !important;
}
@media (min-width: 1024px) {
    .register-form-sec .contact-number-wrap .phonenumber-flag-wrap .select2-container .select2-selection--single { min-height: 58px; }
}
/* Contact number Select2 - clean container design */
.register-form-sec .contact-number-wrap .phonenumber-flag-wrap .select2-container--default .select2-selection--single {
    background: transparent !important; border: none !important; padding: 0 !important; height: 100% !important;
}
.register-form-sec .contact-number-wrap .phonenumber-flag-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 8px 0 0 !important; line-height: 1; display: flex !important; align-items: center !important; justify-content: center !important; min-height: inherit;
}
.register-form-sec .contact-number-wrap .phonenumber-flag-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%); height: auto; width: 20px;
}
.register-form-sec .contact-number-wrap .phonenumber-flag-wrap .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #7F97AC transparent transparent transparent !important; border-width: 5px 4px 0 4px !important; margin-left: -4px; margin-top: -2px;
}
.register-form-sec .contact-number-wrap .phonenumber-flag-wrap .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #7F97AC transparent !important; border-width: 0 4px 5px 4px !important; margin-top: -4px;
}
.register-form-sec .contact-number-wrap .phonenumber-flag-wrap .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #7F97AC; font-size: 14px; font-weight: 500;
}
/* Closed state: only flag visible in 56px column */
.register-form-sec .contact-number-wrap .select2-selection__flag-only {
    padding-left: 0 !important; padding-right: 0 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    min-height: 46px; width: 100%; min-width: 24px;
}
.register-form-sec .contact-number-wrap .select2-selection__flag-only.flag-icon:before {
    left: 50% !important; top: 50% !important; transform: translate(-50%, -50%) !important;
    width: 20px !important; height: 15px !important; background-repeat: no-repeat !important; background-size: contain !important; background-position: 50% !important;
}
.register-form-sec .contact-number-wrap .select2-selection__flag-only .currency-flag-img,
.register-form-sec .contact-number-wrap .select2-selection__flag-only .country-svg-flag {
    width: 20px;
    max-height: 15px;
    height: auto;
    object-fit: contain;
    display: block;
}
/* Open dropdown: full width of form-group, each option shows flag + country name */
.register-form-sec .contact-country-dropdown {
    width: 100% !important; min-width: 280px !important;
    border: 1px solid rgba(16,30,33,0.2) !important; border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important; margin-top: 4px !important;
    z-index: 1050 !important;
}
/* When dropdownParent is body, dropdown is appended to body - not inside .register-form-sec - so needs unscoped rules */
.select2-dropdown.contact-country-dropdown {
    width: 100% !important; min-width: 420px !important;
    border: 1px solid rgba(16,30,33,0.2) !important; border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important; margin-top: 4px !important;
    z-index: 99999 !important;
}
.select2-dropdown.contact-country-dropdown .select2-results__option {
    padding: 12px 16px !important; font-size: 15px !important; font-weight: 500 !important; color: #101E21 !important;
    position: relative !important; display: flex !important; align-items: center !important; min-height: 40px !important;
}
.select2-dropdown.contact-country-dropdown .select2-results__option.flag-icon,
.select2-dropdown.contact-country-dropdown .select2-results__option .flag-icon {
    padding-left: 44px !important; position: relative !important;
}
.select2-dropdown.contact-country-dropdown .select2-results__option.flag-icon:before,
.select2-dropdown.contact-country-dropdown .select2-results__option .flag-icon:before {
    content: "" !important; left: 16px !important; width: 20px !important; height: 15px !important;
    top: 50% !important; transform: translateY(-50%) !important; margin: 0 !important;
    position: absolute !important; background-repeat: no-repeat !important; background-size: contain !important; background-position: 50% !important;
}
.select2-dropdown.contact-country-dropdown .select2-results__option .dop-flag-text .currency-flag-img,
.select2-dropdown.contact-country-dropdown .select2-results__option .dop-flag-text .country-svg-flag {
    width: 20px;
    max-height: 15px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}
.select2-dropdown.contact-country-dropdown .select2-results__option--highlighted[aria-selected] {
    background: rgba(6,125,191,0.08) !important; color: #067DBF !important;
}
.select2-dropdown.contact-country-dropdown .select2-results__option[aria-selected=true] {
    background: rgba(6,125,191,0.06) !important;
}
/* Contact country dropdown - responsive: fit viewport on mobile/tablet */
@media (max-width: 1023px) {
    .register-form-sec .contact-country-dropdown,
    .select2-dropdown.contact-country-dropdown {
        width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
        min-width: 260px !important;
    }
}
@media (max-width: 767px) {
    .register-form-sec .contact-country-dropdown,
    .select2-dropdown.contact-country-dropdown {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        min-width: 240px !important;
    }
    .register-form-sec .contact-country-dropdown .select2-results__option,
    .select2-dropdown.contact-country-dropdown .select2-results__option {
        padding: 10px 12px !important; font-size: 14px !important;
    }
    .register-form-sec .contact-country-dropdown .select2-results__option.flag-icon,
    .register-form-sec .contact-country-dropdown .select2-results__option .flag-icon,
    .select2-dropdown.contact-country-dropdown .select2-results__option.flag-icon,
    .select2-dropdown.contact-country-dropdown .select2-results__option .flag-icon {
        padding-left: 40px !important;
    }
    .register-form-sec .contact-country-dropdown .select2-results__option.flag-icon:before,
    .register-form-sec .contact-country-dropdown .select2-results__option .flag-icon:before,
    .select2-dropdown.contact-country-dropdown .select2-results__option.flag-icon:before,
    .select2-dropdown.contact-country-dropdown .select2-results__option .flag-icon:before {
        left: 12px !important; width: 18px !important; height: 14px !important;
    }
}
/* Contact country dropdown - flag + text, no overlap */
.register-form-sec .contact-country-dropdown .select2-results__option {
    padding: 12px 16px !important; font-size: 15px !important; font-weight: 500 !important; color: #101E21 !important;
    position: relative !important; display: flex !important; align-items: center !important; min-height: 40px !important;
}
.register-form-sec .contact-country-dropdown .select2-results__option.flag-icon,
.register-form-sec .contact-country-dropdown .select2-results__option .flag-icon {
    padding-left: 44px !important; position: relative !important;
}
.register-form-sec .contact-country-dropdown .select2-results__option.flag-icon:before,
.register-form-sec .contact-country-dropdown .select2-results__option .flag-icon:before {
    content: "" !important; left: 16px !important; width: 20px !important; height: 15px !important;
    top: 50% !important; transform: translateY(-50%) !important; margin: 0 !important;
    position: absolute !important; background-repeat: no-repeat !important; background-size: contain !important; background-position: 50% !important;
}
.register-form-sec .contact-country-dropdown .select2-results__option--highlighted[aria-selected] {
    background: rgba(6,125,191,0.08) !important; color: #067DBF !important;
}
.register-form-sec .contact-country-dropdown .select2-results__option[aria-selected=true] {
    background: rgba(6,125,191,0.06) !important;
}
.register-form-sec .contact-number-wrap .contact-code-wrap { flex: 0 0 auto; width: 90px; min-width: 90px; display: flex; align-items: stretch; }
.register-form-sec .contact-number-wrap .contact-code-wrap .form-control { height: 100%; min-height: 46px; padding: 12px 8px; box-sizing: border-box; }
@media (min-width: 1024px) {
    .register-form-sec .contact-number-wrap .contact-code-wrap .form-control { min-height: 58px; padding: 15px 8px; }
}
.register-form-sec .contact-number-wrap .contact-input-wrap { flex: 1 1 0; min-width: 0; }
.register-form-sec .contact-number-wrap .form-control,
.register-form-sec .contact-number-wrap .select2-container { border: none !important; border-radius: 0 !important; box-shadow: none !important; }
.register-form-sec .contact-number-wrap .form-control:focus,
.register-form-sec .contact-number-wrap .select2-container--default.select2-container--focus .select2-selection { outline: none; }
.register-form-sec .contact-number-wrap .phonenumber-flag-wrap .form-control,
.register-form-sec .contact-number-wrap .phonenumber-flag-wrap .select2-container {
    border-right: 1px solid rgba(16,30,33,0.15) !important;
    padding-left: 10px !important;
    box-sizing: border-box !important;
}
.register-form-sec .contact-number-wrap .contact-code-wrap .form-control { border-right: 1px solid rgba(16,30,33,0.15) !important; }
.register-form-sec .contact-number-wrap .form-control { font-weight: 600; color: #101E21; font-size: 16px; }
.register-form-sec .contact-number-wrap .contact-code-wrap .form-control { font-size: 14px; }
@media (min-width: 1024px) {
    .register-form-sec .contact-number-wrap .form-control { font-size: 18px; }
    .register-form-sec .contact-number-wrap .contact-code-wrap .form-control { font-size: 15px; }
}
.register-form-sec .contact-number-wrap .contact-input-wrap .form-control { padding: 12px 16px; }
@media (min-width: 1024px) {
    .register-form-sec .contact-number-wrap .contact-input-wrap .form-control { padding: 15px 20px; }
}

.register-form-sec #jointAccountSections .row { margin-bottom: 1rem; }
.register-form-sec #principalbusinessaddresssection .row { margin-bottom: 1rem; }
.register-form-sec .currency-pair .row { margin-bottom: 0.5rem; }
/* Step2 currency pair - override Bootstrap row, From/Into equal width */
.register-form-sec .currency-pair .currency-pair-row-item {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.register-form-sec .currency-pair .currency-pair-from-col,
.register-form-sec .currency-pair .currency-pair-to-col { flex: 1 1 0; min-width: 0; max-width: none; padding: 0; }
@media (max-width: 767px) {
    .register-form-sec .currency-pair .currency-pair-from-col,
    .register-form-sec .currency-pair .currency-pair-to-col { min-width: 140px; flex: 1 1 140px; }
}
@media (min-width: 768px) {
    .register-form-sec .currency-pair .currency-pair-from-col,
    .register-form-sec .currency-pair .currency-pair-to-col { min-width: 180px; flex: 1 1 0; }
}
.register-form-sec .currency-pair .currency-pair-spacer { flex: 0 0 48px; min-width: 48px; }
/* Override Bootstrap row negative margins for currency pair - prevents layout overflow */
.register-form-sec .currency-pair .currency-pair-row-item { margin-left: 0 !important; margin-right: 0 !important; }
.register-form-sec .currency-pair .currency-pair-row-item .form-group { min-width: 0; width: 100%; }
/* From/Into currency - form-group and select full width for proper Select2 display */
.register-form-sec .currency-pair .currency-pair-from-col .form-group,
.register-form-sec .currency-pair .currency-pair-to-col .form-group { width: 100%; max-width: 100%; min-width: 0; }
.register-form-sec .currency-pair .currency-pair-from-col select,
.register-form-sec .currency-pair .currency-pair-to-col select { width: 100% !important; }
.register-form-sec .currency-pair .select2-container { width: 100% !important; min-width: 0; max-width: 100%; }
.register-form-sec .currency-pair .select2-selection--single { overflow: hidden; }
.register-form-sec .currency-pair .select2-container--default .select2-selection--single {
    min-height: 48px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}
@media (min-width: 1024px) {
    .register-form-sec .currency-pair .select2-container--default .select2-selection--single {
        min-height: 56px;
    }
}
.register-form-sec .currency-pair .select2-selection__rendered {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: block;
}
/* Step2 currency pair - smaller options text */
.register-form-sec .currency-pair-row .form-control,
.register-form-sec .currency-pair-row .select2-container .select2-selection--single .select2-selection__rendered,
.register-form-sec .currency-pair .currency-pair-item .form-control,
.register-form-sec .currency-pair .currency-pair-item .select2-container .select2-selection--single .select2-selection__rendered { font-size: 14px; }
@media (min-width: 1024px) {
    .register-form-sec .currency-pair-row .form-control,
    .register-form-sec .currency-pair-row .select2-container .select2-selection--single .select2-selection__rendered,
    .register-form-sec .currency-pair .currency-pair-item .form-control,
    .register-form-sec .currency-pair .currency-pair-item .select2-container .select2-selection--single .select2-selection__rendered { font-size: 15px; }
}
.register-form-sec .currency-pair .currency-pair-item { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #DDE6EE; }
.register-form-sec .currency-pair .currency-pair-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.register-form-sec .currency-pair .currency-pair-item .form-group { margin-bottom: 0; position: relative; }
.register-form-sec .currency-pair .currency-pair-item .form-group.flex-1 { flex: 1 1 0; min-width: 0; }
.register-form-sec .currency-pair .currency-pair-item .form-control,
.register-form-sec .currency-pair .currency-pair-item .select2-container { width: 100% !important; min-width: 0; }
/* Add another currency pair - spacing per design (button tight below currency pair) */
.register-form-sec .add-currency-pair-row { margin-top: 0; margin-bottom: 1.5rem; }
/* Personal & Business registration - currency pair grid layout, Select2 width & trash alignment */
#personal-registration-sec .currency-pair-section .row,
#personal-registration-sec .currency-pair-section .currency-pair .row,
#business-registration-sec .currency-pair-section .row,
#business-registration-sec .currency-pair-section .currency-pair .row { margin-left: 0 !important; margin-right: 0 !important; }
#personal-registration-sec .currency-pair .currency-pair-row-item,
#business-registration-sec .currency-pair .currency-pair-row-item {
    margin-left: 0 !important; margin-right: 0 !important;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 48px; gap: 0.5rem; align-items: start; width: 100%;
}
@media (max-width: 767px) {
    #personal-registration-sec .currency-pair .currency-pair-row-item,
    #business-registration-sec .currency-pair .currency-pair-row-item {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 52px;
        gap: 0.5rem;
        min-width: 0;
        max-width: 100%;
    }
    #personal-registration-sec .currency-pair,
    #business-registration-sec .currency-pair {
        min-width: 0;
        overflow-x: visible;
        max-width: 100%;
    }
    #personal-registration-sec .currency-pair-section,
    #business-registration-sec .currency-pair-section {
        overflow-x: visible;
        max-width: 100%;
        min-width: 0;
    }
    #personal-registration-sec .currency-pair .currency-pair-spacer,
    #personal-registration-sec .currency-pair .currency-pair-delete-col,
    #business-registration-sec .currency-pair .currency-pair-spacer,
    #business-registration-sec .currency-pair .currency-pair-delete-col {
        min-width: 52px;
        width: 52px;
        flex-shrink: 0;
        overflow: visible;
    }
    #personal-registration-sec .currency-pair .btn-remove-currency-pair,
    #business-registration-sec .currency-pair .btn-remove-currency-pair {
        width: 48px;
        min-width: 48px;
        min-height: 48px;
        height: 48px;
        flex-shrink: 0;
        padding: 0;
    }
    #personal-registration-sec .currency-pair .currency-pair-delete-col,
    #business-registration-sec .currency-pair .currency-pair-delete-col {
        margin-left: 0;
        min-width: 52px;
        width: 52px;
        flex-shrink: 0;
        overflow: visible;
    }
}
#personal-registration-sec .currency-pair .currency-pair-from-col,
#personal-registration-sec .currency-pair .currency-pair-to-col,
#business-registration-sec .currency-pair .currency-pair-from-col,
#business-registration-sec .currency-pair .currency-pair-to-col { min-width: 0; overflow: hidden; padding: 0; }
#personal-registration-sec .currency-pair .currency-pair-spacer,
#business-registration-sec .currency-pair .currency-pair-spacer {
    grid-column: 3;
    min-width: 40px;
    align-self: start;
}
#personal-registration-sec .currency-pair .currency-pair-delete-col,
#business-registration-sec .currency-pair .currency-pair-delete-col {
    grid-column: 3;
    min-width: 44px;
    align-self: start;
    display: block;
    padding: 0;
    margin: 0;
}
.register-form-sec .currency-pair .currency-pair-delete-col .form-group.currency-pair-delete-col-inner,
#personal-registration-sec .currency-pair .currency-pair-delete-col .form-group.currency-pair-delete-col-inner,
#business-registration-sec .currency-pair .currency-pair-delete-col .form-group.currency-pair-delete-col-inner {
    margin-bottom: 0;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.register-form-sec .currency-pair .currency-pair-delete-placeholder {
    visibility: hidden;
    pointer-events: none;
    user-select: none;
}
.register-form-sec .currency-pair .currency-pair-delete-col .btn-remove-currency-pair {
    align-self: center;
    flex-shrink: 0;
}
#personal-registration-sec .currency-pair .currency-pair-from-col .form-group,
#personal-registration-sec .currency-pair .currency-pair-to-col .form-group,
#business-registration-sec .currency-pair .currency-pair-from-col .form-group,
#business-registration-sec .currency-pair .currency-pair-to-col .form-group { width: 100% !important; min-width: 0; margin-bottom: 0; position: relative; }
#personal-registration-sec .currency-pair .currency-pair-from-col select,
#personal-registration-sec .currency-pair .currency-pair-to-col select,
#business-registration-sec .currency-pair .currency-pair-from-col select,
#business-registration-sec .currency-pair .currency-pair-to-col select { width: 100% !important; box-sizing: border-box; }
#personal-registration-sec .currency-pair .select2-container,
#business-registration-sec .currency-pair .select2-container { width: 100% !important; min-width: 0 !important; max-width: 100% !important; box-sizing: border-box; }
/* Currency pair - options dropdown full width of column (dropdown appended to register-right-scroll via dropdownParent) */
.register-right-scroll .currency-pair-dropdown.select2-dropdown,
#personal-registration-sec .currency-pair .form-group .select2-dropdown,
#business-registration-sec .currency-pair .form-group .select2-dropdown {
    width: 100% !important; min-width: 100% !important; max-width: calc(100vw - 32px); box-sizing: border-box;
}
@media (max-width: 767px) {
    .register-right-scroll .currency-pair-dropdown.select2-dropdown {
        left: 0 !important; right: 0 !important; width: 100% !important; max-width: 100% !important;
        box-sizing: border-box; z-index: 9999;
    }
}
/* Currency pair row - From/Into equal width, delete/spacer aligned */
.register-form-sec .currency-pair .currency-pair-row-item,
.register-form-sec .currency-pair .currency-pair-inline-row {
    display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 0.375rem;
    margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
    .register-form-sec .currency-pair .currency-pair-row-item { flex-wrap: nowrap; align-items: flex-end; }
}
.register-form-sec .currency-pair .currency-pair-delete-col {
    display: flex; align-items: center; justify-content: flex-start; flex: 0 0 44px; min-width: 44px; align-self: flex-end; margin-left: 0;
}
@media (min-width: 768px) {
    .register-form-sec .currency-pair .currency-pair-delete-col { justify-content: flex-end; }
}
.register-form-sec .currency-pair .currency-pair-inline-col { min-width: 0; }
.register-form-sec .currency-pair .currency-pair-dropdown-col { flex: 1 1 0; }
.register-form-sec .currency-pair .currency-pair-btn-col { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; }
.register-form-sec .currency-pair .currency-pair-inline-row .form-group { margin-bottom: 0; position: relative; }
.register-form-sec .currency-pair .currency-pair-inline-row .form-control,
.register-form-sec .currency-pair .currency-pair-inline-row .select2-container { width: 100% !important; min-width: 0; }
/* Remove button - 40x40px default; 18px icon; currency-pair variant below */
.register-form-sec .btn-remove-currency-pair {
    width: 40px; height: 40px; min-width: 40px; padding: 0;
    border: 1px solid rgba(16,30,33,0.15); border-radius: 8px;
    background: #fff; color: #F04438;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.register-form-sec .btn-remove-currency-pair svg { width: 18px; height: 18px; }
.register-form-sec .btn-remove-currency-pair:hover {
    border-color: #F04438; background: rgba(240,68,56,0.06); color: #dc2626;
}
.register-form-sec .btn-remove-currency-pair:focus-visible { outline: 2px solid #067DBF; outline-offset: 2px; }
/* Currency pair row: trash control same height as Select2 single */
.register-form-sec .currency-pair .btn-remove-currency-pair {
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    height: 48px;
    padding: 0;
    box-sizing: border-box;
}
@media (min-width: 1024px) {
    .register-form-sec .currency-pair .btn-remove-currency-pair {
        min-height: 56px;
        height: 56px;
    }
}

/* Currency & Country dropdown options - proper spacing */
.select2-container--default .select2-dropdown { border: 1px solid rgba(16,30,33,0.2); border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.select2-container--default .select2-results > .select2-results__options { padding: 8px 0; max-height: 280px; overflow-y: auto; }
.select2-container--default .select2-results__option { display: block !important; padding: 10px 16px; font-size: 15px; line-height: 1.4; }
.select2-container--default .select2-results__option[role=group] { padding: 0; }
.select2-container--default .select2-results__option .select2-results__option { padding: 10px 16px 10px 24px; }
.select2-container--default .select2-results__group { padding: 8px 16px; font-size: 13px; font-weight: 600; color: #7F97AC; }
.select2-container--default .select2-search--dropdown { padding: 8px 12px; }
.select2-container--default .select2-search--dropdown .select2-search__field { padding: 8px 12px; border-radius: 8px; font-size: 15px; }
/* Flag and text spacing in currency/country dropdowns - option stays block for row layout */
.select2-results__option.flag-icon,
.select2-results__option .flag-icon { padding-left: 36px !important; position: relative; display: flex !important; align-items: center; min-height: 24px; }
.select2-selection__rendered.flag-icon,
.select2-selection__rendered .flag-icon { padding-left: 36px !important; position: relative; display: inline-flex !important; align-items: center; min-height: 24px; }
.select2-results__option.flag-icon:before,
.select2-results__option .flag-icon:before,
.select2-selection__rendered.flag-icon:before,
.select2-selection__rendered .flag-icon:before { left: 12px !important; width: 20px !important; height: 15px !important; top: 50% !important; transform: translateY(-50%); margin: 0 !important; }
.select2-flag-wrap.flag-icon { display: inline-block; width: 28px; min-width: 28px; height: 20px; position: relative; vertical-align: middle; margin-right: 10px; flex-shrink: 0; padding-left: 0 !important; }
.select2-flag-wrap.flag-icon:before { left: 0 !important; top: 50% !important; transform: translateY(-50%); margin: 0 !important; width: 20px !important; height: 15px !important; }

/* Currency pair dropdown - flag display (formatCurrencyOption structure like DOP) */
.currency-pair-dropdown .select2-results__option .currency-flag-text {
    display: inline-flex; align-items: center; gap: 10px;
}
.currency-pair-dropdown .select2-results__option .currency-flag-text .flag-icon {
    padding: 0; padding-left: 24px; border: none; min-width: 24px; min-height: 16px; flex-shrink: 0;
    position: relative; display: inline-block; background: transparent;
}
.currency-pair-dropdown .select2-results__option .currency-flag-text .flag-icon:before {
    left: 0; top: 50%; transform: translateY(-50%); width: 20px; height: 15px;
}
.currency-pair-dropdown .select2-results__option .currency-flag-text .currency-name-text {
    margin: 0;
}
#personal-registration-sec .currency-pair .select2-selection__rendered .currency-flag-text,
#business-registration-sec .currency-pair .select2-selection__rendered .currency-flag-text {
    display: inline-flex; align-items: center; gap: 8px;
}
#personal-registration-sec .currency-pair .select2-selection__rendered .currency-flag-text .flag-icon,
#business-registration-sec .currency-pair .select2-selection__rendered .currency-flag-text .flag-icon {
    padding: 0; padding-left: 22px; border: none; width: 22px; min-width: 22px; min-height: 14px; flex-shrink: 0; position: relative; display: inline-block;
}
#personal-registration-sec .currency-pair .select2-selection__rendered .currency-flag-text .flag-icon:before,
#business-registration-sec .currency-pair .select2-selection__rendered .currency-flag-text .flag-icon:before {
    left: 0; top: 50%; transform: translateY(-50%); width: 18px; height: 14px;
}
#personal-registration-sec .currency-pair .select2-selection__rendered .currency-flag-text .currency-name-text,
#business-registration-sec .currency-pair .select2-selection__rendered .currency-flag-text .currency-name-text {
    margin: 0;
}
#primary_contact_number::placeholder,
#userJAprimarycontactnumber::placeholder {
    font-size: 16px;
    font-weight: 500;
    opacity: 1;
}

@media (min-width: 1024px) {
    #primary_contact_number::placeholder,
    #userJAprimarycontactnumber::placeholder {
        font-size: 18px;
    }
}