:root {
    --dark-teal: #239589;
    /*    Lighter Teal @ 100% Opacity*/
    /*    Light Teal @ 15% Opacity */
    --lighter-teal: #2DBEAF;
    --light-teal: rgba(45, 190, 175, 0.15);
    --white: #FFFFFF;
    --black: #000000;
    --off-black: #282626;
    --light-gray: #919191;
    --warning-dark-red: #D14545;
    --btn-border-radius: 10px;
    --ui-element-border-radius: 20px;
    --font-size-header: 36px;
    --font-size-subheader: 24px;
    --font-size-card-header: 20px;
    --font-size-body: 18px;
    --font-size-mobile-button: 16px;
    --font-weight-subheading: 500;
}

@media (max-width: 992px) {
    :root {
        --font-size-header: 25px;
        --font-size-subheader: 20px;
        --font-size-card-header: 18px;
        --font-size-body: 16px;
        --font-size-mobile-button: 14px;
        --font-weight-subheading: 400;
    }
}

html {
    scroll-padding-top: 72px;
}

@media (min-width: 992px) {
    html {
        scroll-padding-top: 142px;
    }
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    font-size: var(--font-size-body);
    width: 100%;
    padding-top: 0; /* Remove any default padding */
}

small {
    font-size: 12px;
    color: var(--black);
}

/*p {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}*/

/* Header Fonts and Weights */
/* Headers */
h1 {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 600;
    font-size: var(--font-size-header);
}

/* Sub headers */
h2 {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 500;
    font-size: var(--font-size-subheader);
}

/* Headers in cards */
h5, .h5 {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 600;
    font-size: var(--font-size-card-header) !important;
}

/* Miscellaneous header */
h6 {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
}

.font-size-header {
    font-size: var(--font-size-header) !important;
}

.font-size-subheader {
    font-size: var(--font-size-subheader) !important;
}

.font-size-card-header {
    font-size: var(--font-size-card-header) !important;
}

.font-size-body {
    font-size: var(--font-size-body) !important;
}

.font-size-mobile-button {
    font-size: var(--font-size-mobile-button) !important;
}
.font-weight-subheading {
    font-weight: var(--font-weight-subheading) !important;
}

.font-inter {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Shared "See Nexflo in action" CTA (Pages/Shared/_CapabilitiesCTA.cshtml) */
#capabilities-cta-section {
    margin-bottom: 68px;
    padding: 40px 24px;
    border-radius: 20px;
    gap: 20px;
}

#capabilities-cta-title {
    margin: 0;
}

#capabilities-cta-buttons {
    gap: 16px;
}

#capabilities-cta-or {
    font-weight: 500;
    color: var(--light-gray);
}

#capabilities-cta-alt-link {
    margin: 0;
}

/* UI elements corner radius (ex. cards, pics) */
.card {
    border-radius: var(--ui-element-border-radius);
}
img {
    border-radius: var(--ui-element-border-radius);
}

.image-crop-parent {
    overflow: hidden;
    position: relative;
}

/* Secondary Navigation (Top Bar) Styles */
.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-item:not(:last-child) {
    margin-right: 0.5rem;
}

@media (max-width: 767.98px) {
    .navbar-nav .nav-item:not(:last-child) {
        margin-right: 0.25rem;
    }

    .navbar-nav .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}
/* Categories dropdown */
.nav-mega-heading {
    color: darkblue;
    font-weight: 700;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

/* Categories dropdown */
.nav-mega-categories {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

/* Resources popover - position is set dynamically via JS */
.nav-mega-resources {
    background: #F5F5F5;
    width: 280px; /* tweak to match your design */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    position: absolute;
    top: 0; /* JS will overwrite */
    left: 0; /* JS will overwrite */
    z-index: 1050;
}

/* Highlight the active/expanded category row (pic 2/3) */
.nav-cat-row.active {
    background: #DCEFEA; /* light teal highlight */
    border-radius: 6px;
}

/*.nav-cat-row.active .nav-mega-arrow i {
    color: #0F766E;*/ /* teal arrow when active */
/*}*/

/* Ensure dropdown container is positioning context */
.nav-item.dropdown {
    position: relative;
}

.nav-mega-panel .dropdown-item {
    padding-top: 12px;
    padding-bottom: 12px;
}

.nav-mega-arrow {
    text-decoration: none;
}

.form-check-input {
    flex: 0 0 auto; /* shorthand for flex-grow:0; flex-shrink:0; flex-basis:auto */
}

/* Style option with value="" */
.form-select:invalid {
    color: var(--light-gray) !important;
}
/* Keep everything else at defaults */
.form-select:invalid option:not([disabled]) {
    color: var(--bs-body-color);
}

/* Custom styles for the search bar */
.search-input {
    border-radius: var(--btn-border-radius) 0 0 var(--btn-border-radius);
    border: 1px solid var(--light-gray);
    border-right: none;
    padding-left: 15px;
    height: 40px;
}

.search-button {
    border-radius: 0 var(--btn-border-radius) var(--btn-border-radius) 0 !important;
    border: 1px solid var(--light-gray);
    border-left: none;
    height: 40px;
    color: var(--light-gray);
}

.search-button:hover {
    background-color: #e9e9e9;
    color: #333;
}

/* Primary Navigation Styles */
.navbar-brand {
    padding: 0;
}

.nav-link {
    color: black;
}

.dropdown-item:active {
    background-color: #e9e9e9;
    color: initial;
}

.dropdown-toggle::after {display: none}

.navbar-item-highlighted, .dropdown-toggle[aria-expanded="true"], .dropdown-toggle-mobile[aria-expanded="true"], .dropdown-toggle[aria-expanded="true"] + .bi-chevron-down {
    color: var(--dark-teal) !important;
    text-decoration-line: underline !important;
    text-decoration-thickness: 2px;
    text-underline-offset: 7px;
}

/* when we add the .no-scroll class to <body>, it won’t scroll */
body.no-scroll {
    overflow: hidden;
    height: 100%; /* ensure mobile doesn’t “bounce” past */
}

/* make your popup scrollable when it overflows the viewport */
.mobile_navbar_selector {
    max-height: 100vh; /* don’t grow past the screen */
    overflow-y: auto; /* allow vertical scroll */
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

/* Responsive Navigation Functionality and Appearance */

@media (min-width: 991.98px) {
    #navbarNav {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0,0,0,0);
        white-space: nowrap;
        border: 0;
    }
}

/* Make collapse fill full screen on small viewports */
@media (max-width: 991.98px) {
    .navbar-collapse.slide-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background-color: white;
        transition: right 0.3s ease-in-out;
        z-index: 1050;
        padding: 20px 30px;
    }

    .navbar-collapse.slide-right.show {
        right: 0;
    }
}


/* Buttons */
.btn {
    border-radius: var(--btn-border-radius);
    font-size: var(--font-size-mobile-button);
    font-weight: 500;
    padding: 0.4rem 1rem;
}

.btn-sm {
    font-weight: 400;
    font-size: 13px;
}

.btn-lg {
    font-weight: 600;
    font-size: 16px;
    padding: 12px 20px
}

.btn-rounded {
    border-radius: 999px;
}

/* Thicker outline borders for large outlined buttons */
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-dark,
.btn-outline-light {
    border-width: 2px; /* default is 1px */
}

.btn-secondary {
    background-color: var(--off-black);
}

.btn-outline-secondary {
    color: var(--light-gray);
    border-color: var(--light-gray);
}

.btn-success {
    background-color: var(--dark-teal);
}

.btn-success:hover, .btn-success:focus {
    background-color: var(--dark-teal);
}

.btn-success:disabled {
    border-color: var(--light-gray);
    background-color: var(--light-gray);
}

.btn-outline-success, .btn-outline-success:hover, .btn-outline-success:active, .btn-outline-success:focus {
    color: var(--dark-teal) !important;
    border-color: var(--dark-teal) !important;
    background-color: transparent !important;
}

.btn-light .btn-light:hover, .btn-light:focus {
    color: transparent;
}

.btn-dark {
    background-color: var(--off-black);
}

.btn-outline-dark {
    color: var(--off-black);
    border-color: var(--off-black);
}
.btn-outline-dark:hover {
    background-color: var(--off-black);
    color: white;
}

@media (min-width: 992px) {
    .btn-lg-light, .btn-lg-light:hover, .btn-lg-light:focus, .btn-lg-light:active {
        color: var(--dark-teal) !important;
        background-color: white !important;
        border-color: white !important;
    }
    .btn-lg-outline-light, .btn-lg-outline-light:hover, .btn-lg-outline-light:focus, .btn-lg-outline-light:active {
        color: white !important;
        background-color: transparent !important;
        border-color: white !important;
    }
}

@media (max-width: 576px) {
    .btn-sm-wfill {
        width: 100%;
    }
}

/* Colors */
.bg-light {
    background-color: var(--white)
}

.bg-light-gray {
    background-color: var(--light-gray);
}

.bg-lighter-teal {
    background-color: var(--lighter-teal);
}

.bg-light-teal {
    background-color: var(--light-teal) !important;
}

.bg-dark-teal {
    background-color: var(--dark-teal) !important;
}

.color-dark-teal {
    color: var(--dark-teal) !important;
}

.color-lighter-teal {
    color: var(--lighter-teal) !important;
}

.color-light-teal {
    color: var(--light-teal) !important;
}

.color-warning-dark-red {
    color: var(--warning-dark-red) !important;
}

.color-off-black {
    color: var(--off-black) !important;
}


.border-color-off-black {
    border-color: var(--off-black) !important;
}

/* make sure the button is positioned relatively */
.accordion-button {
    position: relative;
}

/* reposition the built-in ::after icon */
.accordion-button::after {
    /* take it out of the right-corner flow */
    right: auto;
    /* position it by its center */
    left: 50%;
    /* pull it back by half its own width */
    transform: translateX(-20%)
    /* (optionally) translateY(-50%) to also center vertically */
    translateY(-20%);
    /* vertically center it too */
    top: 50%;
}
/* when expanded, also rotate it */
.accordion-button:not(.collapsed)::after {
    /* keep all the centering above, plus the 180° flip */
    transform: translate(-20%, -20%) rotate(180deg) !important;
}

/* Accordions */
.accordion-button:focus {
    box-shadow: none; /* Removes the blue focus ring */
    outline: none; /* Removes default outline */
}

.accordion-button:not(.collapsed) {
    background-color: transparent; /* Or any color you prefer */
    color: inherit; /* Prevent forced color change */
}

/* Text inputs */
.input-custom-underline {
    border: none;
    border-bottom: 1px solid #333;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
}

.input-custom-underline:focus {
    border-bottom: 2px solid #000;
    outline: none;
    box-shadow: none;
}

/* Borders */
.border-success {
    border-color: var(--dark-teal) !important;
}

.pill-left-border-body {
    position: relative;
    padding-left: 1.5rem;
    border-radius: var(--btn-border-radius);
}

.pill-left-border-body.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 7px;
    height: 100%;
    background-color: var(--dark-teal);
    border-radius: 999px;
}

.teal-divider {
    height: 1rem;
    background-color: var(--lighter-teal);
    border: none;
    margin: 0;
}

.carousel-item {
    transition: opacity 0.6s ease-in-out;
}

/* Responsive adjustments for dual navigation */
@media (max-width: 991.98px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Misc */
.usr-w-100 {
    width: 100%;
}

.inactive {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}

.invisible {
    opacity: 0;
}

.w-0 {
    width: 0;
}

.footer-links {
    width: auto;
}

@media (min-width: 576px) {
    .footer-links {
        width: 75%;
    }
}

/* Registration Model styles*/ 
.demo-registration-modal {
    --bs-modal-width: 80vw;
}

.demo-registration-modal .modal-content {
    width: 90vw;
    border-radius: var(--ui-element-border-radius);
}

.demo-registration-banner {
    padding: 38px 37px;
}

.demo-registration-form-wrapper {
    padding: 32px 32px
}

.demo-registration-free-trial-step {
    padding-top: 3rem;
}

.demo-registration-free-trial-title {
    font-size: 26px;
    line-height: 1.15;
}

.demo-registration-free-trial-check-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    color: var(--off-black);
}

.demo-registration-free-trial-check-row .form-check-input {
    margin-top: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-width: 3px;
}

.demo-registration-free-trial-indicators {
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-registration-free-trial-indicators span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background-color: #80cfc7;
}

.demo-registration-free-trial-indicators span.active {
    background-color: var(--dark-teal);
}

@media (max-width: 767.98px) {
    .demo-registration-free-trial-title {
        font-size: 22px;
    }

    .demo-registration-free-trial-check-row {
        font-size: 16px;
    }

    .demo-registration-free-trial-check-row .form-check-input {
        width: 1.4rem;
        height: 1.4rem;
        border-width: 2px;
    }
}

@media (min-width: 1200px) {
    .demo-registration-modal .modal-content {
        width: 1147px;
    }

    .demo-registration-banner {
        padding: 60px;
        min-height: 500px;
    }

    demo-registration-form-wrapper {
        padding: 70px 40px
    }
}
#demo-ready-modal {
    background: url('/images/demo_ready_bg.png');
    background-size: cover;
    padding: 0 32px;
    min-height: 500px;
}

@media (min-width: 992px) {
    #demo-ready-modal {
        padding: 60px 180px;
    }
}
.embedded-messaging > .embeddedMessagingFrame {
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0) !important;
}
@media (max-width: 639px) {
    .embedded-messaging > .embeddedMessagingFrame[class~="maximized"] {
        max-height: 87vh !important;
    }
}

/* Custom Bootstrap Accordion Styles */
.accordion {
    --bs-accordion-border-width: 0;
    --bs-accordion-border-radius: 0;
    gap: 1rem; /* Space between accordion items */
}

.accordion-item {
    background-color: var(--light-teal); /* Light teal background */
    border: none !important;
    border-radius: 12px !important;
    margin-bottom: 1rem;
    box-shadow: none;
}

.accordion-button {
    background-color: var(--light-teal) !important;
    border: none !important;
    border-radius: var(--btn-border-radius) !important;
    color: black !important;
    font-weight: 500;
    padding: 1.25rem 1.5rem;
    box-shadow: none !important;
    position: relative;
}

    .accordion-button:not(.collapsed) {
        background-color: var(--light-teal) !important;
        color: black !important;
        box-shadow: none !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    .accordion-button:focus {
        border-color: transparent !important;
        box-shadow: none !important;
    }

    .accordion-button:not(.collapsed)::after {
        transform: rotate(180deg);
    }

.accordion-collapse {
    border: none !important;
}

.accordion-body {
    background-color: var(--light-teal);
    border-radius: 0 0 12px 12px;
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: black;
}

/* Remove default Bootstrap accordion borders and shadows */
.accordion-item:first-of-type .accordion-button {
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

.accordion-item:last-of-type .accordion-button.collapsed {
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}
