@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    height: 100vh;
    overflow: hidden;
}

.referral-container {
    display: flex;
    height: 100vh;
    background-color: #F9F0FE;
}

.branding-section {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.branding-content {
    text-align: left;
}

.evolent-logo {
    width: 200px;
    height: auto;
}

.program-subtitle {
    color: #7C36B0;
    font-family: "Albert Sans", sans-serif;
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: 38px;
}

.form-section {
    width: 50%;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    min-height: 100vh;
}

.form-content {
    width: 100%;
    max-width: 500px;
    background: white;
    padding: 60px 40px;
    border-radius: 0;
    box-shadow: none;
    margin-left: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.welcome-section {
    margin-bottom: 20px;
}

.welcome-heading {
    font-size: 24px;
    font-weight: 700;
    color: black;
    margin-bottom: 16px;
    line-height: 1.2;
    font-size: 20px;
font-style: normal;
font-weight: 600;
}

.description {
    color: #2B2B2B;
    font-size: 16px;
    line-height: 1.4;
}

.referral-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    color: #646464;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0px;
}


.user-type-select {
    width: 100%;
    padding: 10px 14px;
    padding-right: 50px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 400;
    background: white;
    appearance: none;
    cursor: pointer;
    color: #646464;
    font-family: 'Roboto', sans-serif;
    min-height: 48px;
    display: flex;
    align-items: center;
    line-height: 1;
    outline: none;
}

.user-type-select.selected {
    border: 1px solid #F4F5F7 !important;
}

/* Override global styles that remove borders - higher specificity needed */
select#user-type:not(.selected) {
    border: 1px solid #d1d5db !important;
}

select#user-type.selected {
    border: 1px solid #F4F5F7 !important;
}

@supports (appearance: base-select) {
    .user-type-select {
        appearance: base-select;
    }
    
    .user-type-select::picker(select) {
        appearance: base-select;
        border: none;
        border-radius: 12px;
        background: white;
        box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.1);
    }
    
    .user-type-select::picker-icon {
        display: none;
    }
}

.user-type-select option {
        padding: 12px 16px;
        font-family: 'Roboto', sans-serif;
        font-size: 16px;
        color: #374151;
        background: white;
        border: none;
        cursor: pointer;
        text-align: center;
        position: relative;
    }
    
    .user-type-select option:checked {
        background: white;
        color: #374151;
    }
    
    .user-type-select option:checked::before {
        display: none;
    }
    
    .user-type-select option::checkmark {
        display: none;
    }

    .user-type-select option::before {
        display: none !important;
    }

    .user-type-select option:checked {
        background-image: none !important;
    }
    
    .user-type-select option::after:not(:hover::after) {
        display: none !important;
    }
    
    .user-type-select option:hover {
        background: #F9F0FE;
    }
    
    .user-type-select option:hover::after {
        content: '';
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none" viewBox="0 0 20 20"><path stroke="%23330449" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.667" d="M16.667 5 7.5 14.167 3.333 10"/></svg>');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }




.submit-button {
    width: 100%;
    background: #7C36B0;
    color: white;
    border: none;
    padding: 14px 60px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'Roboto', sans-serif;
    min-height: 48px;
    border: 1px solid #F4F5F7;
    outline: none;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}



.submit-button:disabled {
    background: #F5F5F5;
    color: #C9C9C9;
    cursor: default;
     display: flex;
    align-items: center;
    justify-content: center;
}



@media (max-width: 1366px) and (min-width: 1025px) {
    .form-section {
        padding: 0;
    }
    
    .form-content {
        max-width: none;
        margin-left: 40px;
        margin-right: 0;
    }
}
@media screen and (max-width: 1000px) {
    .form-label {
        margin-bottom: 3px;
    }
}
@media (max-width: 1024px) and (min-width: 769px) {
    .form-section {
        padding: 0;
    }
    
    .form-content {
        max-width: 400px;
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 768px) {
    .referral-container {
        flex-direction: column;
    }
    
    .branding-section {
        width: 100%;
        flex: none;
        padding: 30px 20px;
    }
    
    .evolent-logo {
        width: 150px;
    }
    
    .program-subtitle {
        font-size: 22px;
    }
    
    .form-section {
        width: 100%;
        flex: 1;
        padding: 0;
        justify-content: center;
    }
    
    .form-content {
        max-width: none;
        padding: 30px 30px;
        margin-left: 0;
        margin-right: 0;
        min-height: calc(100vh - 200px);
        justify-content: flex-start;
        padding-top: 40px;
    }
    
    .welcome-heading {
        font-size: 22px;
    }
    
    .description {
        font-size: 15px;
    }
    
    .user-type-select {
        padding: 12px 14px;
        padding-right: 35px;
        font-size: 15px;
    }
    
    .submit-button {
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    .form-content {
        padding: 20px 15px;
        min-height: auto;
        height: auto;
        padding-bottom: 30px;
    }
     .program-subtitle {
        font-size: 20px;
    }
    
    .welcome-heading {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .description {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .user-type-select {
        padding: 10px 12px;
        padding-right: 32px;
        font-size: 14px;
        min-height: 42px;
    }
    
    .submit-button {
        padding: 10px 18px;
        font-size: 14px;
        margin-top: 15px;
        min-height: 42px;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
h2{
    margin-bottom: 0px !important;
}

/* Remove number input spinners/arrows */
input[type="number"] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}

/* Remove WebKit spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}



.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-toggle {
    width: 100%;
    padding: 10px 14px;
    padding-right: 50px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 400;
    background: white;
    cursor: pointer;
    color: #646464;
    font-family: 'Roboto', sans-serif;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    transition: border-color 0.2s;
    position: relative;
}

.dropdown-toggle:hover {
    border-color: #9ca3af;
}

.dropdown-toggle:focus {
    outline: 2px solid #7C36B0;
    outline-offset: 2px;
}

.dropdown-toggle.selected {
    border-color: #F4F5F7;
    color: #374151;
}

.dropdown-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s;
    pointer-events: none;
}

.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px 0 rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu li {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 16px;
    color: #374151;
    font-family: 'Roboto', sans-serif;
    transition: background-color 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-menu li:hover {
    background-color: #F9F0FE;
    outline: none;
}

.dropdown-menu li:hover::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 11px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="11" fill="none" viewBox="0 0 16 11"><path stroke="%23330449" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.667" d="M14.667 1 5.5 10.167 1.333 6"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

}

/* .dropdown-menu li[aria-selected="true"] {
    background-color: #F9F0FE;
} */

/* .dropdown-menu li[aria-selected="true"]::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 11px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="11" fill="none" viewBox="0 0 16 11"><path stroke="%23330449" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.667" d="M14.667 1 5.5 10.167 1.333 6"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
} */

.dropdown-toggle::after {display:none!important;}
