
        /* Choices.js Overrides */
        .choices {
            margin-bottom: 0 !important;
            width: 100%;
        }
        /* Ensure underlying select is never visible when Choices is initialized */
        select.choices__input,
        select[data-choice="active"],
        .choices__input[hidden] {
            display: none !important;
            visibility: hidden !important;
            height: 0 !important;
            width: 0 !important;
            padding: 0 !important;
            margin: 0 !important;
            border: none !important;
        }
        /* Default Form Dropdown (Large) */
        .choices__inner {
            padding: 12.5px 16px !important;
            border: 1.5px solid #CBD5E1 !important;
            border-radius: 12px !important;
            background: #FFFFFF !important;
            min-height: auto !important;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
            font-size: 14.5px !important;
            color: #0F172A !important;
            display: flex;
            align-items: center;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
        }
        
        /* Compact Selectors (e.g. Dashboard headers, Filters) */
        .panel-header .choices,
        .filter-select-field + .choices,
        .choices-sm {
            width: max-content !important;
            min-width: 140px;
        }
        .panel-header .choices__inner,
        .filter-select-field + .choices .choices__inner,
        .choices-sm .choices__inner {
            padding: 6px 12px !important;
            border-radius: 8px !important;
            font-size: 13px !important;
        }

        .choices__list--single {
            padding: 0 !important;
            line-height: 1.2 !important;
        }
        .is-focused .choices__inner, .is-open .choices__inner {
            border-color: #10B981 !important;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18), 0 1px 2px rgba(0, 0, 0, 0.05) !important;
            background: #FFFFFF !important;
        }
        .choices__list--dropdown {
            border-radius: 12px !important;
            border: 1.5px solid #E2E8F0 !important;
            box-shadow: 0 14px 30px -4px rgba(15, 23, 42, 0.12) !important;
            margin-top: 6px !important;
            z-index: 1000 !important;
            width: max-content !important;
            min-width: 100% !important;
            background: #FFFFFF !important;
        }
        .choices__list--dropdown .choices__item {
            white-space: nowrap !important;
            font-size: 14px !important;
            padding: 10px 14px !important;
            color: #1E293B !important;
        }
        .choices__item--choice.is-highlighted {
            background-color: #ECFDF5 !important;
            color: #065F46 !important;
            font-weight: 600 !important;
        }
        .choices[data-type*="select-one"]:after {
            border-color: #64748B transparent transparent transparent !important;
            right: 14px !important;
            margin-top: -3px !important;
        }

        /* ============================================================
           SMART CUSTOM DROPDOWN SYSTEM (Premium SaaS Floating Dropdowns)
           ============================================================ */
        .smart-dropdown-hidden-source {
            position: absolute !important;
            opacity: 0 !important;
            pointer-events: none !important;
            width: 0 !important;
            height: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
            border: none !important;
            overflow: hidden !important;
        }

        .smart-dropdown-wrap {
            position: relative;
            display: inline-block;
            vertical-align: middle;
            font-family: inherit;
            box-sizing: border-box;
            flex-shrink: 0;
        }

        .smart-dropdown-trigger {
            display: inline-flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            width: 100%;
            min-width: 170px;
            padding: 9.5px 14px;
            font-family: inherit;
            font-size: 13.5px;
            font-weight: 600;
            line-height: 1.4;
            color: #1E293B;
            background: #FFFFFF;
            border: 1.5px solid #E2E8F0;
            border-radius: 10px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
            cursor: pointer;
            user-select: none;
            outline: none;
            box-sizing: border-box;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .smart-dropdown-trigger:hover {
            border-color: #CBD5E1;
            background: #F8FAFC;
        }

        .smart-dropdown-wrap.open .smart-dropdown-trigger,
        .smart-dropdown-trigger:focus-visible {
            border-color: #10B981;
            background: #FFFFFF;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
        }

        .smart-dropdown-label {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex: 1;
            text-align: left;
        }

        .smart-dropdown-arrow {
            font-size: 11px;
            color: #64748B;
            transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
            flex-shrink: 0;
        }

        .smart-dropdown-wrap.open .smart-dropdown-arrow {
            transform: rotate(180deg);
            color: #10B981;
        }

        .smart-dropdown-menu {
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            min-width: 100%;
            width: max-content;
            max-width: 320px;
            background: #FFFFFF;
            border: 1.5px solid #E2E8F0;
            border-radius: 12px;
            box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.06);
            padding: 6px;
            z-index: 99999;
            max-height: 280px;
            overflow-y: auto;
            display: none;
            box-sizing: border-box;
            animation: smartDropFade 0.16s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .smart-dropdown-wrap.dropup .smart-dropdown-menu {
            top: auto;
            bottom: calc(100% + 6px);
            animation: smartDropUpFade 0.16s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .smart-dropdown-wrap.align-right .smart-dropdown-menu {
            left: auto;
            right: 0;
        }

        .smart-dropdown-wrap.open .smart-dropdown-menu {
            display: block;
        }

        .smart-dropdown-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 9px 12px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
            color: #334155;
            cursor: pointer;
            user-select: none;
            transition: background 0.14s ease, color 0.14s ease;
            white-space: nowrap;
        }

        .smart-dropdown-item:hover {
            background: #F1F5F9;
            color: #0F172A;
            font-weight: 600;
        }

        .smart-dropdown-item.selected {
            background: #ECFDF5;
            color: #065F46;
            font-weight: 700;
        }

        .smart-dropdown-check {
            font-size: 11px;
            color: #10B981;
            opacity: 0;
            flex-shrink: 0;
            transition: opacity 0.15s ease;
        }

        .smart-dropdown-item.selected .smart-dropdown-check {
            opacity: 1;
        }

        .smart-dropdown-item.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
        }

        .smart-dropdown-wrap.disabled .smart-dropdown-trigger {
            background-color: #F1F5F9;
            border-color: #E2E8F0;
            color: #94A3B8;
            cursor: not-allowed;
            pointer-events: none;
        }

        /* ============================================================
           FULL-WIDTH FORM-MATCHING SMART DROPDOWNS
           Ensures dropdowns inside forms match form-input 100% perfectly
           ============================================================ */
        .smart-dropdown-wrap.smart-dropdown-full,
        .form-group .smart-dropdown-wrap,
        .form-grid .smart-dropdown-wrap,
        .form-card .smart-dropdown-wrap {
            width: 100% !important;
            display: block !important;
            box-sizing: border-box !important;
        }

        .smart-dropdown-wrap.smart-dropdown-full .smart-dropdown-trigger,
        .form-group .smart-dropdown-trigger,
        .form-grid .smart-dropdown-trigger,
        .form-card .smart-dropdown-trigger {
            width: 100% !important;
            min-width: 100% !important;
            padding: 12.5px 16px !important;
            border: 1.5px solid #CBD5E1 !important;
            border-radius: 12px !important;
            font-size: 14.5px !important;
            font-weight: 500 !important;
            color: #0F172A !important;
            background: #FFFFFF !important;
            min-height: 48px !important;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
            box-sizing: border-box !important;
            transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
        }

        .smart-dropdown-wrap.smart-dropdown-full .smart-dropdown-trigger:hover,
        .form-group .smart-dropdown-trigger:hover,
        .form-grid .smart-dropdown-trigger:hover,
        .form-card .smart-dropdown-trigger:hover {
            border-color: #94A3B8 !important;
            background: #FFFFFF !important;
        }

        .smart-dropdown-wrap.smart-dropdown-full.open .smart-dropdown-trigger,
        .form-group .smart-dropdown-wrap.open .smart-dropdown-trigger,
        .form-grid .smart-dropdown-wrap.open .smart-dropdown-trigger,
        .form-card .smart-dropdown-wrap.open .smart-dropdown-trigger,
        .form-group .smart-dropdown-trigger:focus-visible {
            border-color: #10B981 !important;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18), 0 1px 2px rgba(0, 0, 0, 0.05) !important;
            background: #FFFFFF !important;
        }

        .smart-dropdown-label.is-placeholder {
            color: #94A3B8 !important;
            font-weight: 400 !important;
        }

        .smart-dropdown-wrap.smart-dropdown-full .smart-dropdown-menu,
        .form-group .smart-dropdown-menu,
        .form-grid .smart-dropdown-menu,
        .form-card .smart-dropdown-menu {
            width: 100% !important;
            min-width: 100% !important;
            max-width: 100% !important;
            border: 1.5px solid #E2E8F0 !important;
            border-radius: 12px !important;
            box-shadow: 0 14px 30px -4px rgba(15, 23, 42, 0.12) !important;
            box-sizing: border-box !important;
            margin-top: 6px !important;
        }

        .smart-dropdown-wrap.smart-dropdown-full .smart-dropdown-item,
        .form-group .smart-dropdown-item {
            padding: 11px 16px !important;
            font-size: 14px !important;
            border-radius: 8px !important;
        }

        /* =============================================
           CUSTOM DATE & TIME PICKER (SaaS Style)
           ============================================= */
        :root {
            --dt-primary: #059669; /* Emerald 600 */
            --dt-primary-light: #ECFDF5; /* Emerald 50 */
            --dt-green: #10B981;
            --dt-text-main: #0F172A;
            --dt-text-sec: #64748B;
            --dt-border: #E2E8F0;
            --dt-hover: #F8FAFC;
        }

        .smart-datetime-modal {
            background: #F8FAFC;
            border: 1.5px solid #E2E8F0;
            border-radius: 16px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
            padding: 24px;
            margin-bottom: 24px;
            position: relative;
            z-index: 10;
            box-sizing: border-box;
        }
        
        .smart-datetime-header {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 20px;
        }
        .smart-datetime-icon {
            width: 44px;
            height: 44px;
            background: #ECFDF5;
            color: #10B981;
            border-radius: 12px;
            border: 1.5px solid rgba(16, 185, 129, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
            box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12);
        }
        .smart-datetime-title-wrapper h3 {
            font-size: 17px;
            font-weight: 700;
            color: #0F172A;
            margin: 0 0 2px 0;
            letter-spacing: -0.01em;
        }
        .smart-datetime-title-wrapper p {
            font-size: 13px;
            color: #64748B;
            margin: 0;
        }

        .smart-datetime-body {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        .smart-section > label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13.5px;
            font-weight: 600;
            color: #1E293B;
            margin-bottom: 8px;
        }
        .smart-section > label i {
            color: #10B981;
        }

        /* Input Fields common */
        .smart-date-field, .smart-time-field {
            position: relative;
            background: #FFFFFF;
            border: 1.5px solid #CBD5E1;
            border-radius: 12px;
            height: 64px;
            display: flex;
            align-items: center;
            padding: 0 16px;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            user-select: none;
            box-sizing: border-box;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
        }
        .smart-date-field:hover, .smart-time-field:hover {
            border-color: #94A3B8;
            background: #FFFFFF;
        }
        .smart-date-field.active, .smart-time-field.active {
            border-color: #10B981;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18), 0 1px 2px rgba(0, 0, 0, 0.05);
            background: #FFFFFF;
            z-index: 101;
        }
        
        .smart-field-icon {
            width: 38px;
            height: 38px;
            background: #ECFDF5;
            color: #10B981;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 17px;
            flex-shrink: 0;
            margin-right: 12px;
        }
        
        .smart-field-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-width: 0;
        }
        .smart-date-display {
            font-size: 15px;
            font-weight: 700;
            color: #0F172A;
            margin-bottom: 1px;
        }
        .smart-date-day {
            font-size: 12px;
            font-weight: 500;
            color: #64748B;
        }
        .smart-field-chevron {
            color: #94A3B8;
            font-size: 13px;
            transition: transform 0.2s;
        }
        .active .smart-field-chevron {
            transform: rotate(180deg);
            color: #10B981;
        }

        /* Time specific */
        .smart-time-field {
            height: 64px;
            width: 100%;
        }
        .time-content {
            flex-direction: row;
            align-items: center;
            justify-content: flex-start;
            gap: 8px;
            font-size: 18px;
            font-weight: 700;
            color: #0F172A;
        }
        .time-colon {
            color: #94A3B8;
            transform: translateY(-1px);
        }
        .smart-time-ampm-display {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
            font-weight: 700;
            color: #059669;
            padding-left: 14px;
            border-left: 1.5px solid #E2E8F0;
            margin-left: 10px;
        }
        
        /* Modals common */
        .smart-calendar-popup, .smart-time-popup {
            position: absolute;
            top: calc(100% + 12px);
            left: 0;
            background: #ffffff;
            border: 1px solid var(--dt-border);
            border-radius: 16px;
            box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
            z-index: 100;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px) scale(0.98);
            transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .active .smart-calendar-popup, .active .smart-time-popup {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        /* Calendar */
        .smart-calendar-popup {
            width: 340px;
            padding: 24px;
        }
        .smart-calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        .smart-calendar-header button {
            background: transparent;
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--dt-text-sec);
            transition: all 0.2s;
        }
        .smart-calendar-header button:hover {
            background: var(--dt-hover);
            color: var(--dt-primary);
        }
        .smart-calendar-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--dt-text-main);
        }
        .smart-calendar-weekdays {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            text-align: center;
            font-size: 11px;
            font-weight: 700;
            color: #94a3b8;
            margin-bottom: 12px;
        }
        .smart-calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 4px;
            text-align: center;
        }
        .smart-calendar-day {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            font-size: 14px;
            font-weight: 600;
            color: var(--dt-text-main);
            cursor: pointer;
            margin: auto;
            transition: all 0.15s;
        }
        .smart-calendar-day:not(.empty):not(.disabled):hover {
            background: var(--dt-primary-light);
            color: var(--dt-primary);
        }
        .smart-calendar-day.empty {
            cursor: default;
        }
        .smart-calendar-day.other-month {
            color: #cbd5e1;
            font-weight: 400;
        }
        .smart-calendar-day.selected {
            background: var(--dt-primary) !important;
            color: white !important;
            box-shadow: 0 4px 12px rgba(6, 76, 122, 0.3);
        }
        .smart-calendar-day.today {
            color: var(--dt-primary);
            position: relative;
        }
        .smart-calendar-day.today::after {
            content: '';
            position: absolute;
            bottom: 4px;
            left: 50%;
            transform: translateX(-50%);
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: var(--dt-green);
        }
        .smart-calendar-day.today.selected::after {
            background: white;
        }
        .smart-calendar-footer {
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid var(--dt-border);
            text-align: center;
        }
        .btn-today-indicator {
            background: none;
            border: none;
            font-size: 14px;
            font-weight: 600;
            color: var(--dt-primary);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .btn-today-indicator .dot {
            width: 6px;
            height: 6px;
            background: var(--dt-primary);
            border-radius: 50%;
        }

        /* Time Picker */
        .smart-time-popup {
            width: 320px;
            padding: 20px;
            display: flex;
            flex-direction: column;
        }
        .smart-time-columns {
            display: flex;
            gap: 12px;
            height: 200px;
        }
        .smart-time-column {
            flex: 1;
            display: flex;
            flex-direction: column;
            border: 1px solid var(--dt-border);
            border-radius: 12px;
            overflow: hidden;
        }
        .time-col-title {
            text-align: center;
            font-size: 12px;
            font-weight: 700;
            color: var(--dt-text-main);
            padding: 10px 0;
            border-bottom: 1px solid var(--dt-border);
            background: #f8fafc;
        }
        .time-scroll-area {
            flex: 1;
            overflow-y: auto;
            padding: 8px;
            display: flex;
            flex-direction: column;
            gap: 4px;
            scrollbar-width: none;
        }
        .time-scroll-area::-webkit-scrollbar { display: none; }
        
        .smart-time-option {
            padding: 10px 0;
            text-align: center;
            font-size: 15px;
            font-weight: 600;
            color: var(--dt-text-sec);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.15s;
        }
        .smart-time-option:hover {
            background: var(--dt-hover);
            color: var(--dt-text-main);
        }
        .smart-time-option.selected {
            background: var(--dt-primary);
            color: white;
            box-shadow: 0 4px 10px rgba(6, 76, 122, 0.2);
        }
        .ampm-option {
            margin: auto 0;
            padding: 12px 0;
        }
        
        .smart-time-footer {
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid var(--dt-border);
            text-align: center;
            font-size: 15px;
            font-weight: 700;
            color: var(--dt-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        /* Quick Select */
        .smart-quick-select {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }
        .smart-quick-btn {
            background: #ffffff;
            border: 1px solid var(--dt-border);
            border-radius: 100px;
            padding: 10px 20px;
            font-size: 14px;
            font-weight: 600;
            color: var(--dt-text-sec);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s;
        }
        .smart-quick-btn i {
            font-size: 15px;
        }
        .smart-quick-btn:hover {
            background: var(--dt-primary-light);
            border-color: var(--dt-primary-light);
            color: var(--dt-primary);
        }
        .smart-quick-btn.selected {
            background: var(--dt-primary);
            border-color: var(--dt-primary);
            color: white;
        }
        .smart-quick-btn.selected i {
            color: white !important;
        }

        @media (max-width: 600px) {
            .smart-datetime-modal {
                padding: 18px 14px;
                border: 1.5px solid #E2E8F0;
                border-radius: 14px;
                box-shadow: 0 1px 3px rgba(0,0,0,0.02);
                margin-bottom: 20px;
            }
            .smart-quick-select {
                grid-template-columns: 1fr 1fr;
                display: grid;
                gap: 8px;
            }
            .smart-quick-btn {
                justify-content: center;
                width: 100%;
                padding: 9px 10px;
                font-size: 12.5px;
            }
            .smart-time-field {
                width: 100%;
                min-width: unset;
            }
            .smart-calendar-popup {
                width: calc(100vw - 32px);
                max-width: 340px;
            }
            .smart-time-popup {
                width: calc(100vw - 32px);
                max-width: 320px;
            }
            /* Add overlay for mobile popups */
            .smart-popup-overlay {
                position: fixed;
                top: 0; left: 0; right: 0; bottom: 0;
                background: rgba(0,0,0,0.4);
                z-index: 90;
                opacity: 0;
                visibility: hidden;
                transition: all 0.2s;
            }
            .smart-popup-overlay.active {
                opacity: 1;
                visibility: visible;
            }
        }
        
        /* Premium Centered Form Redesign */
        .page-container {
            padding: 36px 20px 80px 20px;
            max-width: 820px;
            margin: 0 auto;
            width: 100%;
            box-sizing: border-box;
        }
        .form-card {
            background: #FFFFFF;
            border-radius: 20px;
            border: 1px solid #E2E8F0;
            box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
            overflow: hidden;
            position: relative;
            box-sizing: border-box;
            transition: box-shadow 0.25s ease;
        }
        .form-header-premium {
            padding: 36px 40px 28px 40px;
            border-bottom: 1px solid #EDF2F7;
            background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
            position: relative;
            box-sizing: border-box;
        }
        .form-header-premium .icon-badge {
            width: 52px;
            height: 52px;
            background: #ECFDF5;
            border-radius: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            color: #10B981;
            box-shadow: 0 4px 14px -2px rgba(16, 185, 129, 0.25);
            border: 1.5px solid rgba(16, 185, 129, 0.2);
            margin-bottom: 20px;
        }
        .form-header-premium h2 {
            font-size: 24px;
            font-weight: 800;
            color: #0F172A;
            letter-spacing: -0.025em;
            margin: 0 0 6px 0;
            line-height: 1.25;
        }
        .form-header-premium p {
            color: #64748B;
            font-size: 14.5px;
            margin: 0;
            max-width: 540px;
            line-height: 1.55;
        }
        .form-body {
            padding: 36px 40px 40px 40px;
            width: 100%;
            box-sizing: border-box;
        }
        .form-section-title {
            font-size: 12px;
            font-weight: 700;
            color: #059669;
            text-transform: uppercase;
            letter-spacing: 0.07em;
            margin-bottom: 22px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .form-section-title i {
            font-size: 14px;
            color: #10B981;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .form-section-title::after {
            content: '';
            flex: 1;
            height: 1.5px;
            background: #E2E8F0;
            margin-left: 6px;
        }
        
        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 20px;
            margin-bottom: 30px;
            width: 100%;
            box-sizing: border-box;
        }
        .form-group {
            margin-bottom: 0;
            min-width: 0;
            width: 100%;
            box-sizing: border-box;
        }
        .form-group.full-width {
            grid-column: span 2;
        }
        
        .form-label {
            display: block;
            font-size: 13.5px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #1E293B;
            letter-spacing: -0.1px;
        }
        .form-label .required {
            color: #EF4444;
            margin-left: 2px;
        }
        .form-input,
        .form-select,
        textarea.form-input {
            width: 100%;
            padding: 12.5px 16px;
            border: 1.5px solid #CBD5E1;
            border-radius: 12px;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            font-size: 14.5px;
            font-weight: 500;
            transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
            background: #FFFFFF;
            color: #0F172A;
            box-sizing: border-box;
            margin: 0;
            max-width: 100%;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
        }
        .form-input::placeholder,
        textarea.form-input::placeholder {
            color: #94A3B8;
            font-weight: 400;
        }
        .form-input:focus,
        .form-select:focus,
        textarea.form-input:focus {
            background: #FFFFFF;
            border-color: #10B981 !important;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18), 0 1px 2px rgba(0, 0, 0, 0.05) !important;
            outline: none;
        }
        .form-select {
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 14px center;
            background-size: 16px;
            padding-right: 42px;
            cursor: pointer;
        }
        
        .form-footer {
            padding: 22px 40px;
            background: #F8FAFC;
            border-top: 1px solid #EDF2F7;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-sizing: border-box;
            border-bottom-left-radius: 20px;
            border-bottom-right-radius: 20px;
        }
        .guideline-text {
            font-size: 13px;
            color: #64748B;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 500;
        }
        .guideline-text i {
            color: #10B981;
            font-size: 14px;
        }
        
        .btn-submit {
            background: linear-gradient(135deg, #10B981 0%, #059669 100%);
            color: #FFFFFF;
            padding: 13px 26px;
            border-radius: 12px;
            font-weight: 700;
            font-size: 14.5px;
            border: none;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 14px -1px rgba(16, 185, 129, 0.35);
        }
        .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px -2px rgba(16, 185, 129, 0.45);
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
        }
        .btn-submit:active {
            transform: translateY(0);
        }
        
        .alert {
            margin: 24px 40px 0 40px;
            padding: 14px 18px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 12px;
            box-sizing: border-box;
        }
        .alert-error {
            background: #FEF2F2;
            color: #DC2626;
            border: 1px solid #FECACA;
        }
        .alert-success {
            background: #F0FDF4;
            color: #059669;
            border: 1px solid #A7F3D0;
        }
        
        @media (max-width: 768px) {
            .page-container {
                padding: 16px 12px 100px 12px !important;
                width: 100% !important;
                max-width: 100vw !important;
                min-width: 0 !important;
                margin: 0 !important;
                box-sizing: border-box !important;
                overflow-x: hidden;
            }
            .form-header-premium {
                padding: 22px 18px 18px 18px !important;
                width: 100% !important;
                box-sizing: border-box !important;
            }
            .form-header-premium .icon-badge {
                width: 44px !important;
                height: 44px !important;
                font-size: 18px !important;
                border-radius: 12px !important;
                margin-bottom: 14px !important;
            }
            .form-header-premium h2 {
                font-size: 20px !important;
            }
            .form-header-premium p {
                font-size: 13.5px !important;
            }
            .form-body {
                padding: 22px 16px 28px 16px !important;
                width: 100% !important;
                box-sizing: border-box !important;
                overflow: hidden;
            }
            .form-card {
                border-radius: 16px !important;
                width: 100% !important;
                max-width: 100% !important;
                box-sizing: border-box !important;
                overflow: hidden;
                box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
            }
            .form-grid {
                grid-template-columns: 1fr !important;
                gap: 16px !important;
                margin-bottom: 22px !important;
                width: 100% !important;
                box-sizing: border-box !important;
            }
            .form-group.full-width {
                grid-column: span 1 !important;
            }
            .form-footer {
                flex-direction: column !important;
                gap: 14px !important;
                text-align: center;
                padding: 18px 16px !important;
                width: 100% !important;
                box-sizing: border-box !important;
                border-bottom-left-radius: 16px !important;
                border-bottom-right-radius: 16px !important;
            }
            .btn-submit,
            .form-actions .btn-submit,
            .form-actions .btn-gradient {
                width: 100% !important;
                min-width: 0 !important;
                justify-content: center !important;
                box-sizing: border-box !important;
            }
            .alert {
                margin: 16px 16px 0 16px !important;
                padding: 12px 14px !important;
                font-size: 13px !important;
            }
            .smart-datetime-modal {
                padding: 18px 14px !important;
                border-radius: 14px !important;
                border: 1.5px solid #E2E8F0 !important;
            }
        }

        @media (max-width: 480px) {
            .smart-phone-group {
                width: 100% !important;
                box-sizing: border-box !important;
            }
            .country-picker-trigger {
                padding: 11px 8px !important;
                gap: 4px !important;
            }
            .country-picker-trigger .country-flag {
                font-size: 18px !important;
            }
            .country-picker-trigger .country-dial-code {
                font-size: 13px !important;
            }
            .phone-input-field {
                padding: 11px 10px !important;
                font-size: 14px !important;
                min-width: 0 !important;
                width: 100% !important;
            }
            .country-dropdown-menu {
                width: calc(100vw - 28px) !important;
                max-width: 320px !important;
                left: 0 !important;
            }
            .form-section-title {
                font-size: 11.5px !important;
                margin-bottom: 16px !important;
            }
            .form-input,
            .form-select,
            textarea.form-input {
                padding: 11px 13px !important;
                font-size: 14px !important;
            }
        }

        /* =============================================
           CUSTOM FILE UPLOAD COMPONENT
           ============================================= */
        .smart-file-upload {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 32px 24px;
            border: 2px dashed #E2E8F0;
            border-radius: 16px;
            background-color: #F8FAFC;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
            text-align: center;
        }
        .smart-file-upload:hover {
            border-color: var(--accent-1);
            background-color: rgba(79, 70, 229, 0.02);
        }
        .smart-file-upload input[type="file"] {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            opacity: 0;
            cursor: pointer;
            z-index: 2;
        }
        .smart-file-icon {
            font-size: 32px;
            color: var(--accent-1);
            margin-bottom: 12px;
            opacity: 0.8;
            transition: transform 0.2s ease;
        }
        .smart-file-upload:hover .smart-file-icon {
            transform: translateY(-4px);
        }
        .smart-file-text {
            font-size: 15px;
            font-weight: 600;
            color: var(--text-main);
            margin-bottom: 4px;
        }
        .smart-file-text span {
            color: var(--accent-1);
        }
        .smart-file-info {
            font-size: 13px;
            color: var(--text-muted);
        }

        /* =============================================
           SMART PHONE INPUT & COUNTRY CODE PICKER
           ============================================= */
        .smart-phone-group {
            display: flex;
            align-items: center;
            width: 100%;
            border: 2px solid #E5E7EB;
            border-radius: 12px;
            background: #F9FAFB;
            transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
            position: relative;
            box-sizing: border-box;
        }

        .smart-phone-group:focus-within,
        .smart-phone-group.is-focused {
            border-color: var(--accent-1);
            box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
            background: #FFFFFF;
        }

        .country-code-picker {
            position: relative;
            flex-shrink: 0;
        }

        .country-picker-trigger {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 13px 14px 13px 16px;
            background: transparent;
            border: none;
            border-right: 1.5px solid #E5E7EB;
            cursor: pointer;
            font-family: 'Inter', sans-serif;
            color: var(--text-main);
            transition: background-color 0.2s;
            user-select: none;
            border-top-left-radius: 10px;
            border-bottom-left-radius: 10px;
            outline: none;
        }

        .country-picker-trigger:hover {
            background: rgba(0, 0, 0, 0.04);
        }

        .country-picker-trigger .country-flag {
            font-size: 20px;
            line-height: 1;
            display: inline-flex;
        }

        .country-picker-trigger .country-dial-code {
            font-weight: 600;
            font-size: 14.5px;
            color: var(--text-main);
            letter-spacing: -0.2px;
        }

        .country-picker-trigger .country-arrow {
            font-size: 10px;
            color: #94A3B8;
            transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            margin-left: 2px;
        }

        .country-code-picker.open .country-arrow {
            transform: rotate(180deg);
            color: var(--accent-1);
        }

        .phone-input-field {
            flex: 1;
            min-width: 0;
            padding: 14px 16px;
            background: transparent;
            border: none;
            outline: none;
            font-family: 'Inter', sans-serif;
            font-size: 15px;
            font-weight: 500;
            color: var(--text-main);
            box-sizing: border-box;
        }

        .phone-input-field::placeholder {
            color: #9CA3AF;
            font-weight: 400;
        }

        /* Dropdown Panel */
        .country-dropdown-menu {
            display: none;
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            width: 340px;
            max-width: calc(100vw - 32px);
            background: #FFFFFF;
            border: 1px solid #E2E8F0;
            border-radius: 16px;
            box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.14), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
            z-index: 1050;
            overflow: hidden;
            animation: countryDropAnim 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes countryDropAnim {
            from {
                opacity: 0;
                transform: translateY(-8px) scale(0.97);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .country-dropdown-menu.show {
            display: block;
        }

        .country-search-box {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            border-bottom: 1px solid #F1F5F9;
            background: #F8FAFC;
        }

        .country-search-box i {
            color: #94A3B8;
            font-size: 13px;
        }

        .country-search-box input {
            width: 100%;
            border: none;
            background: transparent;
            outline: none;
            font-family: 'Inter', sans-serif;
            font-size: 13.5px;
            color: var(--text-main);
        }

        .country-list-scroll {
            max-height: 260px;
            overflow-y: auto;
            padding: 6px 0;
            scrollbar-width: thin;
            scrollbar-color: #CBD5E1 transparent;
        }

        .country-list-scroll::-webkit-scrollbar {
            width: 5px;
        }

        .country-list-scroll::-webkit-scrollbar-thumb {
            background: #CBD5E1;
            border-radius: 10px;
        }

        .country-group-label {
            padding: 8px 16px 4px 16px;
            font-size: 11px;
            font-weight: 700;
            color: #64748B;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .country-option {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 16px;
            cursor: pointer;
            transition: background-color 0.15s ease;
            font-size: 14px;
            user-select: none;
        }

        .country-option:hover,
        .country-option.keyboard-highlight {
            background-color: #F8FAFC;
        }

        .country-option.selected {
            background-color: rgba(79, 70, 229, 0.08);
        }

        .country-option.selected .country-option-left .name {
            font-weight: 600;
            color: var(--accent-1);
        }

        .country-option-left {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .country-option .flag {
            font-size: 20px;
            line-height: 1;
            display: inline-flex;
        }

        .country-option .name {
            color: var(--text-main);
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .country-option .dial-code {
            color: #64748B;
            font-size: 13.5px;
            font-weight: 600;
            margin-left: 8px;
            flex-shrink: 0;
        }

        .country-option.selected .dial-code {
            color: var(--accent-1);
        }

        .country-badge {
            font-size: 10px;
            font-weight: 600;
            padding: 2px 7px;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            gap: 3px;
            line-height: 1.2;
        }

        .badge-default {
            background: #EEF2FF;
            color: #4F46E5;
            border: 1px solid rgba(79, 70, 229, 0.2);
        }

        .badge-pinned {
            background: #ECFDF5;
            color: #059669;
            border: 1px solid rgba(5, 150, 105, 0.2);
        }

        .country-no-results {
            padding: 20px;
            text-align: center;
            color: #94A3B8;
            font-size: 13px;
            display: none;
        }

        /* =============================================
           FLATPICKR OVERRIDES (Calendar fixes & styling)
           ============================================= */
        .flatpickr-calendar {
            width: 325px !important;
            padding-bottom: 10px;
        }
        .flatpickr-days, .dayContainer {
            width: 100% !important;
            min-width: 100% !important;
            max-width: 100% !important;
        }

        .flatpickr-current-month .flatpickr-monthDropdown-months {
            appearance: none !important;
            -webkit-appearance: none !important;
            background: #F1F5F9 !important;
            border: 1px solid #E2E8F0 !important;
            border-radius: 6px !important;
            padding: 4px 24px 4px 8px !important;
            font-size: 14px !important;
            font-weight: 600 !important;
            color: #0F172A !important;
            margin: 0 4px !important;
            cursor: pointer !important;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
            background-repeat: no-repeat !important;
            background-position: right 6px center !important;
            background-size: 14px !important;
            height: 32px !important;
        }
        .flatpickr-current-month .flatpickr-monthDropdown-months:hover {
            background-color: #E2E8F0 !important;
        }

        .flatpickr-current-month .numInputWrapper {
            width: 65px;
        }
        .flatpickr-current-month .numInputWrapper span.arrowUp,
        .flatpickr-current-month .numInputWrapper span.arrowDown {
            display: none !important;
        }
        .flatpickr-current-month input.cur-year {
            appearance: none !important;
            -webkit-appearance: none !important;
            background: #F1F5F9 !important;
            border: 1px solid #E2E8F0 !important;
            border-radius: 6px !important;
            padding: 4px 8px !important;
            font-size: 14px !important;
            font-weight: 600 !important;
            color: #0F172A !important;
            height: 32px !important;
            box-sizing: border-box !important;
            cursor: text !important;
            text-align: center !important;
            margin-left: 4px !important;
        }
        .flatpickr-current-month input.cur-year:hover {
            background-color: #E2E8F0 !important;
        }
        .flatpickr-current-month {
            display: flex !important;
            align-items: center;
            justify-content: center;
            padding-top: 4px;
        }

        /* SweetAlert2 z-index priority over all modals and backdrops */
        .swal2-container {
            z-index: 200000 !important;
        }