﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}


html {
    position: relative;
    min-height: 100%;
}


/*body copy size 12pt*/
@font-face {
    font-family: 'roboto-light';
    src: url('../fonts/Roboto-Light.ttf') format('truetype');
}
/*subheads size 12pt ALL CAPS*/
@font-face {
    font-family: 'roboto';
    src: url('../fonts/roboto-regular.ttf') format('truetype');
}

/*headlines size 18pt*/
@font-face {
    font-family: 'roboto-bold';
    src: url('../fonts/roboto-bold.ttf') format('truetype');
}
/*disclaimers size 6pt*/
@font-face {
    font-family: 'roboto_condensed-light';
    src: url('../fonts/roboto_condensed-light.ttf') format('truetype');
}

:root {
    --color-black: #2D2926;
    --color-white: #FFF;
    --color-secondary: #F1F9FD;
    --color-light: #F1F9FD;
    --color-yellow: #FFB549;
    --color-yellowlight: #FFD28F;
    --color-yellowborder: #CC861A;
    --color-navyblue: #0B3B60;
    --color-navybluelight: #2273BA;
    --color-lightblue: #71C5E8;
    --color-turquoise: #28BFE0;
    --color-lightgray: #AEAEAE;
    --color-baselightgray: #F7F7F7;
    --color-anotherlightgray: #E6E6E6;
}


body {
    font-family: 'roboto';
    --bs-body-font-family: 'roboto';
    color: var(--color-black);
    font-size: 1rem;
    font-style: normal;
    line-height: 1.5rem; /* 150% */
}


h1 {
    color: var(--color-black);
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: 'roboto';
    font-size: 1.875rem;
    font-style: normal;
    font-weight: 300;
    line-height: 125%; /* 3.75rem */
}

h2 {
    color: var(--color-black);
    font-family: 'roboto';
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 125%; /* 2.05781rem */
}

h3 {
    color: var(--color-black);
    font-family: 'roboto';
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 400;
    line-height: 125%; /* 2.05781rem */
}

/*external login mobile header font*/
h4 {
    color: var(--color-black);
    font-family: 'roboto';
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 600;
    line-height: 125%; /* 2.05781rem */
}

h5 {
    color: var(--color-black);
    font-family: 'roboto';
    font-size: 2rem;
    font-style: normal;
    font-weight: 300;
    line-height: 125%; /* 2.05781rem */
}

h6 {
    color: var(--color-black);
    font-family: 'roboto';
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 125%; /* 2.05781rem */
}

/*desktop*/
@media (min-width: 768px) {
    h1 {
        color: var(--color-black);
        font-feature-settings: 'liga' off, 'clig' off;
        font-family: 'roboto';
        font-size: 3rem;
        font-style: normal;
        font-weight: 300;
        line-height: 125%; /* 3.75rem */
    }

    h2 {
        color: var(--color-black);
        font-family: 'roboto';
        font-size: 1.5rem;
        font-style: normal;
        font-weight: 400;
        line-height: 125%; /* 2.05781rem */
    }

    h3 {
        color: var(--color-black);
        font-family: 'roboto';
        font-size: 1.25rem;
        font-style: normal;
        font-weight: 400;
        line-height: 125%; /* 2.05781rem */
    }

    /*external login mobile header font*/
    h4 {
        color: var(--color-black);
        font-family: 'roboto';
        font-size: 1.5rem;
        font-style: normal;
        font-weight: 500;
        line-height: 125%; /* 2.05781rem */
    }

    h5 {
        color: var(--color-black);
        font-family: 'roboto';
        font-size: 3rem;
        font-style: normal;
        font-weight: 300;
        line-height: 125%; /* 2.05781rem */
    }


    h6 {
        color: var(--color-black);
        font-family: 'roboto';
        font-size: 1.25rem;
        font-style: normal;
        font-weight: 400;
        line-height: 125%; /* 2.05781rem */
    }
}


.small {
    font-family: 'roboto_condensed-light';
    --bs-body-font-family: 'roboto_condensed-light';
    font-size: 6pt;
}

.culturefontlight {
    color: var(--color-lightgray)
}

.culturefontactive {
    color: var(--color-black);
}

.bg-primary {
    background-color: var(--color-black);
}

.bg-secondary, .bg-light {
    background-color: var(--color-secondary) !important;
}

.bg-secondaryYellow {
    background-color: var(--color-yellow);
}

.bg-secondaryNavyBlue {
    background-color: var(--color-navyblue);
}

.bg-secondaryLightBlue {
    background-color: var(--color-lightblue);
}

.bg-secondaryTurquoise {
    background-color: var(--color-turquoise);
}

.btn-primary {
    color: var(--color-black);
    background-color: var(--color-yellow);
}

    .btn-primary:hover {
        background-color: var(--color-yellowlight);
    }


.fs-sm {
    font-size: 0.9em;
}

.form-group {
    margin-top: .5rem;
    margin-bottom: .5rem;
}

.logounderline {
    border-bottom: 1px solid var(--color-anotherlightgray);
}

.nowrap {
    white-space: nowrap;
}

.wrap-text {
    word-break: break-word;
    overflow-wrap: break-word;
}

.cta-link a {
    word-break: break-word;
    white-space: normal;
    display: inline-block;
}

.validation-summary-errors {
    color: var(--color-black);
    background-color: #f8d7da;
    border-color: #f5c2c7;
    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}

a {
    text-decoration: none;
    color: var(--color-navybluelight);
}

    a:hover {
        color: var(--color-navyblue);
        text-decoration: underline;
    }

.header-hover-white:hover {
    color: var(--color-white);
}

input::placeholder {
    color: var(--color-lightgray);
    font-family: 'roboto';
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 1.5rem */
}

.form-control {
    border-radius: 0.25rem;
    border: 1px solid #595959;
    height: 3.5rem;
    /*background: #FFF;*/
}

    .btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    }


.btn-primary {
    display: flex;
    height: 3rem;
    padding: 0.625rem 1.5rem;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    border-radius: 6.25rem;
    border: 0.5px solid var(--color-yellowborder);
    background: #FFBE5F;
    color: #0b3b60;
    font-weight: 600;
}

    .btn-primary:hover {
        background: #FFD28F;
        border: 0.5px solid var(--color-yellowborder);
        color: #0b3b60;
        text-decoration: none;
    }

.btn-secondary {
    display: flex;
    height: 3rem;
    padding: 0.625rem 1.5rem;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    border-radius: 6.25rem;
    border: 1px solid var(--color-navyblue);
    background: var(--color-white);
    color: var(--color-navyblue);
    font-weight: 600;
}

    .btn-secondary:hover {
        background: var(--color-white);
        border: 2px solid var(--color-navyblue);
        color: var(--color-navyblue);
        text-decoration: none;
    }


i {
    color: var(--color-turquoise);
}

.user-icon::before {
    background-image: url('../images/icons/user-circle.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 20px;
    width: 20px;
    content: '';
    display: inline-block;
    vertical-align: -5px;
}

.arrow-up-right-icon::before {
    background-image: url('../images/icons/arrow-up-right.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 20px;
    width: 20px;
    content: '';
    display: inline-block;
    vertical-align: -5px;
}

.chevron-down-icon::before {
    background-image: url('../images/icons/chevron-down.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 20px;
    width: 20px;
    content: '';
    display: inline-block;
    vertical-align: -5px;
}

.chevron-right-icon::before {
    background-image: url('../images/icons/chevron-right.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 20px;
    width: 20px;
    content: '';
    display: inline-block;
    vertical-align: -5px;
}


.globe-icon::before {
    background-image: url('../images/icons/globe-americas.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 20px;
    width: 20px;
    content: '';
    display: inline-block;
    vertical-align: -5px;
}

.home-icon::before {
    background-image: url('../images/icons/home.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 20px;
    width: 20px;
    content: '';
    display: inline-block;
    vertical-align: -5px;
}

.phone-icon::before {
    background-image: url('../images/icons/phone.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 20px;
    width: 20px;
    content: '';
    display: inline-block;
    vertical-align: -5px;
}

.idcard-icon::before {
    background-image: url('../images/icons/myIDCard.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 20px;
    width: 20px;
    content: '';
    display: inline-block;
    vertical-align: -5px;
}

.eye-icon {
    background-image: url('../images/icons/show-pwd.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 20px;
    width: 20px;
    content: '';
    display: inline-block;
    vertical-align: -5px;
}

.eyeclosed-icon {
    background-image: url('../images/icons/hide-pwd.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 20px;
    width: 20px;
    content: '';
    display: inline-block;
    vertical-align: -5px;
}

.dashboard-icon-container img {
    width: 100%;
    max-width: 80px;
    min-width: 40px;
    height: auto;
}

/* Adjust icon container for better responsive behavior */
@media (max-width: 576px) {
    .dashboard-icon-container img {
        max-width: 60px;
        min-width: 35px;
    }
}


select {
    appearance: auto; /* Restores default styling */
    -webkit-appearance: auto;
    -moz-appearance: auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='none' stroke='currentColor' stroke-width='.8' d='M0 0l2 2 2-2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 8px 10px;
    padding-right: 2.5rem; /* Make room for the arrow */
}

    /* Light gray highlight for dropdown options (best effort, browser-dependent) */
    select option:checked,
    select option:hover {
        background-color: var(--color-baselightgray) !important;
    }



.mainNavItem {
    color: var(--color-navyblue);
    text-decoration: none;
}

    .mainNavItem:hover {
        color: var(--color-navyblue);
        background-color: #F7F7F7;
        font-weight: bold;
        text-decoration: none;
    }

    .mainNavItem:active,
    .mainNavItem:focus {
        color: var(--color-navyblue);
        background-color: #F7F7F7;
        font-weight: bold;
        text-decoration: none;
    }


.logo {
    height: 2.5rem;
}

@media (max-width: 575.98px) {
    .logo {
        height: 2.25rem;
    }

    .text-sm-dark {
        color: var(--color-black) !important;
    }
}

/* Update the existing footer rule to apply only on desktop */
@media (min-width: 768px) {
    .text-sm-dark {
        color: var(--color-white) !important;
    }

    footer {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
    }

    body.main-layout {
        margin-bottom: 20rem;
    }
}

/* Add mobile-specific rules */
@media (max-width: 767.98px) {
    footer {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
    }

    body.main-layout {
        margin-bottom: 0;
    }

    body.no-auth-layout {
        margin-bottom: 0 !important;
    }
}

/* Keep the no-auth layout rules */
body.no-auth-layout {
    margin-bottom: 5rem;
}

.secondLevelNav {
    color: var(--color-black) !important;
    /*text-decoration: none !important;*/
    text-decoration-color: var(--color-navybluelight) !important;
}

.custom-arrow-dropdown .dropdown-toggle::after {
    /*background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2328BFE0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");*/
    color: red !important;
}

.dropdown-mobile-overlay {
    position: absolute !important;
}

.dropdown-menu {
    /* Bootstrap variables for color and border */
    --bs-dropdown-bg: #2a2a44;
    --bs-dropdown-link-color: #e0e0e0;
    --bs-dropdown-link-hover-bg: #4a4a6b;
    --bs-dropdown-border-color: #E6E6E6;
    /* Add rounded corners */
    border-radius: .5rem;
    /* Position relative for the arrow pseudo-element */
    position: relative;
    margin-top: 10px; /* Space for the arrow */

    stroke-width: 1px;
    stroke: var(--Base-Gray, #E6E6E6);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
}

    .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -9px; /* Position it above the dropdown menu */
        left: 120px;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        /*border-bottom: 10px solid var(--bs-dropdown-bg);*/ /* Use the dropdown background color for the arrow */
        border-bottom: 10px solid var(--color-white);
        z-index: 100;
    }

.myplan.dropdown-menu::before {
    left: 64px;
}

.myhealthprofile.dropdown-menu::before {
    left: 129px;
}

.mylanguage.dropdown-menu::before {
    left: 90px;
}

.nav-item.dropdown.show .nav-link.dropdown-toggle {
    text-decoration: underline !important;
}

.nav-item.dropdown .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.5rem;
    border: none;
    background-image: url('../images/icons/chevron-down.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 20px;
    height: 20px;
    content: '';
    vertical-align: middle;
}

/* Rotate chevron when dropdown is open */
.nav-item.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* White chevron for account dropdown in top nav */
.bg-secondaryNavyBlue .nav-item.dropdown .dropdown-toggle::after {
    filter: brightness(0) invert(1);
}

@media (max-width: 991.98px) {

    .navbar-toggler {
        border: none;
        outline: none;
        padding: 0;
    }

        .navbar-toggler:focus,
        .navbar-toggler:active {
            outline: none;
            box-shadow: none;
        }

    /* Replace hamburger icon with custom icon */
    .navbar-toggler-icon {
        background-image: url('../images/icons/bars-3.svg');
        width: 24px;
        height: 24px;
        margin-right: 5px;
    }

    /* Show X icon when menu is open */
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        background-image: url('../images/icons/x-mark.svg');
    }


    .navbar-overlay-mobile .navbar-nav {
        font-size: 1.25rem;
    }
    .navbar-overlay-mobile .nav-item {
        margin-right: 0 !important;
    }

    .navbar-overlay-mobile .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        z-index: 1000;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-bottom: 1.25rem;
    }

        .navbar-overlay-mobile .navbar-collapse.collapsing,
        .navbar-overlay-mobile .navbar-collapse.show {
            display: block;
        }

    .navbar-overlay-mobile .nav-item.dropdown .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

        .navbar-overlay-mobile .nav-item.dropdown .dropdown-toggle::after {
            display: inline-block;
            margin-left: auto;
            border: none;
            background-image: url('../images/icons/chevron-down.svg');
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
            width: 20px;
            height: 20px;
            content: '';
            vertical-align: middle;
        }

    /* Rotate arrow when dropdown is open */
    .navbar-overlay-mobile .nav-item.dropdown.show .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .navbar-overlay-mobile .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .navbar-overlay-mobile .arrow-up-right-icon {
        margin-left: auto;
    }

    .dropdown-menu.custom-arrow-dropdown::before, .dropdown-menu.custom-arrow-dropdown::after {
        display: none !important;
    }

    .dropdown-menu {
        box-shadow: none !important;
        border: none !important;
        filter: none !important;
    }

    .mainNavItem {
        color: var(--color-black);
        background-color: var(--color-baselightgray);
        font-size: 1.25rem;
        padding: .625rem;
    }

        .mainNavItem:hover {
            color: var(--color-black);
        }

        .mainNavItem:active,
        .mainNavItem:focus {
            color: var(--color-black);
        }

    /* White background for account dropdown menu on mobile */
    .bg-secondaryNavyBlue .dropdown-menu {
        background-color: var(--color-white) !important;
    }

        /* Keep dropdown items with white background */
        .bg-secondaryNavyBlue .dropdown-menu .dropdown-item {
            background-color: var(--color-white);
        }

            .bg-secondaryNavyBlue .dropdown-menu .dropdown-item:hover {
                background-color: var(--color-baselightgray);
            }
}

.custom-checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
}

    /* Hide the default checkbox */
    .custom-checkbox input[type="checkbox"] {
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
    }

    /* Custom box */
    .custom-checkbox .checkmark {
        display: inline-block;
        width: 20px;
        height: 20px;
        background: #fff;
        border: 1px solid var(--color-navyblue);
        border-radius: 4px;
        vertical-align: middle;
        margin-right: 0px;
        position: relative;
        transition: background 0.2s, border-color 0.2s;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 16px 16px;
        flex-shrink: 0;
    }

    /* Checked state: show SVG as checkmark */
    .custom-checkbox input[type="checkbox"]:checked + .checkmark {
        background-color: var(--color-navyblue);
        border-color: var(--color-navyblue);
        background-image: url('../images/icons/checkboxcheck.svg');
    }

    /* Remove the old checkmark :after */
    .custom-checkbox .checkmark:after {
        display: none;
    }


#footerAccordion .accordion-item {
    background-color: var(--color-secondary) !important;
    border: none !important;
    border-radius: 0;
}

#footerAccordion .accordion-button {
    color: var(--color-black) !important;
    background-color: var(--color-secondary) !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 0;
    padding-right: 0;
}

    #footerAccordion .accordion-button::after {
        background-image: url(/images/icons/chevron-down.svg);
        filter: none;
        transform: none;
    }

    #footerAccordion .accordion-button:not(.collapsed)::after {
        transform: rotate(-180deg);
    }

    #footerAccordion .accordion-button:not(.collapse) {
        color: var(--color-black) !important;
        background-color: var(--color-secondary) !important;
        box-shadow: none !important;
        border: none !important;
    }


    #footerAccordion .accordion-button:focus {
        border: none !important;
        box-shadow: none !important;
    }

#footerAccordion .accordion-body {
    background-color: var(--color-secondary) !important;
    border: none !important;
}


.validation-summary-errors {
    color: var(--color-black);
    background-color: #FFF6ED;
    border-top: 2px solid #FF5400;
    position: relative;
    padding: 0.875rem 1rem 0.875rem 3rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

    .validation-summary-errors::before {
        content: '';
        background-image: url('../images/icons/alert-triangle.svg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        position: absolute;
        left: 1rem;
        top: 0.875rem;
        width: 20px;
        height: 20px;
        display: inline-block;
    }

    .validation-summary-errors ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .validation-summary-errors li {
        margin: 0;
        padding: 0;
    }

        .validation-summary-errors li:first-child {
            font-weight: 600;
            margin-bottom: 0.25rem;
        }

.field-validation-error {
    color: red;
}


input.input-validation-error,
select.input-validation-error,
textarea.input-validation-error {
    border: 2px solid #FF0000 !important;
    outline: 0 !important;
    box-shadow: 0 0 0 2px rgba(255,0,0,0.15);
}

.text-danger {
    color: red !important;
}
