/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Shared values */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------------
   TOAST NOTIFICATION SYSTEM
   ------------------------------------------------------------- */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 440px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border-left: 5px solid #64748b;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast-success {
    border-left-color: #10b981;
    background: #f0fdf4;
    color: #166534;
}

.toast-success svg {
    color: #10b981;
    flex-shrink: 0;
}

.toast-error {
    border-left-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
}

.toast-error svg {
    color: #ef4444;
    flex-shrink: 0;
}

.toast-message {
    flex-grow: 1;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #0f172a;
}

/* Invalid Input Highlighting */
.form-control.input-error,
.file-upload-wrapper.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
    animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-3px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(3px, 0, 0);
    }
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

/* -------------------------------------------------------------
   CLIENT INSURANCE FORM STYLES
   ------------------------------------------------------------- */
body.client-theme {
    background: #f1f5f9;
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.05) 0px, transparent 50%);
    color: #1e293b;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Banner Component */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #4f46e5 0%, #312e81 100%);
    color: #ffffff;
    padding: 55px 20px;
    text-align: center;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    box-shadow: 0 15px 30px -10px rgba(79, 70, 229, 0.2);
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #38bdf8;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    animation: pulse 2.5s infinite;
}

.discount-badge strong {
    color: #fff;
    font-size: 1.1rem;
    background: linear-gradient(to right, #38bdf8, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #c7d2fe;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.hr-info-pill {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
}

.hr-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e2e8f0;
}

.hr-info-item svg {
    width: 16px;
    height: 16px;
    color: #38bdf8;
}

/* Client Form Container */
.form-container {
    max-width: 1100px;
    width: 95%;
    margin: 0px auto 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.glass-form-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 20px 25px -5px rgba(0, 0, 0, 0.05),
        0 25px 50px -12px rgba(79, 70, 229, 0.08);
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.form-header p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Sections inside Form */
.form-section {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title span.step-num {
    background: #e0e7ff;
    color: #4f46e5;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Grid Layouts for Inputs */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {

    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 14px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper svg.input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-control {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.92rem;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-md);
    color: #1e293b;
    transition: var(--transition-smooth);
}

.input-wrapper .form-control {
    padding-left: 42px;
}

.form-control:hover {
    border-color: #94a3b8;
}

.form-control:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.input-wrapper:focus-within svg.input-icon {
    color: #4f46e5;
}

/* Live dynamic helper (e.g. BMI and Premium Calculator display) */
.bmi-indicator-box,
.premium-indicator-box {
    margin-top: 15px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.bmi-value-badge {
    background: #e2e8f0;
    color: #334155;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
}

.bmi-value-badge.underweight {
    background: #fef08a;
    color: #854d0e;
}

.bmi-value-badge.normal {
    background: #bbf7d0;
    color: #166534;
}

.bmi-value-badge.overweight {
    background: #fed7aa;
    color: #9a3412;
}

.bmi-value-badge.obese {
    background: #fecaca;
    color: #991b1b;
}

/* Buttons */
.submit-btn {

    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: #ffffff;
    border: none;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 15px -4px rgba(79, 70, 229, 0.25);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -5px rgba(79, 70, 229, 0.45);
    background: linear-gradient(135deg, #4338ca 0%, #0891b2 100%);
}

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

.submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* -------------------------------------------------------------
   ADMIN DASHBOARD STYLES
   ------------------------------------------------------------- */
body.admin-theme {
    background: #090d16;
    background-image:
        radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.08) 0px, transparent 50%);
    color: #f8fafc;
    min-height: 100vh;
}

.admin-header {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-logo svg {
    width: 28px;
    height: 28px;
    color: #10b981;
}

.admin-logo h1 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.admin-logo h1 span {
    color: #10b981;
}

.admin-nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.portal-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.portal-link:hover {
    color: #f8fafc;
}

/* Dashboard Layout Grid */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.3);
}

.stat-info h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.stat-info p.stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stat-card.emerald .stat-icon-wrapper {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.stat-card.blue .stat-icon-wrapper {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.stat-card.violet .stat-icon-wrapper {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.stat-card.amber .stat-icon-wrapper {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

/* Two Column Admin Workplace */
.admin-workplace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 1024px) {
    .admin-workplace {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Cards */
.dash-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4);
}

.dash-card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-card-title svg {
    width: 20px;
    height: 20px;
    color: #10b981;
}

/* Admin Input styling */
.admin-theme .form-group label {
    color: #94a3b8;
}

.admin-theme .form-control {
    background: #0f172a;
    border: 1px solid #334155;
    color: #f8fafc;
}

.admin-theme .form-control:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.admin-btn {
    width: 100%;
    background: #10b981;
    color: #0f172a;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-btn:hover {
    background: #34d399;
}

/* Submissions Workspace */
.table-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.search-box {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #64748b;
}

.search-box .form-control {
    padding-left: 42px;
}

/* Data Table Styling */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid rgba(51, 65, 85, 0.5);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.data-table th {
    background: rgba(15, 23, 42, 0.6);
    color: #94a3b8;
    font-weight: 600;
    padding: 16px 20px;
    border-bottom: 1px solid #334155;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

.data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    color: #e2e8f0;
}

.data-table tbody tr {
    transition: var(--transition-fast);
}

.data-table tbody tr:hover {
    background: rgba(51, 65, 85, 0.2);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges inside tables */
.meta-info-badge {
    display: inline-flex;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #334155;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #f8fafc;
}

.tag-discount {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Action Buttons */
.icon-action-btn {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.icon-action-btn:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: scale(1.1);
}

/* Empty State */
.table-empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #94a3b8;
}

.table-empty-state svg {
    width: 48px;
    height: 48px;
    color: #475569;
    margin-bottom: 12px;
}


/* -------------------------------------------------------------
   REUSABLE DYNAMIC UI COMPONENTS: MODALS & TOASTS
   ------------------------------------------------------------- */
/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    min-width: 300px;
    background: #ffffff;
    color: #1e293b;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid #cbd5e1;
    transform: translateY(100px);
    opacity: 0;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transition: var(--transition-fast);
}

.toast.toast-success {
    border-left-color: #10b981;
}

.toast.toast-error {
    border-left-color: #ef4444;
}

.toast.toast-info {
    border-left-color: #3b82f6;
}

.admin-theme .toast {
    background: #1e295e;
    background: rgba(30, 41, 59, 0.95);
    color: #f8fafc;
    border-left-color: #334155;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-theme .toast.toast-success {
    border-left-color: #10b981;
}

.admin-theme .toast.toast-error {
    border-left-color: #ef4444;
}

.toast-message {
    font-size: 0.9rem;
    font-weight: 550;
    flex-grow: 1;
}

.toast-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

/* Modal Window styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    overflow: scroll;
}




.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: var(--transition-smooth);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-header {
    background: rgba(15, 23, 42, 0.4);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    color: #f8fafc;
}

.modal-body {
    padding: 11px;
    color: #e2e8f0;
    overflow-y: auto;
    flex-grow: 1;
}

.detail-section {
    margin-bottom: 24px;
}

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

.detail-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    padding-bottom: 4px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 25px;
}

.detail-item label {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 2px;
}

.detail-item span {
    font-size: 0.95rem;
    font-weight: 550;
    color: #f8fafc;
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(56, 189, 248, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

@keyframes slideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Promotional Popup Modal styling */
.promo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.promo-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.promo-modal-box {
    background: #ffffff;
    width: 95%;
    max-width: 460px;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: scale(0.92);
    transition: var(--transition-smooth);
    position: relative;
    padding: 45px 36px 36px 36px;
    text-align: center;
    border: none;
    overflow: hidden;
}

.promo-modal-overlay.active .promo-modal-box {
    transform: scale(1);
}

.promo-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.promo-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: scale(1.05);
}

.promo-gift-icon {
    width: 84px;
    height: 84px;
    background: #f0fdf4;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    box-shadow: 0 10px 24px -5px rgba(16, 185, 129, 0.25);
    animation: bounce 2s infinite;
}

.promo-modal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.promo-message {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

.promo-message strong {
    color: #10b981;
    font-size: 1.25rem;
    font-weight: 800;
}

.promo-action-btn {
    width: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px -4px rgba(79, 70, 229, 0.3);
    transition: var(--transition-smooth);
}

.promo-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -5px rgba(79, 70, 229, 0.45);
    background: linear-gradient(135deg, #4338ca 0%, #2563eb 100%);
}

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

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Super Top Up Card Styling */
.topup-badge-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    margin-bottom: 24px;
    margin-top: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    box-shadow:
        0 10px 25px -5px rgba(15, 23, 42, 0.2),
        0 8px 16px -6px rgba(0, 0, 0, 0.1);
    color: #f8fafc;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.topup-badge-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 20px 35px -10px rgba(15, 23, 42, 0.3),
        0 10px 20px -8px rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
}

.topup-badge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #38bdf8, #818cf8);
}

.topup-icon {
    width: 44px;
    height: 44px;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.topup-icon svg {
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.2));
}

.topup-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.topup-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.topup-desc {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 2px;
    line-height: 1.4;
}

.topup-desc strong {
    color: #34d399;
    font-weight: 700;
}

/* Site Image Banner Styling */
/* -------------------------------------------------------------
   HERO SLIDER COMPONENT STYLES
   ------------------------------------------------------------- */
.hero-slider-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 480px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 20px 40px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    z-index: 5;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-content {
    max-width: 650px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.4s, transform 0.6s ease-out 0.4s;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    padding: 30px 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.hero-slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.25);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 6px 12px;
    border-radius: 30px;
    margin-bottom: 15px;
}

.slide-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    color: #ffffff;
}

.slide-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 24px;
}

.slide-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    outline: none;
}

.slide-btn.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #312e81 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.slide-btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.slide-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #38bdf8;
}

.slide-discount-badge strong {
    color: #ffffff;
    background: linear-gradient(to right, #38bdf8, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.1rem;
    font-weight: 800;
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    opacity: 0;
}

.hero-slider-container:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    transform: translateY(-50%) scale(1.05);
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-dot.active {
    background: #4f46e5;
    width: 24px;
    border-radius: 5px;
}

.slider-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.slider-progress-fill {
    width: 0;
    height: 100%;
    background: #4f46e5;
    transition: width 4s linear;
}

/* Child Form Details Styling refinements */
.child-disease-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 8px !important;
}

.disease-checkbox-card.small-card {
    padding: 8px 10px !important;
    border-radius: 8px !important;
    gap: 6px !important;
}

.disease-checkbox-card.small-card span {
    font-size: 0.78rem !important;
}

.disease-checkbox-card.small-card input[type="checkbox"] {
    width: 14px !important;
    height: 14px !important;
}

.file-upload-wrapper.small-upload {
    padding: 15px 10px !important;
    border-radius: 8px !important;
}

.file-upload-wrapper.small-upload .upload-icon {
    margin-bottom: 4px !important;
}

.file-upload-wrapper.small-upload .upload-label {
    font-size: 0.78rem !important;
}

.file-upload-wrapper.small-upload .selected-file-name {
    font-size: 0.7rem !important;
    margin-top: 4px !important;
    padding: 1px 8px !important;
}

@media (max-width: 768px) {
    .hero-slider-container {
        height: 380px;
    }

    .hero-slide {
        padding: 0 20px;
    }

    .slide-content {
        padding: 20px;
        max-width: 100%;
    }

    .slide-title {
        font-size: 1.75rem;
    }

    .slider-arrow {
        display: none;
    }
}

/* Discount Badge Overlay over image banner */
.discount-badge-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #38bdf8;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    animation: pulse 2.5s infinite;
}

.discount-badge-overlay strong {
    color: #fff;
}

/* Sponsor Info Bar Styling */
.sponsor-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    gap: 15px;
    flex-wrap: wrap;
}

.sponsor-pill-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #475569;
}

.sponsor-pill-item svg {
    color: #4f46e5;
}

.sponsor-pill-item strong {
    color: #1e293b;
}

@media (max-width: 600px) {
    .sponsor-info-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Excel Export Button Hover Effect */
.excel-export-btn:hover {
    background: rgba(16, 185, 129, 0.25) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* -------------------------------------------------------------
   POLICY SELECTION & INSURED MEMBER SELECTION STYLES
   ------------------------------------------------------------- */
.policy-type-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.policy-option-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.policy-option-card:hover {
    border-color: #a5b4fc;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -3px rgba(99, 102, 241, 0.12);
}

.policy-option-card:has(input[type="radio"]:checked) {
    border-color: #4f46e5;
    background: linear-gradient(145deg, #ffffff 0%, #f5f3ff 100%);
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.15), 0 0 0 1px #4f46e5;
}

.policy-option-card input[type="radio"] {
    accent-color: #4f46e5;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.policy-option-card span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

/* Insured Grid & Cards */
.insured-grid-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.insured-grid-avatars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.insured-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.insured-card:hover {
    border-color: #a5b4fc;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -3px rgba(99, 102, 241, 0.12);
}

.insured-card:has(input[type="checkbox"]:checked) {
    border-color: #4f46e5;
    background: linear-gradient(145deg, #ffffff 0%, #f5f3ff 100%);
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.15), 0 0 0 1px #4f46e5;
}

.insured-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.insured-card-header input[type="checkbox"] {
    accent-color: #4f46e5;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.insured-card-header span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

.insured-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.insured-avatar svg {
    width: 64px;
    height: 64px;
    transition: var(--transition-fast);
}

.insured-card:hover .insured-avatar svg {
    transform: scale(1.08);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .policy-type-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .insured-grid-top {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .insured-grid-avatars {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Reusable Glassmorphic floating link badges (like Admin Portal) */
.portal-link {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #4f46e5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.portal-link:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.2), 0 10px 15px -8px rgba(0, 0, 0, 0.1);
    border-color: rgba(79, 70, 229, 0.3);
    color: #312e81;
}

.portal-link svg {
    transition: var(--transition-fast);
}

.portal-link:hover svg {
    transform: rotate(15deg);
}

/* Form Box Promo Banner */
.form-box-promo-img {
    margin-bottom: 25px;
    text-align: center;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #cbd5e1;
    background: #ffffff;
}

.form-box-promo-img img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

/* Pre-existing Disease Checkboxes */
.disease-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.disease-checkbox-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.disease-checkbox-card input[type="checkbox"] {
    accent-color: #4f46e5;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.disease-checkbox-card span {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    user-select: none;
}

.disease-checkbox-card:hover {
    border-color: #a5b4fc;
    background: #f8fafc;
}

.disease-checkbox-card.checked {
    border-color: #4f46e5;
    background: linear-gradient(145deg, #ffffff 0%, #f5f3ff 100%);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}

/* Document Upload Field */
.file-upload-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 30px 20px;
    background: #ffffff;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-wrapper:hover {
    border-color: #4f46e5;
    background: #f8fafc;
}

.file-upload-wrapper.dragover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.upload-icon {
    color: #4f46e5;
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

.file-upload-wrapper:hover .upload-icon {
    transform: translateY(-2px);
}

.upload-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
}

.selected-file-name {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 6px;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid #cbd5e1;
}

/* -------------------------------------------------------------
   PROFESSIONAL BANNER RESIZING AND UNIFICATION
   ------------------------------------------------------------- */
.banner-carousel-wrapper,
.site-banner,
.site-banner1 {
    max-width: 100%;
    width: 100%;
    height: 580px;
    margin: 0 auto;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 20px 40px rgba(0, 0, 0, 0.04);
    border: none;
    background: #ffffff;
    position: relative;
    z-index: 5;
}

/* Ensure the Bootstrap Carousel matches wrapper height exactly */
.banner-carousel-wrapper .carousel,
.banner-carousel-wrapper .carousel-inner,
.banner-carousel-wrapper .carousel-item {
    height: 100%;
}

/* Set exact same fit and layout properties for all images */
.banner-carousel-wrapper .carousel-item img,
.site-banner img,
.site-banner1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* First banner (align center, like it was before) */
.banner-carousel-wrapper .carousel-item:nth-child(1) img,
.site-banner img {
    object-position: center;
}

/* Second banner (align top, which looks good) */
.banner-carousel-wrapper .carousel-item:nth-child(2) img,
.site-banner1 img {
    object-position: top;
}

/* Responsive banner height adjustments for tablets and mobile */
@media (max-width: 992px) {

    .banner-carousel-wrapper,
    .site-banner,
    .site-banner1 {
        height: 380px;
    }
}

@media (max-width: 576px) {

    .banner-carousel-wrapper,
    .site-banner,
    .site-banner1 {
        height: 220px;
    }
}