/* ====================================================================
   SonarHealth Contractor Portal - Modern Clinical Login Styles
   Inspired by Sonar Health Comms & NHS Digital Design Systems
   ==================================================================== */

:root {
    --sonar-primary: #0284c7;
    --sonar-primary-hover: #0369a1;
    --sonar-teal: #0d9488;
    --sonar-cyan: #06b6d4;
    --sonar-emerald: #10b981;
    --sonar-nhs-blue: #005eb8;
    --sonar-nhs-dark: #003087;
    --sonar-dark-bg: #030712;
    --sonar-slate-900: #0f172a;
    --sonar-slate-800: #1e293b;
    --sonar-border-dark: rgba(148, 163, 184, 0.14);
    --sonar-card-glow: rgba(56, 189, 248, 0.15);
}

/* Base resets & typography for Login Page */
body.login-page-body {
    background: #020617;
    min-height: 100vh;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #0f172a;
    overflow-x: hidden;
}

.login-viewport-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: #020617;
}

/* ====================================================================
   LEFT COLUMN: Inspiring Brand & Clinical Showcase
   ==================================================================== */
.login-aside-modern {
    display: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #020617 0%, #0b1329 45%, #041e3a 100%);
    color: #ffffff;
    min-height: 100vh;
    border-right: 1px solid var(--sonar-border-dark);
    box-shadow: 12px 0 36px -12px rgba(0, 0, 0, 0.5);
    flex-direction: column;
    justify-content: space-between;
    padding: 2.75rem 3.5rem;
    z-index: 10;
}

@media (min-width: 992px) {
    .login-aside-modern {
        display: flex;
        flex: 1 1 54%;
        max-width: 55%;
    }
}

@media (min-width: 1400px) {
    .login-aside-modern {
        flex: 1 1 56%;
        max-width: 58%;
        padding: 3.25rem 4.5rem;
    }
}

/* Ambient blur orbs */
.aside-ambient-orb {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 1;
}

.ambient-orb-cyan {
    top: -5%;
    right: -5%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.16) 0%, transparent 70%);
    filter: blur(70px);
}

.ambient-orb-teal {
    bottom: -8%;
    left: -5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.14) 0%, transparent 70%);
    filter: blur(75px);
}

.ambient-orb-blue {
    top: 45%;
    left: 45%;
    transform: translate(-50%, -50%);
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
    filter: blur(90px);
}

/* Grid texture overlay */
.aside-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    opacity: 0.6;
    z-index: 2;
}

/* Content layer */
.aside-content-layer {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 100%;
}

/* Top Branding Bar */
.aside-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.brand-logo-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4), 0 0 15px rgba(6, 182, 212, 0.15);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.brand-logo-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.45);
}

.sonar-main-logo-img {
    height: 38px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.status-indicator-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(71, 85, 105, 0.6);
    border-radius: 9999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.live-pulse-container {
    position: relative;
    display: flex;
    width: 9px;
    height: 9px;
}

.live-pulse-ping {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background-color: var(--sonar-emerald);
    opacity: 0.75;
    animation: sonar-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.live-pulse-core {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 9999px;
    background-color: var(--sonar-emerald);
}

@keyframes sonar-ping {
    75%, 100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.status-indicator-text {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #cbd5e1;
}

/* Hero Section */
.aside-hero-section {
    margin: 1.5rem 0 2rem 0;
    max-width: 620px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 8px;
    color: #67e8f9;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}

.hero-main-title {
    font-size: 2.35rem;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin-bottom: 0.85rem;
}

@media (min-width: 1400px) {
    .hero-main-title {
        font-size: 2.85rem;
    }
}

.hero-gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #67e8f9 45%, #5eead4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-description {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 0;
}

/* Showcase Dashboard Card */
.showcase-dashboard-card {
    position: relative;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.55), 0 0 24px rgba(6, 182, 212, 0.1);
    margin: 1.5rem 0 2rem 0;
    transition: all 0.35s ease;
}

.showcase-dashboard-card:hover {
    border-color: rgba(56, 189, 248, 0.38);
    box-shadow: 0 28px 56px -12px rgba(0, 0, 0, 0.65), 0 0 32px rgba(6, 182, 212, 0.18);
}

.showcase-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.35rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.card-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(2, 132, 199, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 0.95rem;
}

.card-header-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.card-header-subtitle {
    font-size: 0.72rem;
    color: #64748b;
    margin: 0;
}

.badge-connected {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Feature grid items inside card */
.showcase-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.feature-tile {
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    transition: all 0.25s ease;
}

.feature-tile:hover {
    background: rgba(2, 6, 23, 0.8);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}

.tile-icon-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.tile-icon-box {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.tile-icon-blue {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.tile-icon-emerald {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.tile-icon-amber {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.tile-icon-purple {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.tile-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
}

.tile-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 0.2rem 0;
}

.tile-desc {
    font-size: 0.72rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

/* Telemetry Pills */
.showcase-telemetry-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.telemetry-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.73rem;
    color: #cbd5e1;
}

.telemetry-chip i {
    color: #38bdf8;
    font-size: 0.78rem;
}

/* Aside Footer */
.aside-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    font-size: 0.75rem;
    color: #64748b;
}

.aside-footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
}

.aside-footer-left i {
    color: #38bdf8;
}

.aside-footer-right {
    color: #64748b;
    font-weight: 500;
}


/* ====================================================================
   RIGHT COLUMN: Modern, Clean & Professional Login Container
   ==================================================================== */
.login-content-modern {
    flex: 1 1 46%;
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
    overflow-y: auto;
}

@media (min-width: 992px) {
    .login-content-modern {
        padding: 3rem 2.5rem;
    }
}

/* Ambient glow on right side */
.login-content-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.05) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

/* Mobile Brand Header */
.mobile-brand-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
    z-index: 10;
}

@media (min-width: 992px) {
    .mobile-brand-banner {
        display: none !important;
    }
}

.mobile-logo-card {
    display: inline-flex;
    padding: 8px 16px;
    background: #020617;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.85rem;
}

.mobile-logo-card img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* Primary Card Container */
.login-card-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 490px;
    margin: auto 0;
}

.login-auth-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 2.75rem 2.5rem;
    box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.03);
    transition: box-shadow 0.3s ease;
}

@media (max-width: 576px) {
    .login-auth-card {
        padding: 2rem 1.5rem;
        border-radius: 18px;
    }
}

.login-card-header {
    margin-bottom: 2rem;
    text-align: left;
}

.contractor-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.28rem 0.75rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 9999px;
    color: #0369a1;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.contractor-pill-badge i {
    color: #0284c7;
    font-size: 0.75rem;
}

.login-card-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.login-card-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* ====================================================================
   Modern Form Controls & React Form Overrides
   ==================================================================== */
#LoginContainer {
    width: 100%;
}

.login-auth-card .form-group {
    margin-bottom: 1.35rem;
}

.login-auth-card label,
.login-auth-card .form-label-custom {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.45rem;
    letter-spacing: 0.01em;
}

.modern-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.modern-input-group .input-icon-left {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 5;
    transition: color 0.2s ease;
}

.modern-input-group input.form-control,
.login-auth-card input.form-control-solid {
    width: 100% !important;
    height: 52px !important;
    padding: 0.75rem 1rem 0.75rem 2.85rem !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    background-color: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.modern-input-group input.form-control:focus,
.login-auth-card input.form-control-solid:focus {
    background-color: #ffffff !important;
    border-color: var(--sonar-primary) !important;
    box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.15) !important;
}

.modern-input-group:focus-within .input-icon-left {
    color: var(--sonar-primary);
}

.password-toggle-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: #0284c7;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.password-toggle-link:hover {
    color: #0369a1;
    text-decoration: underline;
}

.forgot-password-link {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0284c7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: #0369a1;
    text-decoration: underline;
}

/* Primary Button Styling */
.btn-sonar-submit {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    width: 100% !important;
    height: 52px !important;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.35) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    letter-spacing: 0.02em !important;
    text-align: center !important;
}

.btn-sonar-submit:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 24px -6px rgba(2, 132, 199, 0.45) !important;
    color: #ffffff !important;
}

.btn-sonar-submit:active {
    transform: translateY(0) !important;
}

/* Modern Or Divider */
.modern-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.85rem 0;
    color: #94a3b8;
}

.modern-login-divider::before,
.modern-login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.modern-login-divider span {
    padding: 0 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

/* ====================================================================
   NHS CIS2 Smartcard Button Card
   ==================================================================== */
.cis2-smartcard-card {
    display: block;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cis2-smartcard-card:hover {
    background: #ffffff;
    border-color: var(--sonar-nhs-blue);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(0, 94, 184, 0.18), 0 0 0 1px rgba(0, 94, 184, 0.15);
}

.cis2-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cis2-card-left {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.cis2-badge-icon-box {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--sonar-nhs-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 4px 10px rgba(0, 94, 184, 0.3);
}

.cis2-card-titles {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.cis2-card-main-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0;
}

.cis2-card-subtitle {
    font-size: 0.72rem;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
}

.cis2-card-arrow {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.cis2-smartcard-card:hover .cis2-card-arrow {
    background: var(--sonar-nhs-blue);
    color: #ffffff;
    transform: translateX(3px);
}

.cis2-official-svg-wrap {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
}

.cis2-official-svg-wrap img {
    height: 38px;
    width: auto;
    max-width: 100%;
    border-radius: 4px;
}

/* ====================================================================
   Trust & Compliance Badges
   ==================================================================== */
.login-trust-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.trust-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
}

.trust-badge-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.trust-badge-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.25;
}

/* Page Footer */
.login-page-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 490px;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
}

.footer-links-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-link-item {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link-item:hover {
    color: #0284c7;
    text-decoration: underline;
}

/* PIN Keypad Styling */
.keypad-pin-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e2e8f0;
    margin: 0 6px;
    transition: all 0.2s ease;
}

.keypad-pin-dot.active {
    background: #0284c7;
    transform: scale(1.15);
    box-shadow: 0 0 8px rgba(2, 132, 199, 0.4);
}

.keypad-btn-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none !important;
}

.keypad-btn-modern:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0369a1;
    transform: translateY(-1px);
}

/* Password Form & Advisory Helpers */
.password-tip-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.78rem;
    color: #0369a1;
    line-height: 1.45;
}

.password-tip-box i {
    color: #0284c7;
    font-size: 0.95rem;
    margin-top: 2px;
}

/* ====================================================================
   Location Selection Cards for UserHome
   ==================================================================== */
.location-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}

.location-option-card {
    display: block;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.15rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0;
    position: relative;
}

.location-option-card:hover:not(.disabled-card) {
    background: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.1);
    transform: translateY(-1px);
}

.location-option-card:has(input:checked),
.location-option-card.selected {
    background: #f0f9ff;
    border-color: #0284c7;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
}

.location-option-card.disabled-card {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f1f5f9;
}

.custom-radio-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-radio-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #0284c7;
}

.location-ods-chip {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 6px;
    background: #0284c7;
    color: #ffffff;
}

.location-name-text {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 2px;
}

.location-address-text {
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 500;
}

/* Location Table Style Layout */
.location-table-container {
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.location-modern-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.location-modern-table thead th {
    background-color: #f8fafc;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 0.85rem;
    border-bottom: 1.5px solid #e2e8f0;
    border-top: none;
    vertical-align: middle;
    white-space: nowrap;
}

.location-modern-table tbody tr.location-table-row {
    transition: all 0.2s ease;
    cursor: pointer;
}

.location-modern-table tbody tr.location-table-row:not(:last-child) td {
    border-bottom: 1px solid #f1f5f9;
}

.location-modern-table tbody tr.location-table-row td {
    padding: 0.85rem 0.85rem;
    vertical-align: middle;
    font-size: 0.82rem;
    color: #334155;
}

.location-modern-table tbody tr.location-table-row:hover:not(.disabled-row) {
    background-color: #f0f9ff;
}

.location-modern-table tbody tr.location-table-row.selected-row {
    background-color: #e0f2fe !important;
}

.location-modern-table tbody tr.location-table-row.disabled-row {
    opacity: 0.55;
    cursor: not-allowed;
    background-color: #f8fafc;
}

.search-clear-btn {
    position: absolute;
    right: 1rem;
    color: #94a3b8;
    cursor: pointer;
    z-index: 5;
    padding: 6px;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.search-clear-btn:hover {
    color: #0f172a;
}
