html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.app-shell,
body.locum-shell {
    font-family: 'Inter', system-ui, sans-serif;
    color: #31465b;
}

.app-shell {
    background:
        radial-gradient(circle at top right, rgba(255, 210, 150, 0.24), transparent 30%),
        linear-gradient(180deg, #7e9bb8 0%, #aabed1 40%, #f5f1ea 40%, #f5f1ea 100%);
}

.home-page {
    position: relative;
}

.home-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.18), transparent 22%),
        radial-gradient(circle at 80% 0%, rgba(255, 222, 178, 0.20), transparent 18%);
    pointer-events: none;
}

.home-page > section {
    position: relative;
    z-index: 1;
}

.marketing-hero,
.recruitment-hero {
    padding: 2rem 0 5rem;
}

.home-hero {
    background:
        linear-gradient(180deg, rgba(26, 44, 68, 0.50), rgba(26, 44, 68, 0.34)),
        url('../img/banner/landing-banner.png') center/cover no-repeat;
    padding-bottom: 4rem;
}

.home-hero .container {
    position: relative;
    z-index: 1;
}

.marketing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 4rem;
}

.marketing-nav-light {
    padding-bottom: 3rem;
}

.brand-logo {
    max-height: 48px;
    width: auto;
}

.hero-badge {
    display: inline-flex;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    color: #fff7ea;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.hero-badge-dark {
    background: rgba(78, 109, 140, 0.10);
    color: #5a7897;
}

.marketing-hero h1,
.recruitment-hero h1,
.portal-login-brand h1,
.register-intro h1 {
    color: #fff;
    font-size: clamp(2.3rem, 5vw, 4.75rem);
    line-height: 0.95;
    margin: 1rem 0 1.25rem;
    max-width: 10ch;
}

.recruitment-hero h1 {
    color: #536b84;
}

.hero-copy {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    max-width: 40rem;
}

.hero-panel,
.register-shell,
.portal-login,
.dashboard-hero-card,
.feature-card,
.metric-card,
.locum-sidebar,
.locum-topbar,
.bank-summary {
    border-radius: 1.5rem;
}

.hero-panel {
    background: rgba(255, 255, 255, 0.92);
    padding: 1.5rem;
    box-shadow: 0 16px 40px rgba(68, 90, 114, 0.12);
}

.home-panel {
    backdrop-filter: blur(8px);
    margin-top: 20rem;
}

.hero-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(16, 32, 51, 0.08);
}

.hero-metric:last-child {
    border-bottom: 0;
}

.hero-metric span {
    color: #7f91a3;
    font-size: 0.9rem;
}

.hero-metric strong {
    font-size: 1.05rem;
}

.marketing-section {
    padding: 4rem 0 5rem;
}

.what-we-offer-section {
    background: #f5f1ea;
    padding-top: 2rem;
}

.section-heading {
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-heading h2 {
    color: #33485e;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    margin: 1rem auto 0.75rem;
    max-width: 20ch;
}

.section-heading p {
    color: #5f7286;
    max-width: 54rem;
    margin: 0 auto;
}

.section-heading.text-start {
    text-align: left;
}

.section-heading.text-start h2,
.section-heading.text-start p {
    margin-left: 0;
    margin-right: 0;
}

.home-quick-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}

.home-quick-facts div {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1rem;
    padding: 1rem;
    color: #fff;
}

.home-quick-facts strong,
.home-quick-facts span {
    display: block;
}

.home-quick-facts strong {
    margin-bottom: 0.35rem;
}

.home-quick-facts span {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.90);
    padding: 1.6rem;
    box-shadow: 0 14px 32px rgba(76, 96, 118, 0.08);
    height: 100%;
}

.feature-card.light,
.feature-card.compact {
    background: #fff;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.flexibility-banner-wrap {
    padding-top: 0;
}

.flexibility-banner {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(249, 242, 233, 0.96)),
        linear-gradient(160deg, rgba(224, 199, 167, 0.25), rgba(126, 155, 184, 0.14));
    border: 1px solid rgba(98, 120, 144, 0.12);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 18px 44px rgba(79, 95, 114, 0.10);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.flexibility-banner h2 {
    color: #30465b;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    margin: 0.9rem 0 0.7rem;
}

.flexibility-banner p {
    color: #5f7286;
    max-width: 48rem;
    margin-bottom: 0;
}

.feature-kicker {
    margin-bottom: 0.75rem;
    color: #b07b49;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.recruitment-page {
    background: linear-gradient(180deg, #f3efe7 0%, #faf8f4 100%);
    min-height: 100vh;
}

.recruitment-card-stack {
    display: grid;
    gap: 1rem;
}

.portal-login,
.register-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
    width: 100%;
    max-width: 100%;
}

.portal-login-brand,
.register-intro {
    background: linear-gradient(160deg, #8ea8bf 0%, #98b8cb 52%, #d7b18a 100%);
    padding: 4rem;
    color: #fff;
}

.portal-brand-logo-wrap {
    display: flex;
    justify-content: flex-start;
}

.portal-login-form .hero-badge {
    align-self: flex-start;
}

.portal-login-title {
    font-size: clamp(1.9rem, 3.3vw, 3.2rem);
    max-width: 60%;
}

.portal-login-form,
.register-form {
    background: #fdfbf8;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #4a6076;
    min-width: 0;
}

.portal-login-form h2,
.portal-login-form label,
.portal-login-form .small,
.portal-login-form .text-muted {
    color: #4a6076 !important;
}

.portal-note-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.portal-note-grid div {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 1rem;
    padding: 1rem;
}

.portal-note-grid strong,
.portal-note-grid span {
    display: block;
}

.portal-note-grid span {
    color: rgba(255, 255, 255, 0.88);
    margin-top: 0.25rem;
}

.locum-login-brand-copy,
.locum-login-brand-copy .portal-login-title,
.locum-login-brand-copy .hero-copy,
.locum-login-brand-copy .portal-note-grid strong,
.locum-login-brand-copy .portal-note-grid span {
    color: #111 !important;
}

.locum-login-brand-copy .portal-login-title {
    padding-top: 2rem;
}

.register-page {
    background: linear-gradient(180deg, #f1ede7 0%, #fdfbf8 100%);
    min-height: 100vh;
}

.register-shell {
    min-height: auto;
    box-shadow: 0 24px 60px rgba(80, 97, 117, 0.10);
    overflow: hidden;
}

.register-page .container,
.register-page .row,
.register-page [class*="col-"] {
    max-width: 100%;
}

.locum-shell {
    background: #f5f2ec;
    margin: 0;
}

.locum-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 320px 1fr;
    width: 100%;
    max-width: 100%;
}

.locum-sidebar {
    background: #fdfaf5;
    margin: 1rem 0 1rem 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 16px 42px rgba(80, 97, 117, 0.08);
}

.locum-brand h1 {
    font-size: 1.8rem;
    margin: 0;
}

.locum-kicker {
    color: #b38963;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
}

.locum-profile-card {
    background: #f7f1ea;
    border-radius: 1.25rem;
    padding: 1rem;
    display: flex;
    gap: 0.9rem;
    align-items: center;
    margin: 1.5rem 0;
}

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #8ea8bf;
    color: #fff;
    font-weight: 700;
}

.locum-nav {
    display: grid;
    gap: 0.6rem;
}

.locum-nav-link {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.9rem 1rem;
    color: #53697f;
    text-decoration: none;
    border-radius: 1rem;
    transition: 0.2s ease;
}

.locum-nav-link.active,
.locum-nav-link:hover {
    background: #dfe8ef;
    color: #47627c;
}

.locum-main {
    padding: 1rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.locum-topbar {
    background: rgba(253, 250, 245, 0.92);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 12px 28px rgba(80, 97, 117, 0.05);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.locum-content {
    display: grid;
    gap: 1rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.locum-content > * {
    min-width: 0;
    max-width: 100%;
}

.locum-topbar > .d-flex {
    width: 100%;
}

.locum-topbar .d-lg-none {
    margin-left: auto;
    flex-shrink: 0;
}

.dashboard-hero-card {
    background: linear-gradient(135deg, #a9bfd1 0%, #bdd0dd 65%, #e0c5a6 100%);
    color: #496278;
    padding: 1.75rem;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: end;
    width: 100%;
    min-width: 0;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 1rem;
    min-width: 0;
}

.metric-card {
    background: rgba(255, 255, 255, 0.24);
    padding: 1rem;
}

.metric-card span {
    display: block;
    color: rgba(73, 98, 120, 0.82);
    font-size: 0.82rem;
}

.metric-card strong {
    font-size: 1.8rem;
    line-height: 1.1;
}

.bank-summary {
    background: #f7f1ea;
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
}

.bank-summary span,
.bank-summary strong {
    display: block;
}

.locum-content .row,
.locum-content .card,
.locum-content .table-responsive,
.locum-content .dashboard-hero-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.locum-modal .modal-dialog {
    margin: 1rem auto;
}

.locum-modal .modal-content {
    border: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #fcfaf6;
    box-shadow: 0 24px 56px rgba(80, 97, 117, 0.16);
}

.locum-modal .modal-header {
    padding: 1.5rem 1.5rem 0.75rem;
    border-bottom: 0;
    background:
        linear-gradient(135deg, rgba(169, 191, 209, 0.95) 0%, rgba(189, 208, 221, 0.92) 62%, rgba(224, 197, 166, 0.94) 100%);
    color: #496278;
    align-items: flex-start;
}

.locum-modal .modal-header .btn-close {
    margin-top: 0.15rem;
}

.locum-modal-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.locum-modal-copy {
    color: rgba(73, 98, 120, 0.88);
    font-size: 0.92rem;
    margin: 0.35rem 0 0;
}

.locum-modal .modal-body {
    background: #fcfaf6;
    padding: 1.5rem;
}

.locum-modal .modal-footer {
    border-top: 0;
    background: #fcfaf6;
    padding: 0 1.5rem 1.5rem;
    gap: 0.75rem;
}

.locum-modal-panel {
    background: #fff;
    border: 1px solid rgba(83, 105, 127, 0.10);
    border-radius: 1.25rem;
    padding: 1rem;
    box-shadow: 0 8px 26px rgba(80, 97, 117, 0.08);
}

.locum-modal-summary-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a8ea2;
    margin-bottom: 0.35rem;
}

.locum-modal-summary-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #31465b;
    margin-bottom: 0;
}

.locum-modal-detail-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a8ea2;
    margin-bottom: 0.35rem;
}

.locum-modal-detail-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #31465b;
    margin-bottom: 0;
    word-break: break-word;
}

.notification-setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(83, 105, 127, 0.12);
    border-radius: 1rem;
    background: #fff;
}

.notification-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 999px;
    background: #dfe8ef;
    color: #47627c;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: help;
}

.notification-help-popover {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    width: min(20rem, 80vw);
    padding: 0.75rem 0.9rem;
    border-radius: 0.9rem;
    background: #31465b;
    color: #fff;
    font-size: 0.8rem;
    line-height: 1.45;
    box-shadow: 0 14px 32px rgba(49, 70, 91, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 20;
}

.notification-help:hover .notification-help-popover,
.notification-help:focus .notification-help-popover,
.notification-help:focus-within .notification-help-popover {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 991px) {
    .locum-layout,
    .portal-login,
    .register-shell {
        grid-template-columns: 1fr;
    }

    .locum-layout {
        display: block;
    }

    .locum-sidebar {
        display: none;
    }

    .locum-main {
        padding: 0.75rem;
    }

    .dashboard-hero-card {
        flex-direction: column;
        align-items: stretch;
    }

    .register-page .container {
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (max-width: 767px) {
    .marketing-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .marketing-hero h1,
    .recruitment-hero h1,
    .portal-login-brand h1,
    .register-intro h1 {
        font-size: 2.5rem;
    }

    .portal-login-brand,
    .portal-login-form,
    .register-intro,
    .register-form {
        padding: 2rem 1.25rem;
    }

    .portal-login,
    .register-shell {
        min-height: 100dvh;
    }

    .portal-login-title {
        max-width: 100%;
    }

    .hero-copy {
        max-width: 100%;
    }

    .home-hero {
        background:
            linear-gradient(180deg, rgba(26, 44, 68, 0.82), rgba(26, 44, 68, 0.68)),
            url('../img/banner/landing-banner.png') center top / cover no-repeat;
        background-color: #7e9bb8;
        padding-top: 1.5rem;
        padding-bottom: 3rem;
    }

    .home-hero .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .home-panel {
        margin-top: 1.25rem;
    }

    .home-quick-facts,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .flexibility-banner {
        padding: 1.4rem;
        border-radius: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .locum-topbar {
        padding: 1rem 1.1rem;
    }

    .locum-content .row {
        --bs-gutter-x: 0.9rem;
    }

    .notification-setting {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }

    .locum-modal .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
    }

    .locum-modal .modal-content {
        min-height: 100dvh;
        border-radius: 0;
    }

    .locum-modal .modal-header {
        padding: 1rem 1rem 0.75rem;
    }

    .locum-modal .modal-body {
        padding: 1rem;
    }

    .locum-modal .modal-footer {
        padding: 0 1rem 1rem;
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .locum-modal .modal-footer .btn {
        width: 100%;
    }

    .locum-modal-summary-value {
        font-size: 1rem;
    }
}
