/* MediRoles hero video background */
.banner-hero.hero-2.has-video-bg {
    background-image: none !important;
    overflow: hidden;
    position: relative;
}

/* Theme default overlay is opacity .8 — too strong for video */
.banner-hero.hero-2.has-video-bg:before {
    background: transparent !important;
    opacity: 0 !important;
}

.banner-hero.hero-2.has-video-bg .hero-video-wrap {
    bottom: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 0;
}

.banner-hero.hero-2.has-video-bg .hero-video-bg {
    height: 100%;
    left: 50%;
    min-height: 100%;
    min-width: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.banner-hero.hero-2.has-video-bg .hero-video-overlay {
    background: linear-gradient(180deg, rgba(6, 39, 95, .18) 0%, rgba(0, 87, 184, .12) 55%, rgba(6, 39, 95, .22) 100%);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

.banner-hero.hero-2.has-video-bg .banner-inner {
    position: relative;
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    .banner-hero.hero-2.has-video-bg .hero-video-bg {
        display: none;
    }
}

/* Force flat top nav: no dropdown for Home / Find a Job / Companies */
.header .main-menu > li > .sub-menu,
.mobile-header-wrapper-inner .main-menu > li > .sub-menu,
.burger-icon-active .main-menu > li.has-children > .sub-menu {
    display: none !important;
}

.header .main-menu > li.has-children > a .arrow-down,
.mobile-header-wrapper-inner .main-menu > li.has-children > a .arrow-down {
    display: none !important;
}

.header .main-menu > li.has-children:hover > .sub-menu,
.header .main-menu > li.has-children:focus-within > .sub-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Chat widgets (Tidio, Crisp, WhatsApp, Tawk, etc.) */
#tidio-chat,
#tidio-chat-iframe,
#crisp-chatbox,
#tawk-bubble-container,
.tawk-min-container,
.intercom-lightweight-app,
.intercom-app,
.wa-widget,
.drift-frame-controller,
#hubspot-messages-iframe-container,
[class*="chat-widget"],
[class*="ChatWidget"],
[class*="chat-button"],
[class*="chatButton"],
iframe[title*="chat" i],
a[href*="wa.me"],
a[href*="api.whatsapp.com"],
div[id*="chat" i][style*="fixed"],
button[id*="chat" i][style*="fixed"] {
    z-index: 10050 !important;
}

/* Keep scroll-to-top above page content but below chat */
#scrollUp {
    z-index: 1000 !important;
}

.footer .currency-switch,
.footer .btn-currency-footer,
.nav.float-right.language-switcher-footer {
    position: relative;
    z-index: 100;
}

/* Registration — horizontal account type cards */
.mediroles-register-form .account-type-selection .row {
    --bs-gutter-x: 1rem;
}

.mediroles-register-form .account-type-card {
    border: 2px solid #e8edf5;
    border-radius: 16px;
    min-height: 140px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.mediroles-register-form .account-type-option input:checked + .account-type-label .account-type-card {
    border-color: #12A8AD;
    box-shadow: 0 8px 24px rgba(18, 168, 173, .15);
}

.mediroles-register-form .account-type-option input[value="employer"]:checked + .account-type-label .account-type-card {
    border-color: #0057B8;
    box-shadow: 0 8px 24px rgba(0, 87, 184, .15);
}

.mediroles-register-form .account-type-content h6 {
    color: #06275F;
    font-weight: 700;
}

/* How It Works — toggle card */
.mediroles-how-it-works .hiw-card {
    background: #f8fafc;
    border: 1px solid #e6eef8;
    border-radius: 20px;
    padding: 24px;
}

.mediroles-how-it-works .hiw-toggle {
    background: #eef2f7;
    border-radius: 999px;
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    padding: 6px;
}

.mediroles-how-it-works .hiw-toggle-btn {
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: #667085;
    flex: 1;
    font-weight: 600;
    padding: 12px 16px;
}

.mediroles-how-it-works .hiw-toggle-btn.is-active[data-hiw-tab="candidates"] {
    background: #12A8AD;
    color: #fff;
}

.mediroles-how-it-works .hiw-toggle-btn.is-active[data-hiw-tab="employers"] {
    background: #0057B8;
    color: #fff;
}

.mediroles-how-it-works .hiw-panel {
    display: none;
}

.mediroles-how-it-works .hiw-panel.is-active {
    display: block;
}

.mediroles-how-it-works .hiw-step {
    align-items: flex-start;
    border-top: 1px solid #e6eef8;
    display: flex;
    gap: 16px;
    padding: 20px 0;
}

.mediroles-how-it-works .hiw-step:first-child {
    border-top: 0;
    padding-top: 0;
}

.mediroles-how-it-works .hiw-step-number {
    align-items: center;
    border-radius: 12px;
    color: #fff;
    display: flex;
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.mediroles-how-it-works .hiw-step-number--candidate {
    background: #12A8AD;
}

.mediroles-how-it-works .hiw-step-number--employer {
    background: #0057B8;
}

.mediroles-how-it-works .hiw-step-title {
    color: #06275F;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.mediroles-how-it-works .hiw-step-text {
    color: #667085;
    margin: 0;
}

.mediroles-how-it-works .hiw-visual {
    position: relative;
}

.mediroles-how-it-works .hiw-visual-blob {
    background: #06275F;
    border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
    height: 420px;
    position: absolute;
    right: 0;
    top: 20px;
    width: 85%;
    z-index: 0;
}

.mediroles-how-it-works .hiw-visual-photo {
    border-radius: 24px;
    display: block;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

@media (max-width: 991px) {
    .mediroles-how-it-works .hiw-toggle {
        flex-direction: column;
    }

    .mediroles-how-it-works .hiw-visual-blob {
        height: 280px;
    }
}
