﻿.inst-logo-header {
    padding: 20px 0px;
}

/* ==========================================================
                   CERSI-PGx branded header
                   BPS logo sits to the left; blue CERSI block stretches to
                   the right edge of the viewport.
                   ========================================================== */
.cersi-brand-header {
    width: 100%;
    background-color: transparent;
    border-bottom: 1px solid #97d700;
    padding: 0;
}

.cersi-brand-header-inner {
    width: 100%;
    min-height: 142px;
    display: flex;
    align-items: stretch;
    margin: 0;
}
@media (max-width: 500px) {
    .cersi-brand-header-inner {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* BPS logo area immediately to the left of the blue block */
.bps-brand-side {
    flex: 0 0 157px;
    min-height: 142px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding: 18px 14px;
    gap: 25px;
}

@media (max-width: 500px) {
    .bps-brand-side {
        min-height: 80px;
    }
}

    .bps-brand-side img {
        display: block;
        width: auto;
        max-width: 130px;
        max-height: 68px;
        object-fit: contain;
        background:#fff;
    }

/* Blue CERSI block fills all remaining horizontal space */
.cersi-brand {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 142px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 18px 40px;
    background-color: transparent;
    /*background-color: #004b87;
    background-image: linear-gradient(rgba(0, 75, 135, .76), rgba(0, 75, 135, .76)), url("@Url.Content("~/assets/img/Cersi-Background.jpg")");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;*/
}
@media (max-width: 500px) {
    .cersi-brand {
        justify-content: center;
        min-height: 80px;
    }
}

/* CERSI-PGx logo */
.cersi-main-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .cersi-main-logo img {
        display: block;
        width: auto;
        height: 62px;
        max-width: 220px;
        object-fit: contain;
    }

@media (max-width: 500px) {
    .cersi-main-logo img {
        height: 45px;
        max-width: 160px;
    }
}

@media (max-width: 500px) {
    .bps-brand-side img {
        max-width: 100px;
        max-height: 50px;
    }
}

.cersi-brand-title {
    border-left: 1px solid rgba(255,255,255,.55);
    padding-left: 24px;
    color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: .2px;
    display: flex;
    flex-direction: column;
}

/* ==========================================================
                   BPS/CERSI themed footer
                   ========================================================== */
#footer {
    background-color: transparent;
    border-top: 1px solid #97d700;
    color: #fff;
    padding: 0;
}

    #footer .container {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    #footer .copyright,
    #footer .copyright strong,
    #footer .copyright span {
        color: #fff;
    }

    #footer .links a {
        color: #fff !important;
        text-decoration: none;
        font-family: 'Roboto Condensed', sans-serif;
        font-size: 14px;
    }

        #footer .links a:hover {
            color: #fff !important;
        }

    #footer .social-links a {
        color: #fff !important;
        font-size: 20px;
        margin: 0 4px;
        transition: color .2s ease;
    }

        #footer .social-links a:hover {
            color: #fff !important;
        }

    #footer .social-links {
        margin-top: 4px;
    }

@@media (max-width: 991px) {
    .bps-brand-side {
        flex-basis: 125px;
        min-height: 125px;
        padding: 15px 10px;
    }

        .bps-brand-side img {
            max-width: 105px;
            max-height: 55px;
        }

    .cersi-brand {
        min-height: 125px;
        gap: 15px;
        padding: 15px 25px;
    }

    .cersi-main-logo img {
        height: 52px;
        max-width: 185px;
    }

    .cersi-brand-title {
        font-size: 25px;
        padding-left: 16px;
    }
}

@@media (max-width: 575px) {
    .bps-brand-side {
        flex-basis: 92px;
        min-height: 100px;
        padding: 10px 6px;
    }

        .bps-brand-side img {
            max-width: 78px;
            max-height: 45px;
        }

    .cersi-brand {
        min-height: 100px;
        gap: 10px;
        padding: 10px 14px;
    }

    .cersi-main-logo img {
        height: 40px;
        max-width: 135px;
    }

    .cersi-brand-title {
        font-size: 20px;
        padding-left: 11px;
    }

    .card.form-box {
        margin-top: 15px;
    }
}

#header .logo img {
    max-height: 105px;
}

.breadcrumbs.section-signup {
    background: #97d700;
    padding: 25px 0;
}

.signup-body {
    background-color: #004b87;
    border-top: 10px solid #97d700;
    min-height: 90vh;
    padding-bottom: 5rem;
}

    .signup-body .signup-form .form-control {
        height: 35px;
        border-radius: 0;
        border: 0;
        border-bottom: 1px solid #004B87;
        padding: 0 3px;
    }

    .signup-body .signup-form label {
        font-size: 14px;
        color: #7A7A7A;
    }

    .signup-body .signup-form input:focus, .signup-body .signup-form textarea:focus, .signup-body .signup-form select:focus {
        border-bottom: 1px solid #97D700;
        color: #084f8a;
        box-shadow: none;
    }

.card.form-box {
    background-color: #fff;
    padding: 1.5rem 3.25rem;
    max-width: 100%;
    border-radius: 17px;
    margin: 0 auto;
    margin-top: -125px;
    z-index: 1053;
    border: none;
    box-shadow: 0px 0px 10px rgb(0 0 0 / 50%);
    display: flex;
}

.signup-body .form-header {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #004b87;
    padding-bottom: 5px;
    margin-bottom: 16px;
}

.form-check a, .login-link {
    color: #004B87 !important;
    font-size: 14px;
    line-height: 30px;
}

    .form-check a:hover, .login-link:hover {
        text-decoration: underline !important;
    }

.form-check label.form-check-label {
    padding-left: 15px;
}

.signup-body .form-check-input {
    border-radius: 0;
}

    .signup-body .form-check-input:checked {
        background-color: #97d700;
        border-color: #515151;
    }

.signup-form select#ddlCountry,
.signup-form select#ddlRegion,
.signup-form select#ddlSector {
    background-color: white;
}

.signup-body .signup-form button,
.okta-login a {
    width: 100%;
    margin: 1rem 0rem;
    color: #004b87;
    border: 2px solid #97d700;
    height: 38px;
    background-color: #fff;
    font-size: 14px;
    font-weight: 900;
}

    .signup-body .signup-form button:hover,
    .okta-login a:hover {
        background-color: #004b87;
        color: #fff;
    }

.signup-body .signup-form #btnSubmit {
    width: 100%;
    margin: 1rem 0rem;
    color: #004b87;
    border: 2px solid #97d700;
    height: 38px;
    background-color: #fff;
    font-size: 14px;
    font-weight: 900;
}

    .signup-body .signup-form #btnSubmit:hover {
        background-color: #004b87;
        color: #fff;
    }

    .signup-body .signup-form #btnSubmit[disabled] {
        background-color: #004b87;
        color: #fff;
        opacity: 0.5;
    }

.signup-form span.text-danger.field-validation-error {
    font-size: 14px;
}

.section-box {
    display: flex;
}

    .section-box .intro {
        width: 60%
    }

    .section-box .login {
        width: 40%;
        margin-left: 4%;
        padding: 0;
    }

        .section-box .login .nav-tabs {
            display: flex;
        }

            .section-box .login .nav-tabs > button {
                flex: 1;
                border-radius: 0;
            }

        .section-box .login .tab-content {
            padding: 1.5rem 3.25rem;
            padding-top: 0 !important;
        }

        .section-box .login .nav-tabs .nav-link {
            box-shadow: inset 0 0 10px rgb(0 0 0 / 20%);
        }

            .section-box .login .nav-tabs .nav-item.show .nav-link, .section-box .login .nav-tabs .nav-link.active {
                box-shadow: none;
                color: #004b87;
            }

.login .tab-content .fade {
    opacity: 100;
}

#nav-tabContent .alert {
    text-align: center;
    font-size: 14px;
}

.form-header-text p {
    font-size: 14px;
    line-height: 20px;
    color: #7A7A7A;
}

.login .tab-content {
    min-height: 546px;
}

.carousel-indicators button {
    background-color: #004B87 !important;
}

.copyright {
    color: #7A7A7A;
}

.carousel-indicators {
    z-index: 12;
}

.carousel-caption {
    text-shadow: none;
}

    .carousel-caption p {
        font-size: 14px;
    }

    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 900;
    }

.carousel-inner img {
    max-height: 360px;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23004B87'><path d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/></svg>")
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23004B87'><path%20d='M4.646%201.646a.5.5%200%200%201%20.708%200l6%206a.5.5%200%200%201%200%20.708l-6%206a.5.5%200%200%201-.708-.708L10.293%208%204.646%202.354a.5.5%200%200%201%200-.708z'/></svg>");
}

.carousel-control-prev-icon:hover {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2397D700'><path d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/></svg>")
}

.carousel-control-next-icon:hover {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2397D700'><path%20d='M4.646%201.646a.5.5%200%200%201%20.708%200l6%206a.5.5%200%200%201%200%20.708l-6%206a.5.5%200%200%201-.708-.708L10.293%208%204.646%202.354a.5.5%200%200%201%200-.708z'/></svg>");
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1054;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    opacity: 0.5;
}

/* ===== CERSI-PGx Intro / Information Tabs ===== */
.section-box .intro {
    width: 60%;
    position: relative;
    overflow: hidden;
    padding: 0;
}

/*
                 * CERSI-PGx styling aligned with the live BPS Assessment portal:
                 * - BPS blue: #004b87
                 * - BPS lime: #97d700
                 * - Neutral body text: #5f5f5f
                 * - Roboto Condensed typography
                 */
.cersi-intro {
    position: relative;
    min-height: 546px;
    padding: 1.5rem 2rem 1.75rem;
    background: #fff;
    font-family: 'Roboto Condensed', sans-serif;
    color: #5f5f5f;
}

.cersi-intro-tabs {
    display: flex;
    width: 100%;
    border-bottom: 1px solid #d9dfe5;
    margin-bottom: 0;
}

    .cersi-intro-tabs .nav-link {
        flex: 1;
        min-height: 58px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        border: 1px solid #d9dfe5;
        border-bottom: 0;
        border-radius: 0;
        background: #fff;
        color: #4e4e4e;
        font-family: 'Roboto Condensed', sans-serif;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
        padding: 10px 12px;
        transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
    }

        .cersi-intro-tabs .nav-link + .nav-link {
            border-left: 0;
        }

        .cersi-intro-tabs .nav-link:hover {
            color: #004b87;
            background: #fafafa;
        }

        .cersi-intro-tabs .nav-link.active {
            color: #004b87;
            background: #fff;
            border-top: 2px solid #97d700;
            box-shadow: inset 0 -3px 0 #004b87;
        }

.cersi-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #97d700;
    font-size: 18px;
    line-height: 1;
    flex: 0 0 auto;
}

.cersi-intro-content {
    position: relative;
    min-height: 430px;
    padding: 1.75rem 0 0;
    padding-right: 190px;
}

    .cersi-intro-content h2 {
        color: #004b87;
        font-family: 'Roboto Condensed', sans-serif;
        font-size: 27px;
        line-height: 1.15;
        font-weight: 700;
        margin: 0 0 17px;
    }

    .cersi-intro-content h3 {
        color: #7A7A7A;
        font-family: 'Roboto Condensed', sans-serif;
        font-size: 19px;
        line-height: 1.2;
        font-weight: 700;
        margin: 0 0 10px;
    }

    .cersi-intro-content p {
        color: #5f5f5f;
        font-family: 'Roboto Condensed', sans-serif;
        font-size: 15px;
        line-height: 1.55;
        margin: 0 0 15px;
    }

    .cersi-intro-content strong {
        color: #7A7A7A;
        font-weight: 700;
    }

.cersi-welcome-highlight {
    margin: 8px 0 20px;
}

    .cersi-welcome-highlight h3 {
        margin: 0 0 7px;
        color: #7A7A7A;
        font-size: 19px;
    }

    .cersi-welcome-highlight p {
        margin-bottom: 11px;
    }

    .cersi-welcome-highlight .cersi-mission-intro {
        margin-bottom: 5px;
    }

.cersi-welcome-list,
.cersi-intro-content ul.cersi-mission-list {
    list-style: none;
    padding: 0;
}

.cersi-welcome-list {
    margin: 5px 0 0;
}

    .cersi-welcome-list li {
        position: relative;
        padding-left: 22px;
        margin-bottom: 5px;
        color: #5f5f5f;
        font-family: 'Roboto Condensed', sans-serif;
        font-size: 15px;
        line-height: 1.4;
    }

        .cersi-welcome-list li::before {
            content: "\2713";
            position: absolute;
            left: 0;
            top: 0;
            color: #97d700;
            font-weight: 700;
            font-size: 17px;
            line-height: 1.2;
        }

.cersi-intro-content ul.cersi-mission-list {
    margin: 16px 0 0;
}

    .cersi-intro-content ul.cersi-mission-list li {
        position: relative;
        padding-left: 29px;
        margin-bottom: 13px;
        color: #5f5f5f;
        font-family: 'Roboto Condensed', sans-serif;
        font-size: 16px;
        line-height: 1.45;
    }

        .cersi-intro-content ul.cersi-mission-list li::before {
            content: "\2713";
            position: absolute;
            left: 0;
            top: 1px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #97d700;
            color: #fff;
            font-size: 12px;
            font-weight: 700;
            line-height: 18px;
            text-align: center;
        }

/* Static DNA illustration - intentionally outside the tab panes */
.cersi-dna-art {
    position: absolute;
    top: 28px;
    right: 18px;
    width: 145px;
    height: 310px;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cersi-dna-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}


@media (max-width: 500px) {
    .cersi-intro-content {
        position: relative;
        min-height: 430px;
        padding: 1.75rem 0 0;
       
    }
    .cersi-dna-art {
        position: static;
        top: auto;
        right: auto;
        width: 100%;
        height: 310px;
        z-index: 2;
        pointer-events: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
.cersi-tab-pane {
    min-height: 400px;
}

    .cersi-tab-pane.fade {
        opacity: 0;
    }

        .cersi-tab-pane.fade.show {
            opacity: 1;
        }

@@media (max-width: 1199px) {
    .section-box .intro {
        width: 58%;
    }

    .section-box .login {
        width: 42%;
    }

    .cersi-intro-content {
        padding-right: 160px;
    }

    .cersi-dna-art {
        width: 125px;
        right: 10px;
    }

    .cersi-intro-content h2 {
        font-size: 21px;
    }
}

@@media (max-width: 991px) {
    .section-box {
        display: block;
    }

        .section-box .intro,
        .section-box .login {
            width: 100%;
            margin-left: 0;
        }

        .section-box .login {
            margin-top: 2rem;
        }

    .cersi-intro {
        min-height: auto;
    }

    .cersi-intro-content {
        min-height: 390px;
        padding-right: 175px;
    }
}

@@media (max-width: 575px) {
    .cersi-intro {
        padding: 1rem;
    }

    .cersi-intro-tabs .nav-link {
        font-size: 12px;
        padding: 9px 5px;
    }

    .cersi-tab-icon {
        display: block;
        margin: 0 0 3px;
    }

    .cersi-intro-content {
        padding-right: 0;
        min-height: 0;
    }

    .cersi-dna-art {
        position: relative;
        top: auto;
        right: auto;
        width: 100px;
        height: 180px;
        margin: 10px auto 0;
        opacity: .95;
    }

    .cersi-tab-pane {
        min-height: 0;
    }
}


/* ==========================================================
                   CERSI-PGx final layout overrides
                   ========================================================== */

html,
body {
    background-color: transparent !important;
}

/* White main content area - remove the old blue background/band. */
.signup-body {
    background-color: transparent !important;
    border-top: 0 !important;
    min-height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 48px !important;
}

    /*
                 * The original BPS stylesheet uses a negative top margin for the
                 * login/signup cards because they overlap its old hero area.
                 * That is not appropriate for the new CERSI branded header.
                 */
    .signup-body .card.form-box,
    .card.form-box {
        margin-top: 28px !important;
    }

.section-box {
    align-items: stretch;
    gap: 28px;
}

    .section-box .intro {
        width: 100% !important;
        margin: 0 !important;
    }

    .section-box .login {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 28px !important;
    }

    /*
                 * The left information card should not inherit the old generic
                 * card padding because the tab component already controls it.
                 */
    .section-box .intro.card.form-box {
        padding: 0 !important;
        overflow: hidden;
    }

    .section-box .login.card.form-box {
        padding: 0 !important;
        overflow: hidden;
    }

/* Keep the two cards visually balanced. */
.cersi-intro,
.login .tab-content {
    min-height: 620px;
}

.cersi-intro {
    border-radius: 3px;
}

/* Make the CERSI header logo area align cleanly with the page
                   container rather than looking clipped at the viewport edge. */
.cersi-brand-header .container {
    padding-left: 0;
    padding-right: 0;
}

.cersi-brand-header-inner {
    width: 100%;
}

/* Prevent the footer from visually touching the cards. */
#footer {
    margin-top: 0;
}

@@media (max-width: 991px) {
    .signup-body {
        padding-bottom: 30px !important;
    }

    .section-box {
        display: block;
    }

        .section-box .intro,
        .section-box .login {
            width: 100% !important;
            margin-left: 0 !important;
        }

        .section-box .login {
            margin-top: 24px !important;
        }

    .cersi-intro,
    .login .tab-content {
        min-height: auto;
    }
}
