/* ============================================
   SHARED CSS VARIABLES
   ============================================ */
:root {
    /* peoplePlus brand palette (matched to wpeopleplus.mfpdev.net) */
    --crm-primary-900: #050e36;
    --crm-primary-800: #0a2472;
    --crm-primary-700: #0a2472;
    --crm-primary-600: #046bd2;
    --crm-primary-500: #046bd2;
    --crm-primary-400: #4a94e0;
    --crm-primary-50: #f8fafd;
    --crm-primary-100: #e9f0f9;
    --crm-primary-200: #cfe0f6;
    --crm-primary-300: #a9c9ee;

    --crm-bg-card: #ffffff;
    --crm-bg-body: #f8fafd;
    --crm-border: #e5e7eb;
    --crm-text-primary: #0f1f38;
    --crm-text-secondary: #4b5a72;
    --crm-muted: #9ca3af;

    --crm-info: #046bd2;
    --crm-info-light: #eaf1fb;
    --crm-success: #10b981;
    --crm-success-light: #ecfdf5;
    --crm-danger: #ef4444;
    --crm-danger-light: #fef2f2;
    --crm-warning: #f59e0b;
    --crm-warning-light: #fffbeb;

    --font-sans: 'Hanken Grotesk', system-ui, sans-serif;
    --font-serif: 'Spectral', Georgia, serif;

    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* ============================================
   BASE STYLES
   ============================================ */
html, body {
    height: 100%;
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--crm-bg-body);
    color: var(--crm-text-primary);
}

/* ============================================
   TOP BAR
   ============================================ */
.auth-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    background: var(--crm-bg-card);
    border-bottom: 1px solid var(--crm-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    color: var(--crm-primary-800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.auth-logo img { height: 32px; }
.auth-logo span .plus { color: var(--crm-primary-500); }

.auth-user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-user-menu .user-info {
    font-size: var(--text-sm);
    color: var(--crm-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-user-menu .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--crm-primary-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--crm-primary-700);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
}

/* ============================================
   MODERN USER MENU DROPDOWN (Topbar)
   ============================================ */
.content-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.user-menu { position: relative; }

.user-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.user-trigger:hover {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.3);
}

.user-trigger.active {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.4);
}

.user-trigger .user-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.3);
    letter-spacing: 0.5px;
}

.user-trigger .user-avatar .status-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid white;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3);
}

.user-trigger .user-avatar .status-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.4);
    animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

.user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.2;
}

.user-greeting {
    font-size: 13px;
    font-weight: 600;
    color: var(--crm-text-primary);
    white-space: nowrap;
}

.user-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--crm-text-secondary);
}

.user-role {
    font-weight: 500;
    color: var(--crm-primary-600);
}

.user-company { color: var(--crm-muted); }

.user-trigger .chevron {
    font-size: 11px;
    color: var(--crm-text-secondary);
    transition: transform 0.2s ease;
    margin-left: 4px;
}

.user-trigger.active .chevron { transform: rotate(180deg); }

/* Dropdown Panel */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--crm-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-header {
    padding: 18px 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-header .avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 17px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.3);
}

.dropdown-header .header-info { flex: 1; min-width: 0; }

.dropdown-header .header-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--crm-text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-header .header-email {
    font-size: 12px;
    color: var(--crm-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-header .header-role {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-menu-items { padding: 8px 0; }

.dropdown-section-label {
    padding: 8px 16px 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--crm-muted);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--crm-text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    position: relative;
}

.dropdown-item:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.dropdown-item:hover i {
    color: #1d4ed8;
    transform: translateX(2px);
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--crm-text-secondary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-item .item-text { flex: 1; }

.dropdown-item .item-badge {
    background: #ef4444;
    color: white;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.dropdown-item .item-arrow {
    font-size: 11px;
    color: var(--crm-muted);
    opacity: 0;
    transition: all 0.2s ease;
}

.dropdown-item:hover .item-arrow {
    opacity: 1;
    transform: translateX(2px);
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px 0;
}

.dropdown-item.danger { color: #dc2626; }
.dropdown-item.danger i { color: #dc2626; }
.dropdown-item.danger:hover { background: #fef2f2; color: #b91c1c; }

.dropdown-footer {
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 11px;
    color: var(--crm-muted);
    text-align: center;
}

.dropdown-footer strong { color: var(--crm-text-secondary); }

/* ============================================
   HELP ICON WITH TOOLTIP POPUP
   ============================================ */
.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--crm-primary-100);
    color: var(--crm-primary-600);
    font-size: 10px;
    font-weight: bold;
    cursor: help;
    margin-left: 4px;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid var(--crm-primary-200);
    flex-shrink: 0;
}

.help-icon:hover {
    background: var(--crm-primary-600);
    color: white;
    transform: scale(1.1);
}

.help-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #1e293b;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: normal;
    max-width: 280px;
    white-space: normal;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: left;
}

.help-icon::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    border: 6px solid transparent;
    border-top-color: #1e293b;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1001;
}

.help-icon:hover::after,
.help-icon:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Tooltip for right-side items (prevent overflow) */
.form-grid > .form-group:nth-child(4n) .help-icon::after,
.form-grid > .form-group:last-child .help-icon::after {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(5px);
}

.form-grid > .form-group:nth-child(4n) .help-icon:hover::after,
.form-grid > .form-group:last-child .help-icon:hover::after {
    transform: translateX(0) translateY(0);
}

.form-grid > .form-group:nth-child(4n) .help-icon::before,
.form-grid > .form-group:last-child .help-icon::before {
    left: auto;
    right: 8px;
    transform: translateX(0) translateY(5px);
}

.form-grid > .form-group:nth-child(4n) .help-icon:hover::before,
.form-grid > .form-group:last-child .help-icon:hover::before {
    transform: translateX(0) translateY(0);
}

/* ============================================
   AUTOCOMPLETE HINT
   ============================================ */
.autocomplete-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 3px solid var(--crm-primary-400);
    border-radius: 0 6px 6px 0;
    font-size: 11.5px;
    color: var(--crm-text-secondary);
    line-height: 1.4;
    font-style: normal;
}

.autocomplete-hint i {
    color: var(--crm-primary-500);
    font-size: 12px;
    flex-shrink: 0;
}

/* ============================================
   PAGE CONTAINER
   ============================================ */
.signup-wrapper {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 64px);
    height: calc(100vh - 64px); /* Fixed height to prevent reflow */
}

.signup-left {
    flex: 1;
    background: linear-gradient(160deg, var(--crm-primary-800) 0%, var(--crm-primary-900) 100%);
    color: #fff;
    padding: 3rem;
    display: flex;
    justify-content: center;
    overflow-y: auto;
    width: 100%;
    max-width: 690px;
    min-height: 100%; /* Ensure it fills the wrapper */
}

.left-content { width: 100%; max-width: 350px; }
.signup-left h1 { font-family: var(--font-serif); font-weight: var(--font-semibold); font-size: 2.5rem; line-height: 1.2; margin-bottom: 1.5rem; color: #fff; }
.signup-left h1 .text-accent-teal { color: #5eead4; }
.signup-left p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 3rem; }

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.signup-right {
    flex: 1;
    background: var(--crm-bg-card);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    position: relative; /* Prevent dropdown from affecting parent */
}

.form-container {
    width: 100%;
    max-width: 690px;
    padding: 1.5rem;
    margin: auto;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative; /* Contain dropdown overflow */
}
/* Prevent select dropdown from affecting layout */
.form-container select {
    position: relative;
    z-index: 1;
}

.form-container select:focus {
    z-index: 10;
}


/* .page-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
} */

.breadcrumb {
    font-size: var(--text-sm);
    color: var(--crm-text-secondary);
    margin-bottom: 0.75rem;
}

.breadcrumb a {
    color: var(--crm-primary-600);
    text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.page-header h1 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--crm-text-primary);
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

.header-actions .btn {
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-subtitle {
    font-size: var(--text-base);
    color: var(--crm-text-secondary);
    margin-bottom: 1.5rem;
}

/* ============================================
   INFO BANNER (Professional Layout)
   ============================================ */
.info-banner {
    background: var(--crm-primary-50);
    border: 1px solid var(--crm-primary-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 2rem;
}

.info-banner-left {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex: 1;
    min-width: 0;
}

.info-banner-left .info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--crm-primary-100);
    border: 2px solid var(--crm-primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--crm-primary-700);
    flex-shrink: 0;
    font-weight: bold;
}

.info-banner-left .info-text {
    font-size: 0.9375rem;
    color: var(--crm-primary-900);
    line-height: 1.4;
}

.info-banner-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.info-banner-right .upload-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.375rem;
}

.info-banner-right .upload-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.upload-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--crm-primary-600);
    background: white;
    color: var(--crm-primary-600);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.upload-btn:hover {
    background: var(--crm-primary-50);
    border-color: var(--crm-primary-700);
}

.file-input-wrapper input[type="file"] {
    padding: 0.5rem;
    border: 1px solid var(--crm-border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    background: white;
}

.file-name-display {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--crm-border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: white;
    min-width: 240px;
    color: var(--crm-text-primary);
}

.file-format-note {
    font-size: 0.75rem;
    color: var(--crm-muted);
    margin: 0;
    text-align: right;
}

/* ============================================
   FORM CARD
   ============================================ */
.form-card {
    background: var(--crm-bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--crm-border);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--crm-primary-700);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title .section-icon { font-size: 1.25rem; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin-bottom: 0;
    max-width: 100%;
}

.form-group.full-width { grid-column: span 1; }
.form-group.half-width { grid-column: span 2; }

.form-group label {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--crm-text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-group label .required { color: var(--crm-danger); }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select {
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--crm-border);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    color: var(--crm-text-primary);
    outline: none;
    transition: all 0.2s;
    background: white;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--crm-primary-500);
    box-shadow: 0 0 0 3px var(--crm-primary-200);
}

.form-group input::placeholder { color: var(--crm-muted); }

.form-group input[readonly] {
    background: var(--crm-bg-body);
    color: var(--crm-muted);
    cursor: not-allowed;
}

.form-group select {
    cursor: pointer;
    appearance: auto;
}

.input-with-icon { position: relative; }
.input-with-icon input { width: 100%; padding-right: 2.5rem; }

.input-with-icon .calendar-icon {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--crm-muted);
    font-size: 1rem;
    pointer-events: none;
}

/* ============================================
   MOBILE INPUT GROUP
   ============================================ */
.mobile-input-group {
    display: flex !important;
    width: 100%;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
}

.mobile-input-group select {
    border: none !important;
    background-color: #f8f9fa;
    border-right: 1px solid #ced4da !important;
    padding: 0 10px;
    font-size: 14px;
    color: #495057;
    outline: none;
    cursor: pointer;
    height: 38px;
    width: 95px !important;
    flex-shrink: 0;
}

.mobile-input-group input {
    border: none !important;
    flex-grow: 1 !important;
    width: 100% !important;
    padding: 0 12px;
    font-size: 14px;
    color: #495057;
    outline: none;
    height: 38px;
    box-shadow: none !important;
}

.mobile-input-group:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ============================================
   RADIO & CHECKBOX GROUPS
   ============================================ */
.radio-group {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    font-size: var(--text-base);
    cursor: pointer;
    margin: 0;
}

.radio-group input[type="radio"] {
    accent-color: var(--crm-primary-600);
    width: 16px;
    height: 16px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.checkbox-group input[type="checkbox"] {
    accent-color: var(--crm-primary-600);
    width: 16px;
    height: 16px;
}

.checkbox-group label {
    font-weight: 400;
    font-size: var(--text-base);
    cursor: pointer;
    margin: 0;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: var(--text-sm);
}

.alert-danger {
    background: var(--crm-danger-light);
    color: #842029;
    border: 1px solid #f5c2c7;
}

.alert-success {
    background: var(--crm-success-light);
    color: #0f5132;
    border: 1px solid #badbcc;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--crm-border);
    margin: 2rem 0;
}

/* ============================================
   FOOTER ACTIONS
   ============================================ */
.form-footer {
    background: var(--crm-bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--crm-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--text-sm);
    color: var(--crm-text-secondary);
}

.footer-info .info-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--crm-primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--crm-primary-600);
    flex-shrink: 0;
}

.footer-actions { display: flex; gap: 0.75rem; }

.btn-cancel {
    padding: 0.625rem 1.5rem;
    border: 1px solid var(--crm-border);
    background: white;
    color: var(--crm-text-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--text-base);
    transition: all 0.2s;
}

.btn-cancel:hover { background: var(--crm-bg-body); }

.btn-save {
    padding: 0.625rem 1.5rem;
    border: none;
    background: var(--crm-primary-600);
    color: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    transition: all 0.2s;
}

.btn-save:hover { background: var(--crm-primary-700); }

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    color: white;
    font-size: var(--text-sm);
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.show { transform: translateX(0); }
.toast.success { background: var(--crm-success); }
.toast.error { background: var(--crm-danger); }

/* ============================================
   BOOTSTRAP OVERRIDES (brand alignment)
   ============================================ */
.form-control:focus,
.form-select:focus {
    border-color: var(--crm-primary-500);
    box-shadow: 0 0 0 3px var(--crm-primary-200);
}

.btn-primary {
    background-color: var(--crm-primary-600);
    border-color: var(--crm-primary-600);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--crm-primary-800) !important;
    border-color: var(--crm-primary-800) !important;
}

a { color: var(--crm-primary-600); }
a:hover { color: var(--crm-primary-800); }

/* ============================================
   FORM CONTROL & INPUT ICONS
   ============================================ */
.form-control { width: 100%; }

.input-icon { position: relative; }
.input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--crm-muted);
}

.input-icon .form-control { padding-left: 3rem; }

.package-info {
    background: var(--crm-info-light);
    border-left: 4px solid var(--crm-info);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 0.75rem;
    font-size: var(--text-sm);
    color: var(--crm-text-primary);
}

.btn-primary {
    justify-content: center;
    padding: 0.875rem;
    font-size: 1rem;
}

/* ============================================
   VALIDATION
   ============================================ */
.form-group.error input,
.form-group.error select {
    border-color: var(--crm-danger);
}

.error-message {
    font-size: 12px;
    color: var(--crm-danger);
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .error-message { display: block; }

/* ============================================
   JQUERY UI AUTOCOMPLETE
   ============================================ */
.ui-autocomplete {
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999 !important;
}

.ui-menu-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.ui-menu-item:hover,
.ui-state-focus {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

.new-option {
    color: #10b981 !important;
    font-weight: 600;
}

/* ============================================
   CALENDAR PICKER (Old System Style)
   ============================================ */
/* .calendar-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.calendar-input-wrapper .form-control {
    flex: 1;
    padding-right: 30px;
    cursor: pointer;
}

.calendar-link {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 5;
}

.calendar-trigger {
    cursor: pointer;
    transition: opacity 0.2s;
}

.calendar-trigger:hover { opacity: 0.7; }
*/
.calendar-link {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 5;
}
/* jQuery UI Datepicker Styling */
/*.ui-datepicker {
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 8px;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 17px;
    z-index: 9999 !important;
}

.ui-datepicker-header {
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 4px;
    margin-bottom: 4px;
}

.ui-datepicker-title {
    font-weight: bold;
    color: #333;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer;
    border: 1px solid #ccc;
    background: #f8f8f8;
    border-radius: 3px;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover { background: #e0e0e0; }

.ui-datepicker td { padding: 2px; }

.ui-datepicker td a {
    display: block;
    padding: 4px 8px;
    text-align: center;
    text-decoration: none;
    color: #333;
    border: 1px solid transparent;
    border-radius: 3px;
}

.ui-datepicker td a:hover {
    background: #e8f0fe;
    border-color: #3b7dd8;
}

.ui-datepicker td a.ui-state-active {
    background: #3b7dd8;
    color: white;
    border-color: #3b7dd8;
}

.ui-datepicker td a.ui-state-highlight {
    background: #fff3cd;
    border-color: #ffc107;
} */

/* ============================================
   TOOLTIP (Legacy)
   ============================================ */
.tooltip { position: relative; }

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--crm-text-primary);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 0.25rem;
}

/* Styling for feature titles inside the auth templates */
.feature-item h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

/* Styling for feature descriptions inside the auth templates */
.feature-item p {
    margin: 0;
    opacity: 0.9;
}
/* Help text for form fields */
.form-help-text {
    color: var(--crm-muted);
}
/* Instructional text under headings on form steps */
.form-instruction-text {
    color: var(--crm-text-secondary);
    margin-bottom: 1.5rem;
}
/* Form subheadings and step titles */
.auth-step-title {
    font-family: var(--font-serif);
    font-weight: var(--font-semibold);
    color: var(--crm-primary-800);
    margin-bottom: 0.5rem;
}

/* Legal text links at the bottom of authentication pages */
.auth-legal-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: var(--text-sm);
    color: var(--crm-text-secondary);
}
/* Visibility toggle button inside password input fields */
.password-toggle-btn {
    position: absolute;
    right: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--crm-muted);
}

/* Password strength and match validation messages */
.validation-message {
    font-size: 0.875rem;
    margin-top: 5px;
}
/* Custom sizing for main authentication action buttons */
.auth-submit-btn {
    padding: 0.875rem;
    font-size: 1rem;
}
.auth-topbar .auth-logo img {
  height: 32px;
}
.form-container .btn-primary {
  background: var(--crm-primary-600);
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-family: var(--font-sans);
  width: 100%;
  transition: background 0.2s;
}
.form-container .btn-primary:hover {
  background: var(--crm-primary-800);
}
.password-requirements {
  font-size: var(--text-sm);
  color: var(--crm-muted);
  margin-top: 0.25rem;
}
.password-requirements ul {
  margin: 0.25rem 0 0 1.25rem;
  padding: 0;
}
.password-requirements li {
  list-style: disc;
}
 /* Additional overrides */
.auth-signin-link {
    font-size: var(--text-sm);
    color: var(--crm-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.auth-signin-link a {
    color: var(--crm-primary-800);
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--crm-primary-800);
    border-radius: 9999px;
    padding: 0.4rem 1.1rem;
    transition: all 0.2s;
}
.auth-signin-link a:hover {
    background: var(--crm-primary-800);
    color: #fff;
}
.form-footer .btn-primary {
    background: var(--crm-primary-600);
    border: none;
    border-radius: 9999px;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
}
.form-footer .btn-primary:hover {
    background: var(--crm-primary-800);
}
.forgot-password-link,
.forgot-security-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: var(--text-sm);
}
.forgot-password-link a,
.forgot-security-link a {
    color: var(--crm-primary-600);
    text-decoration: none;
}
.forgot-password-link a:hover,
.forgot-security-link a:hover {
    text-decoration: underline;
}
.signup-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: var(--text-sm);
    color: var(--crm-text-secondary);
}
.signup-link a {
    color: var(--crm-primary-600);
    font-weight: 500;
    text-decoration: none;
}
.signup-link a:hover {
    text-decoration: underline;
}
.modal-content {
    border-radius: var(--radius-lg);
    border: 1px solid var(--crm-border);
}
.modal-header {
    border-bottom: 1px solid var(--crm-border);
    background: var(--crm-primary-50);
}
.modal-footer {
    border-top: 1px solid var(--crm-border);
}
.link-separator {
    margin: 0 0.5rem;
    color: var(--crm-muted);
}
 /* Additional overrides for password strength meter */
.strength-meter {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.8125rem;
  margin-left: 0.5rem;
  background: #f1f5f9;
  color: #475569;
  min-width: 80px;
  text-align: center;
  transition: all 0.2s;
}
.strength-meter.weak {
  background: #fef2f2;
  color: #b91c1c;
}
.strength-meter.medium {
  background: #fffbeb;
  color: #b45309;
}
.strength-meter.strong {
  background: #ecfdf5;
  color: #065f46;
}
.strength-meter.very-weak {
  background: #fee2e2;
  color: #991b1b;
}
.strength-meter.too-weak {
  background: #fecaca;
  color: #7f1d1d;
}
 /* ============================================
   PREMIUM SEQUENCE MAP / STEPPER WIZARD
   ============================================ */
.sequence-map {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 40px 28px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}
.sequence-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #10b981);
}
/* Step Indicators */
.stepper-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-bottom: 16px;
}
.stepper-row::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e2e8f0;
    z-index: 0;
    border-radius: 2px;
}
.stepper-progress-line {
    position: absolute;
    top: 22px;
    left: 40px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    z-index: 1;
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    flex: 1;
    transition: all 0.3s;
}
.step-item:hover .step-circle {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    border: 3px solid #e2e8f0;
    background: #fff;
    color: #94a3b8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 10px;
    position: relative;
}
/* Step States */
.step-item.active .step-circle {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    animation: stepPulse 2s infinite;
}
.step-item.completed .step-circle {
    border-color: #10b981;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.step-item.error .step-circle {
    border-color: #ef4444;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    animation: stepShake 0.5s;
}
@keyframes stepPulse {
    0%,
    100% {
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(59, 130, 246, 0.6);
    }
}
@keyframes stepShake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}
.step-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.step-item.active .step-label {
    color: #3b82f6;
}
.step-item.completed .step-label {
    color: #10b981;
}
.step-item.error .step-label {
    color: #ef4444;
}
.step-sublabel {
    font-size: 11px;
    color: #cbd5e1;
    margin-top: 2px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}
.step-item.active .step-sublabel {
    color: #93c5fd;
}
/* Progress Bar */
.sequence-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
.sequence-progress-bar {
    flex: 1;
    height: 6px;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
}
.sequence-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #10b981);
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}
.sequence-progress-text {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    min-width: 36px;
    text-align: right;
}
/* Step Content Panels */
.step-panel {
    display: none;
    animation: fadeSlideIn 0.4s ease;
}
.step-panel.active {
    display: block;
}
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Step Navigation Buttons */
.step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}
.btn-step {
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-step-prev {
    background: #f1f5f9;
    color: #475569;
}
.btn-step-prev:hover {
    background: #e2e8f0;
    transform: translateX(-2px);
}
.btn-step-next {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.btn-step-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}
.btn-step-submit {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.btn-step-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
.btn-step:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}
/* Review Step Cards */
.review-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.review-section h6 {
    font-size: 13px;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.review-item {
    padding: 8px 0;
}
.review-item label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: block;
    margin-bottom: 2px;
}
.review-item span {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}
/* Responsive */
@media (max-width: 768px) {
    .sequence-map {
        padding: 20px 16px;
    }
    .step-label {
        font-size: 10px;
    }
    .step-sublabel {
        display: none;
    }
    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    .stepper-row::before {
        top: 18px;
        left: 24px;
        right: 24px;
    }
    .stepper-progress-line {
        top: 18px;
        left: 24px;
    }
    .review-grid {
        grid-template-columns: 1fr;
    }
    .btn-step {
        padding: 10px 18px;
        font-size: 13px;
    }
}
/* ===== Info Banner Styles ===== */
.info-banner {
    background: #f0f9ff;
    border: 1px solid #b6d4fe;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}
.info-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.info-icon {
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}
.info-text {
    font-size: 14px;
    color: #0c4a6e;
}
.info-text strong {
    color: #0369a1;
}
.info-banner-right {
    display: flex;
    align-items: center;
}
.upload-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.upload-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.upload-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.upload-btn:hover {
    background: #2563eb;
}
.file-name-display {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    background: #fff;
    min-width: 180px;
    color: #475569;
}
.file-format-note {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}
.header-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: flex-end;
}
.header-actions .btn {
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 8px;
}
.header-actions .btn a {
    color: inherit;
    text-decoration: none;
}
.header-actions .btn a:hover {
    text-decoration: none;
}
@media (max-width: 600px) {
    .info-banner {
        flex-direction: column;
        align-items: stretch;
    }
    .info-banner-right {
        justify-content: center;
    }
    .upload-row {
        flex-wrap: wrap;
        justify-content: center;
    }
    .file-name-display {
        min-width: 120px;
        width: 100%;
    }
    .header-actions {
        justify-content: center;
    }
}
/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .form-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 968px) {
    .signup-left { display: none !important; }
    .signup-right { padding: 1rem; }
    .form-container { padding: 1rem; }
}

@media (max-width: 768px) {
    .auth-topbar { padding: 0.75rem 1rem; }
    .page-container { padding: 1rem; }
    .form-grid { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; gap: 1rem; }

    .info-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .info-banner-right { width: 100%; }
    .info-banner-right .upload-section { align-items: stretch; }
    .info-banner-right .upload-row {
        flex-direction: column;
        align-items: stretch;
    }

    .file-name-display { width: 100%; min-width: auto; }
    .file-format-note { text-align: left; }

    .form-card { padding: 1.25rem; }
    .form-footer { flex-direction: column; align-items: stretch; }
    .footer-actions { flex-direction: column; }
    .btn-cancel, .btn-save { width: 100%; }

    /* Mobile user menu */
    .user-meta { display: none; }
    .user-trigger .chevron { margin-left: 0; }
    .user-dropdown { width: 280px; right: -8px; }
}



 /* Top Bar */

/* Hero Section */
.pricing-hero {
    text-align: center;
    padding: 4rem 1rem 2rem;
}
.pricing-hero h1 {
    font-size: 2.5rem;
    font-weight: var(--font-bold);
    color: var(--crm-text-primary);
    margin-bottom: 1rem;
}
.pricing-hero p {
    font-size: 1.125rem;
    color: var(--crm-text-secondary);
    max-width: 650px;
    margin: 0 auto;
}
/* Package Cards */
.package-card {
    background: var(--crm-bg-card);
    border: var(--border-width) solid var(--crm-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
}
.package-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--crm-primary-400);
}
/* Featured Card (Premium) */
.package-card.featured {
    border: 2px solid var(--crm-primary-500);
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}
.package-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}
.package-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--crm-primary-500), var(--crm-primary-600));
    color: #fff;
    padding: 0.35rem 1.25rem;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}
.package-title {
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    color: var(--crm-primary-700);
    margin-bottom: 1rem;
    text-align: center;
}
.package-features {
    flex: 1;
    font-size: var(--text-sm);
    color: var(--crm-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: 2rem;
}
.package-features p {
    margin-bottom: 1rem;
    text-align: center;
}
/* Automatically style the HTML lists coming from your database */
.package-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.package-features li {
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--crm-border);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}
.package-features li:last-child {
    border-bottom: none;
}
.package-features li::before {
    content: '\f00c';
    /* FontAwesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--crm-success);
    margin-right: 0.75rem;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.btn-choose {
    width: 100%;
    padding: 0.75rem;
    font-weight: var(--font-semibold);
    margin-top: auto;
}
@media (max-width: 992px) {
    .package-card.featured {
        transform: scale(1);
    }
    .package-card.featured:hover {
        transform: translateY(-8px);
    }
}
.step-indicator {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 1.5rem;
	gap: 0;
}
.step-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.step-circle {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #e2e8f0;
	color: #64748b;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 0.875rem;
}
.step-item.active .step-circle {
	background: #3b82f6;
	color: #fff;
}
.step-item.completed .step-circle {
	background: #10b981;
	color: #fff;
}
.step-label {
	font-size: 0.8125rem;
	font-weight: 500;
	color: #64748b;
}
.step-item.active .step-label {
	color: #1e293b;
	font-weight: 600;
}
.step-connector {
	width: 50px;
	height: 2px;
	background: #e2e8f0;
	margin: 0 0.5rem;
}
.step-connector.completed {
	background: #10b981;
}
.debit-order-notice {
	background: linear-gradient(135deg, var(--crm-primary-50), var(--crm-primary-100));
	border-left: 4px solid var(--crm-primary-600);
	border-radius: 0.5rem;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
}
.debit-order-notice h6 {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--crm-primary-800);
	margin-bottom: 0.25rem;
}
.debit-order-notice p {
	font-size: 0.8125rem;
	color: #475569;
	margin: 0;
}
.form-section-title {
	font-family: var(--font-serif);
	font-size: 1rem;
	font-weight: 600;
	color: var(--crm-primary-800);
	padding-bottom: 0.5rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--crm-border);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.form-section-title i {
	color: var(--crm-primary-600);
}
.step-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--crm-border);
}
.step-nav .btn {
	min-width: 140px;
	border-radius: 9999px;
	font-weight: 600;
}
.step-nav .btn-outline-secondary {
	color: var(--crm-primary-800);
	border-color: var(--crm-primary-800);
}
.step-nav .btn-outline-secondary:hover {
	background: var(--crm-primary-800);
	border-color: var(--crm-primary-800);
	color: #fff;
}
.terms-checkbox-wrapper {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.75rem;
	background: var(--crm-bg-body);
	border-radius: 0.5rem;
	border: 1px solid var(--crm-border);
}
.terms-checkbox-wrapper input[type="checkbox"] {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: var(--crm-primary-600);
}
.terms-checkbox-wrapper label {
	font-size: 0.8125rem;
	color: var(--crm-text-secondary);
	cursor: pointer;
	line-height: 1.5;
}
.terms-checkbox-wrapper a {
	color: var(--crm-primary-600);
	font-weight: 500;
}