:root {
    --primary: #0078A3;
    --secondary: #009ED7;
}

.navbar-expand-lg .navbar-nav>.nav-item.dropdown>.nav-link:after {
    display: none;
}

.navbar-expand-lg .navbar-nav>.nav-item:hover>.dropdown-menu,
.navbar-expand-lg .navbar-nav>.nav-item:focus>.dropdown-menu,
.navbar-expand-lg .navbar-nav>.nav-item:active>.dropdown-menu {
    opacity: 1;
    pointer-events: auto;
}

.dropdown-item:hover {
    color: var(--primary);
}

.dropdown-item:active {
    background-color: var(--primary);
    color: #fff !important;
}

body {
    color: #647285;
}

a {
    color: #0078D4;
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-accent-bg: #F6F8FB !important;
}

.table {
    --bs-table-color: #393d42;
    --bs-table-striped-color: #393d42;
}

.blockquote-footer {
    color: #677488;
}

.coursePage a {
    text-decoration: underline !important;
}

.coursePage a:hover,
.coursePage a:focus {
    text-decoration: none !important;
}

.bg-section {
    background-size: 100%;
    background-position-y: 100%;
}

.min-vh-30 {
    min-height: 30vh !important;
}

.min-vh-25 {
    min-height: 25vh !important;
}

.min-vh-20 {
    min-height: 20vh !important;
}

.min-vh-15 {
    min-height: 15vh !important;
}

.wrapper {
    overflow: hidden;
}

.hover-top:hover {
    transform: translateY(-7px);
}

.coursePills h2 {
    color: #0c0c0c;
    text-decoration: none;
    position: relative;
    cursor: pointer !important;
    transition: color 0.7s;
    padding-bottom: 4px;
}

.coursePills h2:hover {
    color: #383838;
}

.coursePills:after {
    background: none repeat scroll 0 0 transparent;
    bottom: 0;
    content: "";
    display: block;
    height: 3px;
    left: 50%;
    position: absolute;
    background: var(--primary);
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
    width: 0;
}

.coursePills:hover:after {
    width: 100%;
    left: 0;
}

a.nav-link {
    text-decoration: none;
    display: inline-block;
    padding: 22px 20px 13px 20px;
    position: relative;
    cursor: pointer !important;
    transition: color 0.7s;
}

a.nav-link:hover {
    cursor: pointer !important;
    color: var(--primary);
}

a.nav-link:after {
    background: none repeat scroll 0 0 transparent;
    bottom: 0;
    content: "";
    display: block;
    height: 3px;
    left: 50%;
    position: absolute;
    background: var(--primary);
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
    width: 0;
}

a.nav-link:hover:after {
    width: 100%;
    left: 0;
}

.btn-outline-primary {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
    --bs-btn-focus-shadow-rgb: 0, 138, 255;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary);
    --bs-btn-active-border-color: var(--primary);
    --bs-btn-active-shadow: unset;
    --bs-btn-disabled-color: var(--primary);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--primary);
    --bs-gradient: none;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #004d69;
    --bs-btn-hover-border-color: #004d69;
    --bs-btn-focus-shadow-rgb: 38, 156, 255;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #004d69;
    --bs-btn-active-border-color: #004d69;
    --bs-btn-active-shadow: unset;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--primary);
    --bs-btn-disabled-border-color: var(--primary);
}

.btn-outline-primary:hover {
    cursor: pointer !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-danger {
    color: #D24152 !important;
}

.btn-danger {
    --bs-btn-color: #fff;
    --bs-btn-bg: #D24152;
    --bs-btn-border-color: #D24152;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #d94e63;
    --bs-btn-hover-border-color: #cc4a5e;
    --bs-btn-focus-shadow-rgb: 255, 116, 138;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #cc4a5e;
    --bs-btn-active-border-color: #bf4558;
    --bs-btn-active-shadow: unset;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #D24152;
    --bs-btn-disabled-border-color: #D24152;
}

.bg-dark {
    background-color: #8d54a2;
}

.bg-dark-2 {
    background-color: #754788;
}

.underline {
    text-decoration: underline !important;
}

.underline:hover,
.underline:focus {
    text-decoration: none !important;
}

.hidden {
    display: none;
}

.btn-outline-danger {
    --bs-btn-color: #C04558;
    --bs-btn-border-color: #C04558;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #C04558;
    --bs-btn-hover-border-color: #C04558;
    --bs-btn-focus-shadow-rgb: 255, 92, 117;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #C04558;
    --bs-btn-active-border-color: #C04558;
    --bs-btn-active-shadow: unset;
    --bs-btn-disabled-color: #C04558;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #C04558;
    --bs-gradient: none;
}

.already-schedule {
    position: absolute;
    top: 130px;
    left: 0px;
    background: #8d54a2;
    padding: 5px 19px;
    font-size: 1.05em;
    color: #fff;
}

.alert-danger a {
    color: #0067B6 !important;
}

.btn-danger.disabled {
    background-color: #C54F5F;
}

.skippy {
    background: #764788;
    color: #fff;
    left: 0;
    position: absolute;
    text-align: center;
    top: 0px;
    width: 100%;
    z-index: 5000;
}

.skippy a {
    position: absolute;
    clip: rect(0 0 0 0);
    background: #f4f4f4;
}

.skippy a:focus {
    clip: rect(auto, auto, auto, auto);
    height: inherit;
    margin: inherit;
    overflow: inherit;
    position: static;
    width: inherit;
    color: #fff;
    background: #282828;
    padding: 5px 10px;
}

a:focus-visible,
a:focus {
    outline: 3px solid #0078D4 !important;
    outline-offset: 0 !important;
    border: 2px solid #ffffff !important;
    /* changed color to black */
}

.text-body-2 {
    color: #647285;
}

#monerisCheckout-Frame {
    padding-top: 25px;
    min-height: 650px !important;
}

#back_button {
    display: none;
}

#continue-shopping,
.text-action {
    display: none;
}

.total-row {
    margin-top: 10px;
    margin-bottom: 10px;
}

.img-column img {
    height: 50px;
}

a.btn {
    text-decoration: none !important;
}

.btn-warning {
    --bs-btn-color: #fff;
    --bs-btn-bg: #E65C00;
    --bs-btn-border-color: #E65C00;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgb(176, 108, 13);
    --bs-btn-hover-border-color: #cc7f16;
    --bs-btn-focus-shadow-rgb: 255, 173, 62;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgb(176, 108, 13);
    --bs-btn-active-border-color: rgb(176, 108, 13);
    --bs-btn-active-shadow: unset;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #E65C00;
    --bs-btn-disabled-border-color: #E65C00;
}

.cartCountParent {
    position: relative;
}

.cartCount {
    position: absolute !important;
    top: -13px !important;
    left: -13px !important;
    font-size: 1.05em !important;
}

.see-menu {
    opacity: 1 !important;
}

.search-menu:focus {
    border: 2px solid #fff;
    outline: 2px solid #0045ff;
}

.form-control:focus {
    border-color: #0078A3;
    border-width: 2px;
}

/** a.searchCard when in focus find child .card and style with border **/
.searchCard:focus .card {
    border: 3px solid #0078A3;
}

.searchCard:focus {
    border: 0 !important;
    outline: 0 !important;
}

.dropdown-item:focus,
.dropdown-item:hover {
    color: #fff !important;
    background-color: rgb(0 126 172) !important;
}


/* card images are added to card number */
#card-number {
    background-image: none;
    background-origin: content-box;
    background-position: calc(100%) center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* feedback is displayed after tokenization */
#feedback {
    position: relative;
    left: 15px;
    display: inline-block;
    background-color: transparent;
    border: 0px solid rgba(200, 200, 200, 1);
    border-radius: 4px;
    transition: all 100ms ease-out;
    padding: 11px;
}

#feedback.error {
    color: #d8000c;
    border: 1px solid;
}

#feedback.success {
    color: seagreen;
    border: 1px solid;
}

.text-success {
    color: #19864D !important;
}

.typeOfUserPill:hover .h5,
.typeOfUserPill:focus .h5 {
    color: #fff !important;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    transition: transform 0.9s ease;
}

/* Change text wrap for buttons to auto */
.btn {
    text-wrap: auto !important;
}

.progress-bar {
    background-color: #0078A3;
}

/* Add this in the header or in your CSS file */
.btn-outline-primary:focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
    position: relative;
    z-index: 5;
}

.btn-group .btn-outline-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.35);
    position: relative;
    z-index: 5;
}

/* Improve contrast for focus state */
.btn-check:focus+.btn-outline-primary {
    background-color: rgba(0, 126, 172, 0.9);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.35);
    position: relative;
    z-index: 5;
    color: #fff;
}

/* Custom checkbox styles - Fixed for both keyboard and mouse */
.custom-checkbox {
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.custom-checkbox:hover {
    background-color: #f8f9fa;
    border-color: #0078A3;
}

.custom-checkbox .form-check-input {
    margin: 0;
    float: none;
    margin-left: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    order: 2;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.custom-checkbox .form-check-label {
    margin: 0;
    cursor: pointer;
    order: 1;
    flex-grow: 1;
    padding-right: 10px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

/* Remove the blocking pseudo-element and handle hover state differently */
.custom-checkbox:focus-within {
    border-color: #0078A3;
    box-shadow: 0 0 0 0.25rem rgba(0, 126, 172, 0.25);
}

.custom-checkbox .form-check-input:checked {
    background-color: #0078A3;
    border-color: #0078A3;
}

.custom-checkbox .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 126, 172, 0.25);
    border-color: #0078A3;
}

/* Keep the focus visible even when checked */
.btn-check:checked:focus+.btn-outline-primary {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.5);
}

/* Custom Submit Button Styles */
.evaluation-submit {
    --submit-color: #0B6E4F;
    /* Darker, more accessible green */
    --submit-hover: #085940;
    background-color: var(--submit-color);
    border-color: var(--submit-color);
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform-origin: center;
}

.evaluation-submit:hover,
.evaluation-submit:focus {
    background-color: var(--submit-hover);
    border-color: var(--submit-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 110, 79, 0.15);
}

.evaluation-submit::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: width 0.6s ease, height 0.6s ease;
}

.evaluation-submit:active::after {
    width: 200px;
    height: 200px;
    opacity: 0;
}

.evaluation-submit .fa-paper-plane {
    transition: transform 0.3s ease;
    display: inline-block;
}

.evaluation-submit:hover .fa-paper-plane {
    transform: translate(3px, -3px);
}

/* Add loading state animation */
.evaluation-submit.loading {
    padding-right: 35px;
    cursor: wait;
}

.evaluation-submit.loading::before {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: submit-loading 0.8s linear infinite;
}

.success-animation {
    margin: 0 auto;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4bb71b;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4bb71b;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4bb71b;
    fill: none;
    animation: stroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #4bb71b;
    }
}

@keyframes submit-loading {
    to {
        transform: rotate(360deg);
    }
}

@keyframes funBounce {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    80% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

.fun-heading {
    animation: funBounce 1s ease-out;
}

@media (max-width: 767.98px) {
    .bg-section {
        background-size: auto;
        background-position-y: 50%;
        background-position-x: 50%;
    }

    .min-vh-20 {
        min-height: 25vh !important;
    }

    h1.h2 {
        font-size: 1.35em !important;
        margin-top: 30px !important;
    }
}

@media (min-width: 992px) {
    .img-lg-140 {
        max-width: 130% !important;
    }

    .navbar-expand-lg .navbar-nav .dropdown-menu {
        border-top: 2px solid #0078A3;
    }
}

/* Add smooth scrolling behavior site-wide */
html {
    scroll-behavior: smooth;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Error message styles */
#stepErrorContainer {
    border-left: 5px solid #842029;
    background-color: #f8d7da;
    border-radius: 4px;
    margin-bottom: 1rem;
}

#stepErrorContainer .alert-heading {
    color: #842029;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

#stepErrorContainer .error-list {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin-bottom: 0;
    color: #842029;
}

#stepErrorContainer:focus {
    outline: 3px solid #842029;
    outline-offset: 2px;
}

/* Validation styles */
.btn-group.was-validated .btn-outline-primary {
    border-color: #dc3545;
}

.btn-group.was-validated .btn-outline-primary:hover {
    border-color: #dc3545;
}

/* Invalid state for radio button groups */
.btn-group.was-validated {
    position: relative;
}

.btn-group.was-validated .btn-outline-primary {
    border-color: #dc3545;
    position: relative;
    z-index: 1;
}

.btn-group.was-validated::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 6px;
    border: 1px solid #dc3545;
    z-index: 0;
}

.btn-group.was-validated .btn-outline-primary:hover,
.btn-group.was-validated .btn-outline-primary:focus {
    border-color: #dc3545;
}

.checkout-step .step-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background-color: #f8f9fa;
}
.checkout-step.active .step-icon,
.checkout-step.completed .step-icon {
    background-color: #e8f3ff;
}
.checkout-step a {
    text-decoration: underline;
}

.checkout-step a:hover, .checkout-step a:focus {
    text-decoration: none;
}

.text-muted {
    color: #69778A !important;
}

.account-type-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.account-type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.account-type-card[aria-checked="true"] {
    border-color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.selected-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--bs-primary);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.account-type-card[aria-checked="true"] .selected-indicator {
    opacity: 1;
    transform: scale(1);
}

.icon-wrapper {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-type-card:focus-visible {
    outline: 3px solid var(--bs-primary);
    outline-offset: 2px;
}

#theExam input[type=radio] {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #0078A3;
    border-radius: 50%;
    background-color: #fff;
    display: inline-block;
    vertical-align: middle;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 25px;

    &:checked {
        background-color: #0078A3;
        border-color: #0078A3;
    }

    &:focus {
        outline: 3px solid rgba(0, 126, 172, 0.5);
        outline-offset: 2px;
    }
}

.btn-success {
    background-color: #1B8652 !important;
}

.btn-success:hover {
    background-color: #177145 !important;
}
.btn-success:focus {
    background-color: #177145 !important;
}

/* Remove purple top bar on this form and enhance header */
#wcag-ondemand-page #checkout-form:before { display: none !important; }
.plan-title { text-align: left; letter-spacing: .2px; }
.plan-price {
    text-align: left;
    display: inline-block;
    padding: .38rem .85rem;
    border-radius: .75rem;
    background: var(--wcag-ondemand-gradient);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: .2px;
    line-height: 1;
    box-shadow: 0 10px 24px -12px rgba(117,72,135,.45), 0 4px 10px -6px rgba(0,0,0,.15);
}
.plan-price strong { color: inherit; }
.plan-price-line { text-align: left; }
.plan-price-sub { margin-left: .5rem; color: #6a788b; font-weight: 600; font-size: .95rem; vertical-align: middle; }

/* Field alignment + brand icon overlay in front of iframe */
#wcag-ondemand-page #checkout-form .form-control { height: 48px; display: flex; align-items: center; padding: .55rem .85rem; }
#wcag-ondemand-page #card-number,
#wcag-ondemand-page #card-cvv,
#wcag-ondemand-page #card-expiry { height: 48px; position: relative; }

/* Reserve room for the brand icon at the right of card number */
#wcag-ondemand-page #card-number { padding-right: 42px; }
#wcag-ondemand-page #card-number::after {
    content: "";
    position: absolute;
    right: 10px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 18px;
    background-image: var(--brand-icon-url);
    background-size: contain; background-repeat: no-repeat; background-position: center;
    pointer-events: none; z-index: 3; opacity: .98;
}

/* Bambora iframes consistent height */
#bambora-card-number, #bambora-cvv, #bambora-expiry { height: 48px !important; }

/* Accepted cards text + logo */
.payment-accepted { color: #364a5a; }
.worldline-logo { max-width: 240px; height: auto; display: block; margin: .25rem 0 0 0; }

/* Button polish */
#pay-button.btn { border-radius: .6rem; font-weight: 700; }

/* Scoped UI tweaks for credit card page */
#wcag-ondemand-page #checkout-form .form-control { height: 48px; display: flex; align-items: center; padding: .55rem .75rem; }
#wcag-ondemand-page #card-number,
#wcag-ondemand-page #card-cvv,
#wcag-ondemand-page #card-expiry { height: 48px; }
/* Bambora iframes typically use these IDs */
#bambora-card-number, #bambora-cvv, #bambora-expiry { height: 48px !important; }
.payment-accepted { color: #364a5a; }
.worldline-logo { max-width: 280px; height: auto; display: block; margin: .25rem 0 0 0; }
#pay-button.btn { border-radius: .6rem; font-weight: 700; }

/* Scoped enhancements for this page */
#wcag-ondemand-page .card { border-radius: 0.75rem; }
#wcag-ondemand-page .form-control, #wcag-ondemand-page .form-select { border-radius: 0.5rem; }
#wcag-ondemand-page header h1 { letter-spacing: 0.2px; }
#wcag-ondemand-page .btn { border-radius: 0.5rem; } 
.icon-xs {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.75rem;
    line-height: normal;
}
