* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f8f9fb;
    color: #333;
}

.page-container {
    width: 100%;
    padding: 30px 60px 20px 60px;
}

.Register-logo-title {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 12px;
    margin-bottom: 30px;
}

.Register-logo-title img {
    width: 35px;
    height: 35px;
}

h1 {
    font-size: 26px;
    font-weight: bold;
    margin: 0;
}

.sub-heading {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 20px;
}

form {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.left-section {
    width: 70%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.right-container {
    width: 28%;
    display: flex;
    flex-direction: column;
}

.right-heading {
    font-size: 14px;
    color: #666;
    font-weight: bold;
    margin-bottom: 5px;
}

.right-section {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
}

.password-info {
    font-size: 13px;
    color: #333;
    margin-bottom: 15px;
}

.password-hint {
    display: none;
    color: #2F7F27;
    font-family: proxima-nova-light, sans-serif;
    font-weight: bold;
    margin-top: 10px;
    font-size: 12px;
}

#password:focus + .password-hint {
    display: block;
}
.form-group {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
}

label {
    font-size: 14px;
    margin-bottom: 3px;
}

.register-email {
    z-index: 0 !important;
}

span.required-symbol {
    margin-left: 2px;
    color: red;
}

input,
select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.right-section .form-group {
    margin-bottom: 15px;
}

.captcha-box {
    width: 100%;
    height: 50px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #888;
    border-radius: 5px;
    margin-bottom: 5px;
}

.captcha-hint {
    font-size: 12px;
    color: #555;
    margin-bottom: 10px;
}

.btn {
    background-color: #1e0a3c;
    color: white;
    padding: 12px;
    width: 100%;
    border: none;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
}

.btn:hover {
    background-color: #140384;
}

.bold {
    font-weight: bold !important;
}

.pointer {
    cursor: pointer !important;
}

.login-link {
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
}

.login-link a {
    color: #2a4ba0;
    text-decoration: none;
    font-weight: bold;
}

.input-icon {
    position: absolute;
    right: 12px;
    width: 18px;
    height: 18px;
    opacity: 1;
    cursor: default;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}

/* Updated Phone Number Input Styling */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    position: relative;
  
    /* Add transition for smoother border change */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.phone-input-wrapper select.region-code {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
    background-color: #fff;
    min-width: 70px;
    width: 20%;
    height: 100%;
    appearance: none;
    cursor: pointer;
}

.phone-input-wrapper select.region-code option {
    cursor: pointer;
    padding: 8px;
}

.phone-input-wrapper input[type="tel"] {
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 5px 5px 0;
    width: 75%;
    height: 100%;
}

.phone-input-wrapper .input-icon {
    right: 14px;
    width: 15px;
    height: 15px;
    pointer-events: none;
    position: absolute;
}

.footer-note {
    font-size: 14px;
    color: #000;
    margin-top: 8px;
    text-align: center;
    padding: 10px 0;
}

/* Validation Summary Pop-up (top-right) */
.validation-summary {
    position: fixed;
    top: 30px;
    right: 60px;
   background-color: #ffb9b9;
    border: 1px solid #FF0F17;
    border-radius: 8px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.validation-summary .validation-message {
    color: #ff0000;
    /* font-weight: bold; */
    font-size: 14px;
}

.validation-summary .info-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Individual Field Error Message below inputs */
.form-group .error-message {
    color: #ff0000;
    font-size: 12px;
    margin-top: 5px;
    height: 15px; /* To prevent layout shift when message appears */
}

/* Styling for invalid inputs (single inputs, not the phone group) */
input.invalid,
select.invalid {
    border-color: #ff0000 !important;
    outline: none !important; /* Remove default blue/black outline */
    box-shadow: 0 0 0 1px #ff0000; /* Add a subtle red glow */
}

/* NEW: Styles for the Phone Input Wrapper when invalid */
.phone-input-wrapper.phone-group-invalid {
    border: 1px solid #ff0000 !important; /* Apply border to the wrapper */
    border-radius: 5px; /* Match input border radius */
    box-shadow: 0 0 0 1px #ff0000 !important;
}

/* Ensure individual elements inside the invalid phone wrapper don't have their own red border */
.phone-input-wrapper.phone-group-invalid select.region-code,
.phone-input-wrapper.phone-group-invalid input[type="tel"] {
    border-color: #ccc !important; /* Revert to default or a subtle grey */
    box-shadow: none !important;
    outline: none !important;
}


/* NEW: Styles for the Detailed Error Container */
.detailed-error-container {
    background-color: #ffb9b9;
    border: 1px solid #FF0F17;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex; /* Initially hidden by JS, but will be flex when shown */
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    /* font-weight: 500; */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Style for the individual error lists within the container */
.detailed-error-container ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
    color: #ff0000;
    font-size: 13px;
    flex: 1 1 auto;
    min-width: 250px;
    max-width: 48%; /* Max width to ensure two columns on larger screens */
}

.detailed-error-container ul li {
    margin-bottom: 5px;
}
.hidden-select {
    /* Visually hide the native select but keep it in the DOM for form submission */
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allows clicks to pass through if needed for custom trigger */
    top: 0;
    left: 0;
    z-index: -1; /* Place it behind everything */
}

.custom-select-wrapper {
    position: relative; /* Crucial for positioning the dropdown options */
    width: 100%;
    height: 100%;
}

.custom-select-trigger {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.custom-select-trigger .arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333; /* Down arrow */
    transition: transform 0.2s ease;
}

.custom-select-wrapper.open .custom-select-trigger .arrow {
    transform: rotate(180deg); /* Up arrow when open */
}

.custom-options {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Position below the trigger */
    left: 0;
    width: 100%;
    border: 1px solid #ccc;
    border-top: none; /* To avoid double border with trigger */
    border-radius: 0 0 5px 5px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999; /* Ensure it appears above other content */
    max-height: 185px; /* Optional: scroll if too many options */
    overflow-y: auto;
}

.custom-select-wrapper.open .custom-options {
    display: block; /* Show when open */
}

.custom-option {
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
}

.custom-option:hover {
    background-color: #f0f0f0;
}

.custom-option.selected {
    background-color: #e0e0e0; /* Highlight selected option */
    font-weight: bold;
}

/* Add an invalid state for the custom wrapper */
.custom-select-wrapper.invalid .custom-select-trigger {
    border-color: #ff0000 !important;
    outline: none !important;
    box-shadow: 0 0 0 1px #ff0000;
}

.emailInRegister {
    flex: 0 0 calc(50% - 8px);
}

.mail-already-exists {
    background-color: #ffb9b9;
    border: 1px solid #FF0F17;
    border-radius: 8px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 400px;
    margin-bottom: 20px;
}

.mail-already-exists  p {
    color: #ff0000;
    font-weight: 500;
    font-size: 14px;
}

.thanks-container {
    width: 40%;
    margin: 0 auto;
}

.thank-card {
    width: 100% !important;
    gap:10px;
}

.goto-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.tipso_bubble {
    width: auto !important;
    z-index: 999999;
    padding: 4px 10px;
    opacity: 90;
    color: #FFFFFF !important;
    font-weight: 500;
    background-color: #747474 !important;
}

.tipso_content {
    color: #FFFFFF !important;
    font-size: 13px;
    width: auto !important;
    font-weight: 500;
}

#country {
    height: 40px;            /* fixed height */
    line-height: 40px;       /* vertically center text */
    padding: 0 10px;         /* horizontal padding */
    font-size: 14px;         /* adjust text size */
    box-sizing: border-box;  /* make padding included in height */
}

.register-page-container {
    padding-top: 20px;
}

.custom-code-select-wrapper {
    /* padding: 10px; */
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
    background-color: #fff;
    min-width: 70px;
    width: 20%;
    height: 100%;
    appearance: none;
    cursor: pointer;
}
.custom-code-select-trigger {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-code-options {
    display: none;
    position: absolute;
    /* top: 100%; */
    left: 0;
    top: -200px;
    width: 20%;
    border: 1px solid #ccc;
    border-bottom: none;
    border-top: none;
    border-radius: 5px 5px 0 0;
    /* border-radius: 0 0 5px 5px; */
    background-color: #ffffff;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.custom-code-select-wrapper.open .custom-code-options {
    display: block; /* Show when open */
}

.custom-code-option {
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
}

.custom-code-option:hover {
    background-color: #f0f0f0;
}

.custom-code-option.selected {
    background-color: #e0e0e0;
    font-weight: bold;
}

.select-code-disabled {
    background-color: #eef0f942;
    cursor: default;
    color: gray;
}

.select-code-disabled > .custom-code-select-trigger {
    opacity: 0.5;
}

.disabled-inputs::placeholder {
  color: gray;
  opacity: 0.5;
}


/* Responsive adjustments for validation summary */
@media (max-width: 768px) {
    .validation-summary {
        top: 20px;
        right: 20px;
        left: 20px;
        justify-content: center;
        text-align: center;
    }
    .detailed-error-container {
        flex-direction: column; /* Stack columns on small screens */
        gap: 10px;
        padding: 10px 15px;
    }
    .detailed-error-container ul {
        min-width: unset; /* Remove min-width on small screens */
        max-width: 100%; /* Full width for stacked columns */
    }
    .emailInRegister {
        flex: 1 1 100%; /* Full width on small screens */
    }
}

@media screen and (max-width: 1366px) {
    .validation-summary {
        top: 20px;
        right: 40px;
    }
    .validation-summary .validation-message {
        font-size: 13px;
    }
    /* .error-list { REMOVE THIS - IT'S NO LONGER USED */
    /* font-size: 12px; */
    /* } */
    .detailed-error-container {
        padding: 10px 15px;
        margin-bottom: 15px;
    }
    .detailed-error-container ul {
        font-size: 12px;
        min-width: 200px;
        max-width: 49%;
    }
}

@media screen and (min-width: 1367px) and (max-width: 1920px) {
    .validation-summary {
        top: 30px;
        right: 60px;
    }
    .validation-summary .validation-message {
        font-size: 14px;
    }
    /* .error-list { REMOVE THIS - IT'S NO LONGER USED */
    /* font-size: 13px; */
    /* } */
    .detailed-error-container {
        padding: 15px 20px;
        margin-bottom: 20px;
    }
    .detailed-error-container ul {
        font-size: 13px;
        min-width: 250px;
        max-width: 48%;
    }
}

/* Responsive for form layout */
@media (max-width: 768px) {
    .page-container {
        padding: 20px;
    }

    form {
        flex-direction: column;
    }

    .left-section,
    .right-container {
        width: 100%;
    }

    .form-group {
        flex: 1 1 100%;
    }

    .footer-note {
        text-align: left;
    }

    .phone-input-wrapper select.region-code {
        width: 35%;
    }

    .phone-input-wrapper input[type="tel"] {
        width: 75%;
    }
}
@media screen and (max-width: 850px) {
    .phone-input-wrapper input[type="tel"] {
        padding-right: 25px;
    }
    .phone-input-wrapper .input-icon{
        right: 5px;
    }
}

/* For 1366x768 screens */
@media screen and (max-width: 1366px) {
    .page-container {
        padding: 35px 40px;
    }

    h1 {
        font-size: 20px;
    }

    .sub-heading {
        font-size: 13px;
        margin-bottom:10px;
    }

    .left-section {
        gap: 16px;
    }
    label{
        margin-bottom:2px;
    }

    /* input,
    select {
        font-size: 13px;
        padding: 8px;
    } */

    .password-info {
        font-size: 12px;
    }

    .btn {
        font-size: 15px;
        padding: 10px;
    }

    .captcha-box {
        height: 45px;
        font-size: 18px;
    }

    .Register-logo-title img {
        width: 30px;
        height: 30px;
    }

    .login-link {
        font-size: 13px;
    }
}



.SumoSelect {
    width: 100%;
}

.SumoSelect.open .search-txt {
    border-radius: 2px;
    padding: 8px 24px 8px 10px;
    width: 100%;
    height: 100%;
}

.SumoSelect.open > .optWrapper {
    top: auto !important;
    bottom: calc(100% + 1px) !important;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.SumoSelect.sumo_phoneRegionCode.open > .optWrapper > .options {
    scrollbar-width: thin;
}

.SumoSelect > .optWrapper > .options {
    max-height: 180px;
}


.SumoSelect > .optWrapper > .options li.opt {
    padding: 0px !important;
    border: 0px;
}

.SumoSelect > .optWrapper > .options li label {
    padding: 5px 10px;
    border-bottom: 1px solid #e6e3e3;
}

.SumoSelect.sumo_Country .optWrapper > .options li label {
    padding: 10px;
}

.SumoSelect > .CaptionCont {
    border-radius: 2px;
    padding: 7px 24px 7px 10px;
    border: 1px solid #ccc;
}

.SumoSelect > .CaptionCont > label {
    margin-top: 5px !important;
}

.SumoSelect > .optWrapper > .options li.opt:hover {
    background-color: #b7e9f13b;
    
}
.SumoSelect > .optWrapper > .options li.opt > label {
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.SumoSelect > .CaptionCont > label > i {
    background-image: none;
}

.SumoSelect > .CaptionCont > span {
    font-weight: normal;
    font-size: 14px;
}

.SumoSelect .phoneCode-with-flag[title=" Select Code"] span,
.SumoSelect .search[title=" Select country"] span, .SumoSelect .search[title=" Select company"] span
{
    color: #7c7d85;
}


.SumoSelect > .CaptionCont.invalid {
    border-color: #ff0000 !important;
    outline: none !important;
    box-shadow: 0 0 0 1px #ff0000;
}
.SumoSelect:focus > .CaptionCont, .SumoSelect:hover > .CaptionCont, .SumoSelect.open > .CaptionCont {
    box-shadow: none;
    border-color: #ccc;
    cursor:pointer;
}
.sumo_phoneRegionCode {
    width: 25%;
    height: 100%;
}

.sumo_phoneRegionCode>.CaptionCont {
    padding: 10px;
    height: 100%;
    display: flex;
    align-items: center;
}


.sumo_Country > .CaptionCont.invalid {
    box-shadow: 0 0 0 1px #ff0000 !important;
}

.npe {
    background-color: #eef0f942 !important;
    cursor: default;
    color: gray;
    pointer-events: none;
}

.SumoSelect.sumo_Country .CaptionCont {
    border-radius: 5px !important;
}

.SumoSelect.sumo_Country .optWrapper {
    border-bottom-left-radius: 5px !important;
    border-bottom-right-radius: 5px !important;
}

.SumoSelect.sumo_phoneRegionCode .CaptionCont {
    border-top-left-radius: 5px !important;
    border-bottom-left-radius: 5px !important;
}

.SumoSelect.sumo_phoneRegionCode .optWrapper {
    border-bottom-left-radius: 5px !important;
    border-bottom-right-radius: 5px !important;
}

.SumoSelect.sumo_phoneRegionCode > .CaptionCont > span {
    padding: 0;
}

.phoneCode-with-flag{
    padding: 0px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: space-evenly !important;
}

.special-characters-note {
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 10px;
    border-radius: 8px;
}

.SumoSelect.sumo_phoneRegionCode > .optWrapper {
    background: #f5f5f5;
}

/* For Full HD (1920x1080) screens */
@media screen and (min-width: 1367px) and (max-width: 1920px) {

    h1 {
        font-size: 28px;
    }

    .sub-heading {
        font-size: 14px;
    }

    .left-section {
        gap: 15px;
    }

    input,
    select {
        font-size: 15px;
        padding: 12px;
    }

    .SumoSelect > .CaptionCont > span {
        font-size: 15px;
    }

    .SumoSelect > .CaptionCont {
        padding-top: 12.5px;
        padding-bottom: 12.5px;
    }

    .btn {
        font-size: 17px;
        padding: 14px;
    }

    .captcha-box {
        height: 50px;
        font-size: 20px;
    }

    .password-info {
        font-size: 14px;
    }

    .Register-logo-title img {
        width: 40px;
        height: 40px;
    }

    .login-link {
        font-size: 14px;
    }
}

/* 2560x1440 */
@media screen and (width: 2560px) and (height: 1440px) {
    .SumoSelect > .CaptionCont {
    padding-top:10px;
    padding-bottom:10px;
    }
}

@media screen and (width: 3840px) and (height: 2160px) {
    .SumoSelect > .CaptionCont {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

@media screen and (max-width: 1200px) {
    .SumoSelect > .CaptionCont > span {
        font-size: 13px;
    }
}

@media screen and (min-width: 1367px) {
    .SumoSelect > .CaptionCont {
        padding-top: 12.5px;
        padding-bottom: 12.5px;
    }
}
@media screen and (max-width: 1367px) {
    .SumoSelect > .CaptionCont {
        padding-top: 12.5px;
        padding-bottom: 12.5px;
    }
}

/* ========================================
   CUSTOM TAB NAVIGATION STYLES FOR SUMOSELECT
   ======================================== */

/* Make SumoSelect trigger focusable */
.SumoSelect > .CaptionCont {
    outline: none;

}

/* Focus state for SumoSelect trigger */
.SumoSelect > .CaptionCont:focus {
    outline: 2px solid #000000;
}

/* Focused wrapper state */
.SumoSelect.focused > .CaptionCont {
    outline: 2px solid #000000;
}

/* Highlight focused option in dropdown */
.SumoSelect .options li.focused {
    background-color: #E7F1FF;
}

.SumoSelect .options li.focused label {
    font-weight: 600;
    color: #4A90E2;
}

/* Ensure proper keyboard focus visibility */
.SumoSelect .CaptionCont:focus-visible {
    outline: 2px solid #000000;
}
.SumoSelect.select-code-disabled > .CaptionCont:focus {
    outline: none;
    background-color: transparent;
}
 .SumoSelect.sumo_Company > .optWrapper{
    bottom: auto !important;
    top: calc(100% + 1px) !important;
}  