/* ==========================================================================
   BGMEA Membership Management System (MMS) - Clean Light System Stylesheet
   Palette aligned directly with BGMEA & MMS Logo (#1f2b5b, #005a9c, #c5975b)
   ========================================================================== */

:root {
    --mms-indigo: #1f2b5b;
    --mms-blue: #005a9c;
    --mms-blue-hover: #00467a;
    --mms-blue-soft: #eff6ff;
    --mms-blue-border: #bfdbfe;
    --mms-gold: #c5975b;
    --mms-gold-soft: #fdf8f0;
    --mms-gold-border: #edd8b8;
    --mms-green: #0d7a5f;
    --mms-green-soft: #ecfdf5;
    --mms-bg: #f4f7fb;
    --mms-surface: #ffffff;
    --mms-surface-alt: #f8fafc;
    --mms-border: #e2e8f0;
    --mms-border-strong: #cbd5e1;
    --mms-text: #1e293b;
    --mms-text-muted: #64748b;
    --mms-radius: 10px;
    --mms-radius-lg: 14px;
    --mms-shadow-sm: 0 2px 8px rgba(31, 43, 91, 0.05);
    --mms-shadow-md: 0 8px 24px rgba(31, 43, 91, 0.08);
}

body.bgmea-pub-shell {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--mms-bg);
    color: var(--mms-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.bgmea-pub-shell h1, .bgmea-pub-shell h2, .bgmea-pub-shell h3,
.bgmea-pub-shell h4, .bgmea-pub-shell h5, .bgmea-pub-shell h6,
.arb-modern h1, .arb-modern h2, .arb-modern h3,
.arb-modern h4, .arb-modern h5, .arb-modern h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--mms-indigo);
    letter-spacing: -0.015em;
}

.pub-container {
    max-width: 1220px;
}

/* Header Navigation (Clean White, Minimal) */
.pub-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--mms-border);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
    padding: 8px 0;
    z-index: 1030;
}

.pub-brand-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.pub-brand-divider {
    width: 1px;
    height: 28px;
    background: var(--mms-border);
}

.pub-brand-title {
    font-weight: 700;
    font-size: 15.5px;
    color: var(--mms-indigo);
    line-height: 1.2;
}

.pub-brand-sub {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--mms-text-muted);
}

.pub-nav-link {
    font-size: 13.5px;
    font-weight: 600;
    color: #475569 !important;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.pub-nav-link:hover {
    color: var(--mms-blue) !important;
    background: var(--mms-surface-alt);
}

.pub-nav-link.active {
    color: var(--mms-blue) !important;
    background: var(--mms-blue-soft);
}

/* Clean System Buttons */
.pub-btn-primary {
    background-color: var(--mms-blue);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 13.5px;
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid var(--mms-blue);
    transition: background-color 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pub-btn-primary:hover {
    background-color: var(--mms-blue-hover);
    border-color: var(--mms-blue-hover);
    color: #ffffff !important;
}

.pub-btn-indigo {
    background-color: var(--mms-indigo);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 13.5px;
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid var(--mms-indigo);
    transition: opacity 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pub-btn-indigo:hover {
    opacity: 0.92;
    color: #ffffff !important;
}

.pub-btn-outline {
    background-color: #ffffff;
    color: var(--mms-indigo) !important;
    font-weight: 600;
    font-size: 13.5px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--mms-border-strong);
    transition: all 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pub-btn-outline:hover {
    background-color: var(--mms-surface-alt);
    border-color: var(--mms-blue);
    color: var(--mms-blue) !important;
}

.pub-main {
    flex: 1 0 auto;
}

/* Smart Premium Institutional Footer */
.pub-footer {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5fb 100%);
    border-top: 1px solid #dbe4f0;
    position: relative;
    color: #475569;
    margin-top: auto;
    font-size: 13.5px;
}

.pub-footer::before {
    content: "";
    display: block;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--mms-indigo) 0%, var(--mms-blue) 55%, var(--mms-gold) 100%);
}

.pub-footer-top {
    padding: 44px 0 34px;
}

.pub-footer-desc {
    font-size: 13px;
    line-height: 1.65;
    color: #64748b;
    max-width: 340px;
    margin-top: 14px;
    margin-bottom: 18px;
}

.pub-footer-hotline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    padding: 8px 14px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(31, 43, 91, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pub-footer-hotline:hover {
    border-color: var(--mms-blue);
    box-shadow: 0 4px 12px rgba(0, 90, 156, 0.08);
}

.pub-footer-hotline-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--mms-blue-soft);
    color: var(--mms-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.pub-footer-heading {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mms-indigo);
    margin-bottom: 16px;
}

.pub-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 9px;
}

.pub-footer-link {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.pub-footer-link:hover {
    color: var(--mms-blue);
    transform: translateX(2px);
}

.pub-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.55;
    color: #475569;
    margin-bottom: 11px;
}

.pub-footer-contact-item i {
    color: var(--mms-blue);
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.pub-footer-bottom {
    border-top: 1px solid #dbe4f0;
    padding: 16px 0;
    font-size: 12.5px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   MMS LANDING PAGE (Light, Minimal, Aligned with BGMEA Logo)
   ========================================================================== */
.mms-hero-section {
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
    border-bottom: 1px solid var(--mms-border);
    padding: 52px 0 56px;
}

.mms-brand-accent-bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.mms-brand-accent-bar span {
    height: 4px;
    border-radius: 2px;
    display: inline-block;
}

.mms-hero-title {
    font-size: clamp(1.85rem, 3vw, 2.55rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--mms-indigo);
    margin-bottom: 14px;
}

.mms-hero-desc {
    font-size: 15.5px;
    line-height: 1.65;
    color: #475569;
    max-width: 560px;
    margin-bottom: 26px;
}

/* Smart 2x2 Hero Action Button Grid */
.mms-hero-btn-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 560px;
}

@media (max-width: 575.98px) {
    .mms-hero-btn-grid {
        grid-template-columns: 1fr;
    }
}

.mms-smart-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    min-height: 50px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    background: #ffffff;
    color: var(--mms-indigo) !important;
    border: 1px solid #d5dfec;
    box-shadow: 0 2px 6px rgba(31, 43, 91, 0.04);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.mms-smart-btn:hover {
    transform: translateY(-1px);
    border-color: var(--mms-blue);
    box-shadow: 0 6px 16px rgba(31, 43, 91, 0.09);
    color: var(--mms-blue) !important;
}

.mms-smart-btn-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mms-smart-btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.mms-smart-btn-label {
    line-height: 1.25;
}

.mms-smart-btn-arrow {
    font-size: 13px;
    opacity: 0.55;
    flex-shrink: 0;
    transition: transform 0.16s ease, opacity 0.16s ease;
}

.mms-smart-btn:hover .mms-smart-btn-arrow {
    transform: translateX(2px);
    opacity: 1;
}

.mms-smart-btn.is-primary {
    background: linear-gradient(135deg, var(--mms-blue) 0%, #004880 100%);
    border-color: var(--mms-blue);
    color: #ffffff !important;
    box-shadow: 0 5px 14px rgba(0, 90, 156, 0.22);
}

.mms-smart-btn.is-primary:hover {
    background: linear-gradient(135deg, #004f8a 0%, #003d6e 100%);
    border-color: #003d6e;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(0, 90, 156, 0.28);
}

.mms-smart-btn.is-primary .mms-smart-btn-icon {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.mms-smart-btn.is-primary .mms-smart-btn-arrow {
    opacity: 0.85;
    color: #ffffff;
}

.mms-hero-image-card {
    background: #ffffff;
    padding: 10px;
    border-radius: var(--mms-radius-lg);
    border: 1px solid var(--mms-border);
    box-shadow: var(--mms-shadow-md);
}

.mms-hero-image-card img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* Module / Service Cards */
.mms-module-card {
    background: #ffffff;
    border: 1px solid var(--mms-border);
    border-radius: var(--mms-radius-lg);
    padding: 24px;
    height: 100%;
    box-shadow: var(--mms-shadow-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mms-module-card:hover {
    border-color: #93c5fd;
    box-shadow: var(--mms-shadow-md);
}

.mms-module-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

/* ==========================================================================
   ARBITRATION INSTRUCTIONS & FORM (.arb-modern)
   ========================================================================== */
.arb-modern {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--mms-text);
}

/* Light Header Card */
.arb-header-card {
    background: #ffffff;
    border: 1px solid var(--mms-border);
    border-left: 4px solid var(--mms-blue);
    border-radius: var(--mms-radius);
    padding: 22px 26px;
    margin-bottom: 20px;
    box-shadow: var(--mms-shadow-sm);
}

/* Minimal Step Bar */
.arb-stepper-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: #ffffff;
    border: 1px solid var(--mms-border);
    border-radius: var(--mms-radius);
    padding: 12px 16px;
    margin-bottom: 20px;
}

@media (max-width: 767.98px) {
    .arb-stepper-bar { grid-template-columns: 1fr; }
}

.arb-step-node {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 8px;
}

.arb-step-node.is-active {
    background: var(--mms-blue-soft);
}

.arb-step-node.is-done {
    background: var(--mms-green-soft);
}

.arb-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-weight: 700;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.arb-step-node.is-active .arb-step-num {
    background: var(--mms-blue);
    color: #ffffff;
}

.arb-step-node.is-done .arb-step-num {
    background: var(--mms-green);
    color: #ffffff;
}

.arb-step-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--mms-indigo);
}

.arb-step-sub {
    font-size: 11.5px;
    color: var(--mms-text-muted);
}

/* Instruction Cards */
.arb-req-card {
    background: #ffffff;
    border: 1px solid var(--mms-border);
    border-radius: var(--mms-radius);
    padding: 20px 22px;
    height: 100%;
    box-shadow: var(--mms-shadow-sm);
}

.arb-req-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.arb-req-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--mms-blue-soft);
    color: var(--mms-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.arb-req-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.arb-req-list li {
    position: relative;
    padding-left: 18px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #475569;
}

.arb-req-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mms-blue);
}

/* Confirmation Box */
.arb-gate-box {
    background: #ffffff;
    border: 1px solid var(--mms-border);
    border-radius: var(--mms-radius);
    padding: 18px 22px;
    box-shadow: var(--mms-shadow-sm);
}

.arb-gate-box.is-ready {
    border-color: var(--mms-blue);
}

/* Form Section Cards */
.arb-form-card {
    background: #ffffff;
    border: 1px solid var(--mms-border);
    border-radius: var(--mms-radius);
    box-shadow: var(--mms-shadow-sm);
    margin-bottom: 18px;
}

.arb-form-card-header {
    padding: 15px 22px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.arb-form-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--mms-indigo);
}

.arb-sec-num {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--mms-blue-soft);
    color: var(--mms-blue);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.arb-form-card-body {
    padding: 20px 22px;
}

/* Inputs */
.arb-field-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
}

.arb-field-label .req {
    color: #dc2626;
    margin-left: 2px;
}

.arb-input, .arb-select, .arb-textarea {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: var(--mms-text);
    background-color: #ffffff;
    border: 1px solid var(--mms-border-strong);
    border-radius: 8px;
    padding: 9px 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.arb-input:focus, .arb-select:focus, .arb-textarea:focus {
    border-color: var(--mms-blue);
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.10);
}

.arb-input[readonly] {
    background-color: #f8fafc;
    color: #475569;
}

.arb-field-hint {
    font-size: 11.5px;
    color: var(--mms-text-muted);
    margin-top: 4px;
}

/* Sector Tiles */
.arb-sector-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 767.98px) {
    .arb-sector-grid { grid-template-columns: repeat(2, 1fr); }
}

.arb-sector-tile {
    border: 1px solid var(--mms-border-strong);
    border-radius: 8px;
    padding: 10px 12px;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.arb-sector-tile:hover {
    border-color: var(--mms-blue);
    background: var(--mms-surface-alt);
}

.arb-sector-tile.active {
    border-color: var(--mms-blue);
    background: var(--mms-blue-soft);
    box-shadow: 0 0 0 1px var(--mms-blue);
}

.arb-sector-tile-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.arb-sector-tile.active .arb-sector-tile-icon {
    background: var(--mms-blue);
    color: #ffffff;
}

/* Lookup Dropdown */
.arb-lookup-wrap {
    position: relative;
}

.arb-lookup-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--mms-border-strong);
    border-radius: 8px;
    box-shadow: var(--mms-shadow-md);
    max-height: 260px;
    overflow-y: auto;
    z-index: 1060;
    display: none;
}

.arb-lookup-item {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.arb-lookup-item:last-child { border-bottom: none; }
.arb-lookup-item:hover { background-color: var(--mms-blue-soft); }

/* Supporting Document Row */
.arb-pdf-row {
    background: var(--mms-surface-alt);
    border: 1px solid var(--mms-border);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

/* Sticky Fee Summary Card (Light, Clean) */
.arb-sticky-summary {
    position: sticky;
    top: 86px;
    background: #ffffff;
    border: 1px solid var(--mms-border);
    border-top: 3px solid var(--mms-blue);
    border-radius: var(--mms-radius);
    box-shadow: var(--mms-shadow-sm);
}

.arb-summary-head {
    background: var(--mms-surface-alt);
    border-bottom: 1px solid var(--mms-border);
    padding: 18px 20px;
}

.arb-fee-display {
    font-size: 24px;
    font-weight: 800;
    color: var(--mms-indigo);
}

.arb-summary-body {
    padding: 18px 20px;
}

.arb-summary-kv {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.arb-summary-kv:last-of-type {
    border-bottom: none;
}

.arb-summary-kv .k { color: var(--mms-text-muted); }
.arb-summary-kv .v { color: var(--mms-text); font-weight: 600; text-align: right; max-width: 62%; word-break: break-word; }


/* --------------------------------------------------------------------------
   7. BOOTSTRAP 4 PORTAL SHELL COMPATIBILITY (FOR _Layout & _ArbitrationPortalLayout)
   -------------------------------------------------------------------------- */
.arb-modern .fw-bold { font-weight: 700 !important; }
.arb-modern .fw-semibold { font-weight: 600 !important; }
.arb-modern .text-secondary { color: var(--mms-text-muted) !important; }
.arb-modern .rounded-3 { border-radius: 10px !important; }
.arb-modern .me-1 { margin-right: 0.25rem !important; }
.arb-modern .me-2 { margin-right: 0.5rem !important; }
.arb-modern .ms-1 { margin-left: 0.25rem !important; }
.arb-modern .gap-1 { gap: 0.25rem; }
.arb-modern .gap-2 { gap: 0.5rem; }
.arb-modern .gap-3 { gap: 1rem; }

@media (min-width: 768px) {
    .arb-modern .text-md-end { text-align: right !important; }
}

.arb-modern .row.g-3 > [class*="col-"] {
    margin-bottom: 14px;
}

.arb-modern .row.g-4 > [class*="col-"] {
    margin-bottom: 18px;
}

/* Crisp Portal Banner inside Portal Shell */
.arb-portal-title-banner {
    background: linear-gradient(135deg, #ffffff 0%, #f5f8fd 100%);
    border: 1px solid #d8e1ef;
    border-left: 4px solid #1f2b5b;
    border-radius: 12px;
    padding: 16px 22px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.arb-portal-title-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.arb-portal-title-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1f2b5b 0%, #005a9c 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(31, 43, 91, 0.2);
}

.arb-portal-title-heading {
    font-size: 18px;
    font-weight: 700;
    color: #1f2b5b;
    margin: 0 0 2px 0;
    letter-spacing: -0.01em;
}

.arb-portal-title-sub {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
}
