/* ==========================================================================
   BBC Pension Portal — Shared Stylesheet
   /application/themes/bbc/css/bbc-portal.css
   
   Mobile-first responsive design system.
   Shared across all BBC pension portal pages.
   ========================================================================== */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
    /* Brand Colours */
    --primary: #0F4C81;
    --primary-dark: #0A3963;
    --primary-light: #E5EFF8;
    --accent: #FF4D4D;

    /* Neutral Palette */
    --neutral-50: #F9FAFB;
    --neutral-100: #F3F4F6;
    --neutral-200: #E5E7EB;
    --neutral-300: #D1D5DB;
    --neutral-400: #9CA3AF;
    --neutral-500: #6B7280;
    --neutral-600: #4B5563;
    --neutral-700: #374151;
    --neutral-800: #1F2937;
    --neutral-900: #111827;

    /* Semantic Colours */
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #FBBF24;
    --warning-light: #FEF3C7;
    --error: #EF4444;
    --error-light: #FEE2E2;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Typography Scale — Mobile First */
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 28px;
}


/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #F5F7FA;
    padding: 0;
    margin: 0;
    color: var(--neutral-800);
    line-height: 1.5;
    font-size: var(--font-size-base);
    overflow-x: hidden;
}


/* ==========================================================================
   3. FOCUS & ACCESSIBILITY
   ========================================================================== */

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-to-content-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 12px 16px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.skip-to-content-link:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}


/* ==========================================================================
   4. TYPOGRAPHY — Mobile First
   ========================================================================== */

h1 {
    font-size: var(--font-size-xl);
    line-height: 1.2;
}

h2 {
    font-size: var(--font-size-lg);
    line-height: 1.3;
}

h3 {
    font-size: var(--font-size-base);
    line-height: 1.4;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   5. CONTAINER
   ========================================================================== */

.bbc-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 0;
    box-shadow: none;
    padding: 16px;
    overflow-x: hidden;
}


/* ==========================================================================
   6. HEADER
   ========================================================================== */

.bbc-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background-color: white;
    border-bottom: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.bbc-header .bbc-logo {
    width: 100px;
    margin: 0 auto 12px;
}

.bbc-header .bbc-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.bbc-header .header-content {
    flex: 1;
    width: 100%;
    margin-bottom: 16px;
}

.bbc-header .header-content h1 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.bbc-header .header-content .subtitle {
    font-size: var(--font-size-sm);
    color: var(--neutral-600);
}

.user-navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--primary);
    width: 100%;
    justify-content: center;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: var(--font-size-sm);
    flex-shrink: 0;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    min-height: 44px;
    background: none;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--neutral-600);
    font-weight: 500;
    transition: all var(--transition-fast);
    font-size: var(--font-size-sm);
    width: 100%;
    font-family: inherit;
}

.logout-btn:hover {
    background-color: var(--neutral-100);
    color: var(--neutral-800);
}

/* Session timer — persistent countdown display */
.session-timer {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background-color: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--neutral-500);
    font-variant-numeric: tabular-nums;
}

.session-timer .icon {
    opacity: 0.5;
}

.session-timer.warning {
    background-color: #FFF7ED;
    border-color: var(--warning);
    color: var(--warning);
}

.session-timer.warning .icon {
    opacity: 1;
}

.session-timer.critical {
    background-color: #FEF2F2;
    border-color: var(--danger);
    color: var(--danger);
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}


/* Back navigation — shown below header on all pages except summary */
.bbc-back-nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 16px;
    background-color: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
}

.bbc-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.bbc-back-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.bbc-back-link .icon {
    width: 16px;
    height: 16px;
}


/* ==========================================================================
   7. ICONS (inline SVG base class)
   ========================================================================== */

.icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==========================================================================
   8. CONTENT SECTIONS & CARDS
   ========================================================================== */

.content-section {
    margin-bottom: 20px;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background-color: white;
    position: relative;
    transition: all var(--transition-normal);
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.content-section:hover::before {
    opacity: 1;
}

.section-header {
    padding: 16px;
    background-color: var(--primary-light);
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2,
.section-header h3 {
    margin: 0;
    color: var(--primary);
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
}

.section-header h2::before,
.section-header h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background-color: var(--primary);
    margin-right: 10px;
    border-radius: 2px;
}

.section-content {
    padding: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Generic card (used by pension calculator and reusable) */
.card {
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    background: var(--primary-light);
    padding: 14px 16px;
    border-bottom: 1px solid var(--neutral-200);
}

.card-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.card-body {
    padding: 16px;
}


/* ==========================================================================
   9. BUTTONS & ACTIONS
   ========================================================================== */

/* Standard button system */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    min-height: 44px;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    text-decoration: none;
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--neutral-700);
    border: 1px solid var(--neutral-300);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--neutral-50);
    text-decoration: none;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    text-decoration: none;
    color: white;
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #DC2626;
    text-decoration: none;
    color: white;
}

.btn-link {
    background: transparent;
    color: var(--neutral-600);
    padding: 12px 16px;
}

.btn-link:hover {
    color: var(--neutral-800);
    background: var(--neutral-100);
    text-decoration: none;
}

.btn:disabled {
    background: var(--neutral-200);
    color: var(--neutral-400);
    cursor: not-allowed;
}

.btn-container {
    text-align: center;
    margin-top: 16px;
}

/* Action button (summary page pattern) */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    min-height: 44px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    background-color: white;
    border: 1px solid var(--neutral-300);
    color: var(--neutral-700);
    width: 100%;
    font-family: inherit;
}

.action-btn:hover {
    background-color: var(--neutral-50);
    border-color: var(--neutral-400);
    color: var(--neutral-900);
    transform: translateY(-1px);
    text-decoration: none;
}

.action-btn.primary {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.action-btn.primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 2px 6px rgba(15, 76, 129, 0.3);
}

/* Action link (inline text button) */
.action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    background: none;
    border: none;
    padding: 8px 12px;
    min-height: auto;
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.action-link:hover {
    text-decoration: underline;
    background-color: var(--primary-light);
}

/* Action link reset when used inline within notice text */
.contact-notice .action-link {
    display: inline;
    padding: 0;
    gap: 0;
    text-decoration: underline;
    font-size: inherit;
}

/* View more link (section header pattern) */
.view-more-link {
    color: var(--primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-more-link:hover {
    text-decoration: underline;
}


/* ==========================================================================
   10. ALERTS & NOTICES
   ========================================================================== */

.alert {
    position: relative;
    padding: 14px 40px 14px 48px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    font-size: var(--font-size-sm);
    line-height: 1.5;
    border: 1px solid;
    border-left: 4px solid;
    background: white;
    color: var(--neutral-700);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Status icon indicator — left side */
.alert::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 14px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    color: white;
}

/* Close button — top right */
.alert .close,
.alert .btn-close,
.alert button[data-dismiss="alert"],
.alert button[data-bs-dismiss="alert"] {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 0;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-400);
    transition: all var(--transition-fast);
    line-height: 1;
    opacity: 1;
}

.alert .close:hover,
.alert .btn-close:hover,
.alert button[data-dismiss="alert"]:hover,
.alert button[data-bs-dismiss="alert"]:hover {
    background-color: var(--neutral-100);
    color: var(--neutral-700);
}

/* Show × symbol */
.alert .close::after,
.alert .btn-close::after,
.alert button[data-dismiss="alert"]::after,
.alert button[data-bs-dismiss="alert"]::after {
    content: '\00D7';
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}

/* Hide any existing text/content inside close button */
.alert .close > *,
.alert .btn-close > * {
    display: none;
}

/* ── Danger / Error ── */
.alert-danger,
.alert-error {
    background-color: #FEF2F2;
    border-color: var(--error);
    border-left-color: var(--error);
}

.alert-danger::before,
.alert-error::before {
    content: '!';
    background-color: var(--error);
}

.alert-danger strong,
.alert-error strong {
    color: #B91C1C;
}

/* ── Warning ── */
.alert-warning {
    background-color: #FFFBEB;
    border-color: var(--warning);
    border-left-color: var(--warning);
}

.alert-warning::before {
    content: '!';
    background-color: var(--warning);
}

.alert-warning strong {
    color: #92400E;
}

/* ── Success ── */
.alert-success {
    background-color: #F0FDF4;
    border-color: var(--success);
    border-left-color: var(--success);
}

.alert-success::before {
    content: '\2713';
    background-color: var(--success);
    font-size: 11px;
}

.alert-success strong {
    color: #065F46;
}

/* ── Info ── */
.alert-info {
    background-color: #EFF6FF;
    border-color: var(--primary);
    border-left-color: var(--primary);
}

.alert-info::before {
    content: 'i';
    background-color: var(--primary);
    font-style: italic;
}

.alert-info strong {
    color: var(--primary-dark);
}

/* ── Alert content ── */
.alert a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.alert a:hover {
    opacity: 0.8;
}

.alert strong {
    font-weight: 600;
}

.alert h4,
.alert .alert-heading {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin: 0 0 4px 0;
}

.alert p {
    margin: 0;
}

.alert p + p {
    margin-top: 6px;
}

.alert ul, .alert ol {
    margin: 6px 0 0 0;
    padding-left: 20px;
}

.alert li {
    margin-bottom: 2px;
}

/* Error banner (full-width) */
.error-banner {
    background: var(--error-light);
    border: 1px solid var(--error);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.error-banner h2 {
    color: var(--error);
    margin-bottom: 8px;
    font-size: var(--font-size-lg);
}

.error-banner p {
    color: var(--error);
    font-size: var(--font-size-sm);
}

/* Contact notice (info bar with icon) */
.contact-notice {
    background-color: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: var(--font-size-sm);
    color: var(--neutral-600);
}

.contact-notice-icon {
    color: var(--primary);
    flex-shrink: 0;
    align-self: flex-start;
}

/* Info box (left-bordered) */
.info-box {
    background: var(--neutral-50);
    border-left: 3px solid var(--primary);
    padding: 12px 14px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 16px;
    font-size: var(--font-size-sm);
    color: var(--neutral-700);
}

.info-box p {
    margin: 0 0 8px;
}

.info-box p:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   11. FORM ELEMENTS
   ========================================================================== */

/* ── Form Groups ── */
.form-group {
    margin-bottom: 16px;
}

.form-label,
.bbc-form label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--neutral-700);
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--error);
}

/* ── Form Controls ── */
.form-control,
.form-input,
.form-select,
.form-textarea,
.bbc-form input[type="text"],
.bbc-form input[type="password"],
.bbc-form input[type="email"],
.bbc-form input[type="tel"],
.bbc-form input[type="date"],
.bbc-form select,
.bbc-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;   /* prevents iOS zoom */
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-md);
    background: white;
    color: var(--neutral-800);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    font-family: inherit;
    min-height: 48px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:hover,
.form-input:hover,
.form-select:hover,
.form-textarea:hover,
.bbc-form input:hover,
.bbc-form select:hover {
    border-color: var(--neutral-400);
}

.form-control:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.bbc-form input:focus,
.bbc-form select:focus,
.bbc-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.1);
}

.form-control:disabled,
.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
    background: var(--neutral-100);
    cursor: not-allowed;
    color: var(--neutral-500);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    font-size: var(--font-size-xs);
    color: var(--neutral-500);
    margin-top: 4px;
}

.form-control.error,
.form-input.error {
    border-color: var(--error);
    background-color: #FEF2F2;
    animation: formShake 0.4s ease-in-out;
}

.form-control.valid,
.form-input.valid {
    border-color: var(--success);
}

@keyframes formShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.form-helper {
    font-size: 13px;
    color: var(--neutral-500);
    margin-top: 6px;
}

.form-error,
.form-text {
    font-size: 12px;
    color: var(--error);
    margin-top: 4px;
    display: none;
}

.form-error.show,
.form-text.show {
    display: block;
}

.form-control-feedback {
    display: none;
}

/* ── Form Field Layout (label + input, stacks on mobile, side-by-side on desktop) ── */
.bbc-field {
    margin-bottom: 16px;
}

.bbc-field:last-child {
    margin-bottom: 0;
}

.bbc-field-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (min-width: 768px) {
    .bbc-field-row {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }

    .bbc-field-label {
        flex: 0 0 25%;
        max-width: 25%;
        padding-top: 14px;
    }

    .bbc-field-input {
        flex: 0 0 58%;
        max-width: 58%;
    }

    .form-control,
    .form-input {
        font-size: var(--font-size-base);
    }
}

/* ── Form Panel (card container for form fields) ── */
.bbc-form-panel {
    background-color: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .bbc-form-panel {
        padding: 20px;
    }
}

/* ── Password Toggle ── */
.bbc-password-wrap {
    position: relative;
}

.bbc-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    color: var(--neutral-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    z-index: 2;
    transition: color var(--transition-fast);
}

.bbc-password-toggle:hover {
    color: var(--primary);
}

.bbc-password-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.bbc-password-toggle .icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.bbc-password-toggle .eye-closed { display: none; }
.bbc-password-toggle.password-visible .eye-open { display: none; }
.bbc-password-toggle.password-visible .eye-closed { display: block; }

/* ── Step Indicator ── */
.bbc-steps {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px 0;
    margin-bottom: 8px;
}

.bbc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 50%;
}

.bbc-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--neutral-200);
    color: var(--neutral-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    position: relative;
    z-index: 2;
    border: 2px solid var(--neutral-200);
    transition: all var(--transition-fast);
}

.bbc-step.active .bbc-step-num {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.2);
}

.bbc-step.completed .bbc-step-num {
    background-color: var(--success);
    color: white;
    border-color: var(--success);
}

.bbc-step.completed .bbc-step-num::after {
    content: '\2713';
    font-size: 12px;
}

.bbc-step.future .bbc-step-num {
    background-color: var(--neutral-100);
    color: var(--neutral-400);
    border-color: var(--neutral-200);
}

.bbc-step-line {
    position: absolute;
    top: 14px;
    left: calc(-50% + 14px);
    right: calc(50% + 14px);
    height: 3px;
    background-color: var(--neutral-200);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.bbc-step:first-child .bbc-step-line { display: none; }

.bbc-step.completed + .bbc-step .bbc-step-line {
    background-color: var(--success);
}

.bbc-step-label {
    margin-top: 6px;
    font-size: 12px;
    color: var(--neutral-600);
    font-weight: 500;
    text-align: center;
}

.bbc-step.active .bbc-step-label {
    color: var(--primary);
    font-weight: 600;
}

.bbc-step.completed .bbc-step-label {
    color: var(--success);
    font-weight: 600;
}

.bbc-step.future .bbc-step-label {
    color: var(--neutral-400);
}

/* ── Info Notice (security notice, info panels) ── */
.bbc-notice {
    background: linear-gradient(135deg, var(--primary-light) 0%, #F0F7FF 100%);
    border: 1px solid var(--neutral-200);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.bbc-notice-icon {
    width: 24px;
    height: 24px;
    background-color: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    margin-top: 1px;
}

.bbc-notice-icon::before {
    content: 'i';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    font-weight: 700;
    font-style: italic;
    color: white;
}

.bbc-notice-icon.lock::before {
    content: '\1F512';
    font-style: normal;
    font-size: 11px;
}

.bbc-notice-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.bbc-notice-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--neutral-700);
}

.bbc-notice-desc p {
    margin-bottom: 6px;
}

.bbc-notice-desc p:last-child {
    margin-bottom: 0;
}

.bbc-notice-desc strong {
    color: var(--neutral-800);
    font-weight: 600;
}

@media (min-width: 768px) {
    .bbc-notice {
        padding: 16px;
        gap: 12px;
    }
}

/* ── Form Title Row ── */
.bbc-form-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    gap: 8px;
}

.bbc-form-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--neutral-800);
    display: flex;
    align-items: center;
    margin: 0;
}

.bbc-form-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 18px;
    background-color: var(--primary);
    margin-right: 10px;
    border-radius: 2px;
}

@media (min-width: 768px) {
    .bbc-form-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .bbc-form-title {
        font-size: 20px;
    }

    .bbc-form-title::before {
        height: 22px;
    }
}

/* ── Form Actions (submit button area) ── */
.bbc-form-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--neutral-200);
}

/* ── Primary Action Button (larger, with shadow & lift) ── */
.bbc-btn-action {
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: none;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 300px;
    touch-action: manipulation;
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(15, 76, 129, 0.3);
    font-family: inherit;
}

.bbc-btn-action:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 76, 129, 0.4);
    color: white;
    text-decoration: none;
}

.bbc-btn-action:active {
    transform: translateY(0);
}

.bbc-btn-action:disabled {
    background-color: var(--neutral-300);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bbc-btn-action.btn-loading {
    color: transparent;
    pointer-events: none;
}

.bbc-btn-action.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: btnSpin 0.8s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

@media (min-width: 768px) {
    .bbc-btn-action {
        width: auto;
        min-width: 240px;
    }
}

/* ── Helper Links (forgot password, etc.) ── */
.bbc-helper-links {
    margin-bottom: 16px;
}

.bbc-helper-links-inner {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bbc-helper-link {
    color: var(--primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.bbc-helper-link:hover {
    color: var(--primary-dark);
    background-color: white;
    border-color: var(--neutral-200);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    text-decoration: none;
}

.bbc-helper-link.secondary {
    color: var(--neutral-600);
    font-weight: 400;
}

.bbc-helper-link.secondary:hover {
    color: var(--primary);
}

@media (min-width: 768px) {
    .bbc-helper-links-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ── Help Bar (bottom of card) ── */
.bbc-help-bar {
    padding: 14px 20px;
    background-color: var(--neutral-50);
    border-top: 1px solid var(--neutral-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.bbc-help-bar-text {
    font-size: var(--font-size-sm);
    color: var(--neutral-600);
}

.bbc-help-bar-link {
    color: var(--primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: white;
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-fast);
}

.bbc-help-bar-link:hover {
    color: var(--primary-dark);
    background: var(--primary-light);
    transform: translateY(-1px);
    text-decoration: none;
}

@media (min-width: 768px) {
    .bbc-help-bar {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 14px 24px;
    }
}

/* ── System Message ── */
.bbc-system-msg {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid var(--error);
    border-left: 4px solid var(--error);
    background-color: #FEF2F2;
}

.bbc-system-msg-icon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.bbc-system-msg-text {
    font-size: var(--font-size-sm);
    color: var(--neutral-800);
    line-height: 1.5;
}

/* ── Card Container (wraps a form/content with rounded corners and shadow) ── */
.bbc-card {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    width: 100%;
}

.bbc-card-body {
    padding: 20px;
}

@media (min-width: 768px) {
    .bbc-card-body {
        padding: 24px;
    }
}

/* ── Prompt Text (register link, etc.) ── */
.bbc-prompt {
    font-size: var(--font-size-sm);
    color: var(--neutral-600);
    margin: 0;
}

.bbc-prompt a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.bbc-prompt a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}


/* ==========================================================================
   12. VALUE ROWS (label + amount pairs)
   ========================================================================== */

.value-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--neutral-100);
    font-size: var(--font-size-sm);
}

.value-row:last-child {
    border-bottom: none;
}

.value-row.total {
    border-top: 2px solid var(--neutral-200);
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 600;
}

.value-label {
    color: var(--neutral-600);
    flex: 1;
    padding-right: 12px;
}

.value-amount {
    font-weight: 600;
    color: var(--neutral-800);
    text-align: right;
    white-space: nowrap;
}

.value-row.total .value-amount {
    color: var(--primary);
    font-size: var(--font-size-base);
}


/* ==========================================================================
   13. MEMBER DETAILS GRID
   ========================================================================== */

.member-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.member-detail-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.detail-label {
    font-weight: 500;
    color: var(--neutral-600);
    font-size: var(--font-size-sm);
    margin-bottom: 4px;
}

.detail-value {
    color: var(--neutral-800);
    font-weight: 500;
    font-size: var(--font-size-base);
}


/* ==========================================================================
   14. ADDRESS DISPLAY
   ========================================================================== */

.address-display {
    display: flex;
    flex-direction: column;
}

.address-line {
    color: var(--neutral-800);
    font-weight: 500;
    font-size: var(--font-size-base);
    margin-bottom: 2px;
}

.address-line:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   15. DOCUMENT CARDS
   ========================================================================== */

.document-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.document-card-form {
    display: block;
    margin: 0;
    padding: 0;
}

.document-card {
    width: 100%;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-fast);
    background-color: white;
    cursor: pointer;
    text-align: left;
    font: inherit;
    position: relative;
    min-height: 60px;
}

.document-card:hover {
    background-color: var(--neutral-50);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.document-card:hover .document-title {
    color: var(--primary);
}

.document-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 8px;
    flex-shrink: 0;
    align-self: flex-start;
}

.document-info {
    flex: 1;
}

.document-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--neutral-800);
    transition: color var(--transition-fast);
    min-height: 2.6em;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.document-date {
    font-size: var(--font-size-xs);
    color: var(--neutral-500);
}

.document-action {
    margin-left: auto;
    color: var(--primary);
    opacity: 0.6;
    transition: all var(--transition-fast);
    padding: 8px;
    border-radius: var(--radius-sm);
}

.document-card:hover .document-action {
    opacity: 1;
    background-color: var(--primary-light);
}


/* ==========================================================================
   16. WELCOME BANNER
   ========================================================================== */

.welcome-banner {
    background-color: var(--primary-light);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.welcome-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
    flex-shrink: 0;
    align-self: flex-start;
}

.welcome-content h2 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--primary);
}

.welcome-content p {
    color: var(--primary-dark);
    margin-bottom: 0;
    font-size: var(--font-size-sm);
}


/* ==========================================================================
   17. STATUS BADGES
   ========================================================================== */

.scheme-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    align-self: flex-start;
}

.status-active {
    background-color: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-deferred {
    background-color: var(--neutral-100);
    color: var(--neutral-600);
    border: 1px solid var(--neutral-400);
}

.status-pensioner {
    background-color: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary);
}


/* ==========================================================================
   18. EMPTY STATE
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--neutral-500);
}

.empty-state h4 {
    margin-bottom: 8px;
    color: var(--neutral-700);
}

.empty-state .icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}


/* ==========================================================================
   19. LOADING OVERLAY
   ========================================================================== */

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--neutral-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 16px;
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--neutral-700);
}


/* ==========================================================================
   20. SESSION TIMEOUT WARNING
   ========================================================================== */

.bbc-session-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bbc-session-warning-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.bbc-session-warning-dialog {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.bbc-session-warning-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--warning);
}

.bbc-session-warning-icon svg {
    width: 100%;
    height: 100%;
}

.bbc-session-warning-dialog h2 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--neutral-800);
    margin: 0 0 8px;
}

.bbc-session-warning-dialog p {
    font-size: var(--font-size-sm);
    color: var(--neutral-600);
    margin: 0 0 24px;
    line-height: 1.5;
}

.bbc-session-warning-dialog #sessionCountdown {
    font-size: var(--font-size-lg);
    color: var(--warning);
}

.bbc-session-warning-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.bbc-btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-block;
}

.bbc-btn-primary {
    background-color: var(--primary);
    color: white;
}

.bbc-btn-primary:hover {
    background-color: var(--primary-dark);
}

.bbc-btn-secondary {
    background-color: var(--neutral-100);
    color: var(--neutral-700);
    border: 1px solid var(--neutral-300);
}

.bbc-btn-secondary:hover {
    background-color: var(--neutral-200);
}


/* ==========================================================================
   21. TOAST NOTIFICATION
   ========================================================================== */

.toast-notification {
    position: fixed;
    bottom: 16px;
    right: 16px;
    left: 16px;
    background-color: var(--primary);
    color: white;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-width: 300px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    display: none;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* ==========================================================================
   21. BACK LINK
   ========================================================================== */

.back-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--neutral-200);
}


/* ==========================================================================
   22. DISCLAIMER
   ========================================================================== */

.disclaimer {
    font-size: 13px;
    font-style: italic;
    color: var(--neutral-500);
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--neutral-200);
}


/* ==========================================================================
   23. ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sectionFadeIn {
    from {
        opacity: 0.7;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.content-section,
.card {
    animation: sectionFadeIn 0.4s ease-out forwards;
}


/* ==========================================================================
   24. RESPONSIVE — Small tablets & large phones (576px+)
   ========================================================================== */

@media (min-width: 576px) {
    .member-details-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .document-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}


/* ==========================================================================
   25. RESPONSIVE — Tablets & small desktops (768px+)
   ========================================================================== */

@media (min-width: 768px) {
    body {
        padding: 20px;
    }

    .bbc-container {
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        padding: 40px;
    }

    h1 {
        font-size: var(--font-size-2xl);
    }

    h2 {
        font-size: var(--font-size-xl);
    }

    h3 {
        font-size: var(--font-size-lg);
    }

    /* Header — horizontal layout */
    .bbc-header {
        flex-direction: row;
        align-items: center;
        padding: 20px 40px;
        text-align: left;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .bbc-header .bbc-logo {
        width: 150px;
        margin: 0 25px 0 0;
    }

    .bbc-header .header-content {
        margin-bottom: 0;
    }

    .bbc-header .header-content h1 {
        font-size: var(--font-size-2xl);
        margin-bottom: 8px;
    }

    .user-navigation {
        flex-direction: row;
        width: auto;
        margin-left: auto;
    }

    .user-info {
        width: auto;
    }

    .logout-btn {
        width: auto;
    }

    .section-header h2::before,
    .section-header h3::before {
        height: 24px;
    }

    /* Buttons — auto width on desktop */
    .action-btn {
        width: auto;
    }

    /* Member details — multi-column */
    .member-details-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    /* Document cards — multi-column */
    .document-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    /* Toast — fixed right on desktop */
    .toast-notification {
        left: auto;
        right: 16px;
    }
}


/* ==========================================================================
   26. RESPONSIVE — Large desktops (1024px+)
   ========================================================================== */

@media (min-width: 1024px) {
    .document-list {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}


/* ==========================================================================
   27. PRINT STYLES
   ========================================================================== */

@media print {
    body {
        padding: 0;
        background: white;
    }

    .bbc-container {
        box-shadow: none;
    }

    .bbc-header .user-navigation,
    .logout-btn,
    .btn,
    .back-link,
    .loading-overlay,
    .toast-notification {
        display: none !important;
    }

    .content-section,
    .card {
        break-inside: avoid;
        box-shadow: none;
    }

    .content-section::before {
        display: none;
    }
}

/* ==========================================================================
   FOOTER STYLES (moved from bbc-footer.vtl inline <style> block)
   Append this entire block to the end of bbc-portal.css
   ========================================================================== */

/* ── Footer Container ── */
.bbc-footer {
    background-color: var(--neutral-800);
    color: var(--neutral-300);
    max-width: 1100px;
    margin: 0 auto;
    font-size: var(--font-size-sm);
}

.bbc-footer-inner {
    display: flex;
    flex-direction: column;
}

/* ── Quick Links Section ── */
.bbc-footer-quicklinks {
    padding: 24px 16px;
}

.bbc-footer-heading {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--neutral-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 14px 0;
}

.bbc-quicklinks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.bbc-quicklink {
    border: 1px solid var(--neutral-600);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-fast);
    background-color: var(--neutral-700);
    cursor: pointer;
    min-height: 80px;
    position: relative;
    overflow: hidden;
    color: var(--neutral-100);
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: 1.3;
    z-index: 0;
}

.bbc-quicklink:hover {
    background-color: white;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

/* Large centred background icon — watermark effect */
.bbc-quicklink::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    opacity: 0.12;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
    transition: all var(--transition-fast);
}

.bbc-quicklink:hover::before {
    opacity: 0.15;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Icon SVGs — light stroke for dark cards */
.bbc-quicklink[data-icon="user"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5E7EB' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.bbc-quicklink[data-icon="edit"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5E7EB' stroke-width='2'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E"); }
.bbc-quicklink[data-icon="document"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5E7EB' stroke-width='2'%3E%3Cpath d='M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpolyline points='13 2 13 9 20 9'/%3E%3C/svg%3E"); }
.bbc-quicklink[data-icon="history"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5E7EB' stroke-width='2'%3E%3Cpath d='M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E"); }
.bbc-quicklink[data-icon="lock"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5E7EB' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E"); }
.bbc-quicklink[data-icon="key"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5E7EB' stroke-width='2'%3E%3Cpath d='M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4'/%3E%3C/svg%3E"); }
.bbc-quicklink[data-icon="document-x"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5E7EB' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cline x1='10' y1='12' x2='14' y2='16'/%3E%3Cline x1='14' y1='12' x2='10' y2='16'/%3E%3C/svg%3E"); }
.bbc-quicklink[data-icon="phone"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5E7EB' stroke-width='2'%3E%3Cpath d='M3 5a2 2 0 0 1 2-2h3.28a1 1 0 0 1 .948.684l1.498 4.493a1 1 0 0 1-.502 1.21l-2.257 1.13a11.042 11.042 0 0 0 5.516 5.516l1.13-2.257a1 1 0 0 1 1.21-.502l4.493 1.498a1 1 0 0 1 .684.949V19a2 2 0 0 1-2 2h-1C9.716 21 3 14.284 3 6V5z'/%3E%3C/svg%3E"); }

/* Hover state — swap icon stroke to blue */
.bbc-quicklink:hover[data-icon="user"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C81' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.bbc-quicklink:hover[data-icon="edit"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C81' stroke-width='2'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E"); }
.bbc-quicklink:hover[data-icon="document"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C81' stroke-width='2'%3E%3Cpath d='M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpolyline points='13 2 13 9 20 9'/%3E%3C/svg%3E"); }
.bbc-quicklink:hover[data-icon="history"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C81' stroke-width='2'%3E%3Cpath d='M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E"); }
.bbc-quicklink:hover[data-icon="lock"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C81' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E"); }
.bbc-quicklink:hover[data-icon="key"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C81' stroke-width='2'%3E%3Cpath d='M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4'/%3E%3C/svg%3E"); }
.bbc-quicklink:hover[data-icon="document-x"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C81' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cline x1='10' y1='12' x2='14' y2='16'/%3E%3Cline x1='14' y1='12' x2='10' y2='16'/%3E%3C/svg%3E"); }
.bbc-quicklink:hover[data-icon="phone"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C81' stroke-width='2'%3E%3Cpath d='M3 5a2 2 0 0 1 2-2h3.28a1 1 0 0 1 .948.684l1.498 4.493a1 1 0 0 1-.502 1.21l-2.257 1.13a11.042 11.042 0 0 0 5.516 5.516l1.13-2.257a1 1 0 0 1 1.21-.502l4.493 1.498a1 1 0 0 1 .684.949V19a2 2 0 0 1-2 2h-1C9.716 21 3 14.284 3 6V5z'/%3E%3C/svg%3E"); }

/* ── Footer Bottom: Contact & Links ── */
.bbc-footer-bottom {
    padding: 16px;
    border-top: 1px solid var(--neutral-700);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bbc-footer-contact-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bbc-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--neutral-200);
}

.bbc-footer-contact-item .icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.6;
}

.bbc-footer-contact-item a {
    color: var(--neutral-200);
    text-decoration: none;
}

.bbc-footer-contact-item a:hover {
    color: white;
    text-decoration: underline;
}

.bbc-footer-link-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bbc-footer-link-row a {
    color: var(--neutral-400);
    text-decoration: none;
    font-size: var(--font-size-xs);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition-fast);
}

.bbc-footer-link-row a:hover {
    color: white;
    text-decoration: underline;
}

.bbc-footer-link-row .icon {
    width: 12px;
    height: 12px;
    opacity: 0.5;
}

/* ── Copyright ── */
.bbc-footer-copyright {
    padding: 12px 16px;
    border-top: 1px solid var(--neutral-700);
    color: var(--neutral-500);
    font-size: var(--font-size-xs);
}

/* ── Footer Responsive ── */
@media (min-width: 576px) {
    .bbc-quicklinks-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bbc-footer-contact-row {
        flex-direction: row;
        gap: 24px;
    }

    .bbc-footer-link-row {
        flex-direction: row;
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .bbc-footer-quicklinks {
        padding: 28px 24px;
    }

    .bbc-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 14px 24px;
    }

    .bbc-footer-copyright {
        padding: 10px 24px;
    }
}

@media (min-width: 1024px) {
    .bbc-quicklinks-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ── Footer Print ── */
@media print {
    .bbc-footer-quicklinks { display: none; }

    .bbc-footer {
        background-color: white;
        color: var(--neutral-600);
        border-top: 1px solid var(--neutral-300);
    }

    .bbc-footer-bottom {
        border-top-color: var(--neutral-300);
    }

    .bbc-footer-copyright {
        border-top-color: var(--neutral-300);
    }
}


/* ── FOOTER STYLES ── */

/* ── Container ── */
.bbc-footer {
    background-color: var(--neutral-800);
    color: var(--neutral-300);
    max-width: 1100px;
    margin: 0 auto;
    font-size: var(--font-size-sm);
}

.bbc-footer-inner {
    display: flex;
    flex-direction: column;
}

/* ── Quick Links Section ── */
.bbc-footer-quicklinks {
    padding: 24px 16px;
}

.bbc-footer-heading {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--neutral-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 14px 0;
}

.bbc-quicklinks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.bbc-quicklink {
    border: 1px solid var(--neutral-600);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-fast);
    background-color: var(--neutral-700);
    cursor: pointer;
    min-height: 80px;
    position: relative;
    overflow: hidden;
    color: var(--neutral-100);
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: 1.3;
    z-index: 0;
}

.bbc-quicklink:hover {
    background-color: white;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

/* Large centred background icon — watermark effect */
.bbc-quicklink::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    opacity: 0.12;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
    transition: all var(--transition-fast);
}

.bbc-quicklink:hover::before {
    opacity: 0.15;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Icon SVGs — light stroke for dark cards, switches to blue on hover via opacity */
.bbc-quicklink[data-icon="user"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5E7EB' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.bbc-quicklink[data-icon="edit"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5E7EB' stroke-width='2'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E"); }
.bbc-quicklink[data-icon="document"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5E7EB' stroke-width='2'%3E%3Cpath d='M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpolyline points='13 2 13 9 20 9'/%3E%3C/svg%3E"); }
.bbc-quicklink[data-icon="history"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5E7EB' stroke-width='2'%3E%3Cpath d='M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E"); }
.bbc-quicklink[data-icon="lock"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5E7EB' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E"); }
.bbc-quicklink[data-icon="key"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5E7EB' stroke-width='2'%3E%3Cpath d='M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4'/%3E%3C/svg%3E"); }
.bbc-quicklink[data-icon="document-x"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5E7EB' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cline x1='10' y1='12' x2='14' y2='16'/%3E%3Cline x1='14' y1='12' x2='10' y2='16'/%3E%3C/svg%3E"); }
.bbc-quicklink[data-icon="phone"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5E7EB' stroke-width='2'%3E%3Cpath d='M3 5a2 2 0 0 1 2-2h3.28a1 1 0 0 1 .948.684l1.498 4.493a1 1 0 0 1-.502 1.21l-2.257 1.13a11.042 11.042 0 0 0 5.516 5.516l1.13-2.257a1 1 0 0 1 1.21-.502l4.493 1.498a1 1 0 0 1 .684.949V19a2 2 0 0 1-2 2h-1C9.716 21 3 14.284 3 6V5z'/%3E%3C/svg%3E"); }

/* On hover, swap icon stroke to blue */
.bbc-quicklink:hover[data-icon="user"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C81' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.bbc-quicklink:hover[data-icon="edit"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C81' stroke-width='2'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E"); }
.bbc-quicklink:hover[data-icon="document"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C81' stroke-width='2'%3E%3Cpath d='M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpolyline points='13 2 13 9 20 9'/%3E%3C/svg%3E"); }
.bbc-quicklink:hover[data-icon="history"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C81' stroke-width='2'%3E%3Cpath d='M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E"); }
.bbc-quicklink:hover[data-icon="lock"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C81' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E"); }
.bbc-quicklink:hover[data-icon="key"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C81' stroke-width='2'%3E%3Cpath d='M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4'/%3E%3C/svg%3E"); }
.bbc-quicklink:hover[data-icon="document-x"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C81' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cline x1='10' y1='12' x2='14' y2='16'/%3E%3Cline x1='14' y1='12' x2='10' y2='16'/%3E%3C/svg%3E"); }
.bbc-quicklink:hover[data-icon="phone"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C81' stroke-width='2'%3E%3Cpath d='M3 5a2 2 0 0 1 2-2h3.28a1 1 0 0 1 .948.684l1.498 4.493a1 1 0 0 1-.502 1.21l-2.257 1.13a11.042 11.042 0 0 0 5.516 5.516l1.13-2.257a1 1 0 0 1 1.21-.502l4.493 1.498a1 1 0 0 1 .684.949V19a2 2 0 0 1-2 2h-1C9.716 21 3 14.284 3 6V5z'/%3E%3C/svg%3E"); }

/* ── Bottom: Contact & Links ── */
.bbc-footer-bottom {
    padding: 16px;
    border-top: 1px solid var(--neutral-700);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bbc-footer-contact-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bbc-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--neutral-200);
}

.bbc-footer-contact-item .icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.6;
}

.bbc-footer-contact-item a {
    color: var(--neutral-200);
    text-decoration: none;
}

.bbc-footer-contact-item a:hover {
    color: white;
    text-decoration: underline;
}

.bbc-footer-link-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bbc-footer-link-row a {
    color: var(--neutral-400);
    text-decoration: none;
    font-size: var(--font-size-xs);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition-fast);
}

.bbc-footer-link-row a:hover {
    color: white;
    text-decoration: underline;
}

.bbc-footer-link-row .icon {
    width: 12px;
    height: 12px;
    opacity: 0.5;
}

/* ── Copyright ── */
.bbc-footer-copyright {
    padding: 12px 16px;
    border-top: 1px solid var(--neutral-700);
    color: var(--neutral-500);
    font-size: var(--font-size-xs);
}

/* ── Responsive ── */
@media (min-width: 576px) {
    .bbc-quicklinks-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bbc-footer-contact-row {
        flex-direction: row;
        gap: 24px;
    }

    .bbc-footer-link-row {
        flex-direction: row;
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .bbc-footer-quicklinks {
        padding: 28px 24px;
    }

    .bbc-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 14px 24px;
    }

    .bbc-footer-copyright {
        padding: 10px 24px;
    }
}

@media (min-width: 1024px) {
    .bbc-quicklinks-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ── Print ── */
@media print {
    .bbc-footer-quicklinks { display: none; }

    .bbc-footer {
        background-color: white;
        color: var(--neutral-600);
        border-top: 1px solid var(--neutral-300);
    }

    .bbc-footer-bottom {
        border-top-color: var(--neutral-300);
    }

    .bbc-footer-copyright {
        border-top-color: var(--neutral-300);
    }
}

/* ==========================================================================
   BANK CHANGE RESTRICTION MESSAGE
   Append to bbc-portal.css
   Used by #bbcBankChangeMessage macro
   ========================================================================== */

.bbc-restriction-message {
    background-color: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 12px;
}

.bbc-restriction-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bbc-restriction-icon {
    flex-shrink: 0;
    color: var(--neutral-500);
}

.bbc-restriction-icon.bbc-restriction-warning {
    color: var(--warning);
}

.bbc-restriction-content {
    flex: 1;
}

.bbc-restriction-title {
    font-weight: 600;
    color: var(--neutral-700);
    font-size: var(--font-size-sm);
    margin-bottom: 4px;
}

.bbc-restriction-content p {
    color: var(--neutral-600);
    font-size: var(--font-size-sm);
    margin: 0 0 8px;
    line-height: 1.5;
}

.bbc-restriction-content p:last-child {
    margin-bottom: 0;
}

.bbc-restriction-warning-text {
    color: var(--warning) !important;
    font-weight: 500;
}

.bbc-restriction-sub {
    font-size: var(--font-size-xs) !important;
    color: var(--neutral-600) !important;
}


/* ==========================================================================
   CONTACT PROMPT
   Append to bbc-portal.css
   Used by #bbcContactPrompt macro (replaces inline styles)
   ========================================================================== */

.bbc-contact-prompt {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--neutral-200);
    color: var(--neutral-700);
    font-size: var(--font-size-sm);
}

.bbc-contact-prompt-link {
    color: var(--primary);
    text-decoration: none;
}

.bbc-contact-prompt-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   bbc-portal.css — additions for registration / criteria panels
   --------------------------------------------------------------------------
   Append these to bbc-portal.css. Two reusable patterns:

     .section-intro    — small grey introductory paragraph under a section
                         header (use anywhere a section needs a one-liner of
                         context before the form/content begins).

     .bbc-rules        — labelled rules / criteria panel. Use for password
                         requirements, MFA explainers, eligibility criteria,
                         or any list where each row is "tag + description".

   Both patterns are portal-level, not EQ overrides — bridge unchanged.
   ========================================================================== */


/* ==========================================================================
   X. SECTION INTRO PARAGRAPH
   ========================================================================== */

.section-intro {
    font-size: var(--font-size-sm);
    color: var(--neutral-600);
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.section-intro:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   Y. RULES / CRITERIA PANEL
   --------------------------------------------------------------------------
   Container of labelled rows. Each row is a tag (e.g. "Required",
   "Stronger") plus a description. Tags use the .is-* modifier classes.

   Markup:
     <div class="bbc-rules">
         <div class="bbc-rule">
             <span class="bbc-rule-tag is-required">Required</span>
             <span class="bbc-rule-text">At least 10 characters…</span>
         </div>
         <div class="bbc-rule">
             <span class="bbc-rule-tag is-enhanced">Stronger</span>
             <span class="bbc-rule-text">Use 14+ characters…</span>
         </div>
     </div>
   ========================================================================== */

.bbc-rules {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bbc-rule {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.bbc-rule-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
    min-width: 80px;
    text-align: center;
    line-height: 1.6;
}

.bbc-rule-tag.is-required {
    background: var(--success-light);
    color: #065F46;
}

.bbc-rule-tag.is-enhanced {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.bbc-rule-tag.is-info {
    background: var(--neutral-100);
    color: var(--neutral-700);
}

.bbc-rule-text {
    font-size: var(--font-size-sm);
    color: var(--neutral-700);
    line-height: 1.5;
}

@media (max-width: 640px) {
    .bbc-rule {
        flex-direction: column;
        gap: 4px;
    }
}


/* ==========================================================================
   Z. SECTION ACTIONS — Button row at the foot of a section's content
   --------------------------------------------------------------------------
   Use at the bottom of `.section-content` when a section has one or more
   action buttons (e.g. "View all documents", "Edit nomination", "Change
   address"). Replaces the old pattern of putting an `<a class="view-more-
   link">` inside `.section-header > .header-actions` — keeps action
   affordances consistent across the portal as full `.btn` buttons.

   Markup:
     <div class="section-content">
         …content…
         <div class="section-actions">
             <a href="…" class="btn btn-primary">Edit nomination</a>
         </div>
     </div>
   ========================================================================== */

.section-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.section-actions .btn {
    min-width: 160px;
}

@media (max-width: 640px) {
    .section-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .section-actions .btn {
        width: 100%;
        min-width: 0;
    }
}