.employee-enrollment-form .fi-section {
    background: var(--z-surface, #ffffff) !important;
    border: 1px solid var(--z-border, #e2e8f0) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.03) !important;
    overflow: visible !important;
    margin-bottom: 0 !important;
}

.employee-enrollment-form .fi-section-header {
    background-color: var(--z-secondary-soft, #f8fafc) !important;
    border-bottom: 1px solid var(--z-border, #e2e8f0) !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 11px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.employee-enrollment-form .fi-section-header-heading {
    font-size: 14.5px !important;
    color: var(--z-text-strong, #0f172a) !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    margin: 0 !important;
}

.employee-enrollment-form .fi-section-header-heading>svg,
.employee-enrollment-form .fi-section-header-heading .fi-icon,
.employee-enrollment-form .fi-section-header-icon {
    background: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #dbeafe !important;
    width: 28px !important;
    height: 28px !important;
    padding: 5px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}
html.dark .employee-enrollment-form .fi-section-header-heading > svg,
html.dark .employee-enrollment-form .fi-section-header-heading .fi-icon,
html.dark .employee-enrollment-form .fi-section-header-icon {
    background: #1e293b !important;
    color: #60a5fa !important;
    border-color: #334155 !important;
}

.employee-enrollment-form .fi-section-header-description {
    font-size: 11.5px !important;
    color: var(--z-text-muted, #64748b) !important;
    font-weight: 500 !important;
    margin: 0 !important;
    float: none !important;
}
.employee-enrollment-form .fi-section-content { padding: 15px 16px !important; overflow: visible !important; }
.employee-enrollment-form .fi-section-content-ctn { overflow: visible !important; }
.employee-enrollment-form .fi-input-wrp {
    background: var(--z-surface, #ffffff) !important;
    border: 1px solid var(--z-border-strong, #cbd5e1) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    min-height: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
    overflow: hidden !important;
}

.employee-enrollment-form .fi-input-wrp:focus-within {
    border-color: #2563EB !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.employee-enrollment-form .fi-input-wrp:has(.choices) {
    overflow: visible !important;
    height: auto !important;
    min-height: 32px !important;
}

.employee-enrollment-form .fi-fo-field-wrp>.grid,
.employee-enrollment-form .fi-input-wrp:has(.choices) .fi-input-wrp-input,
.employee-enrollment-form .fi-input-wrp:has(.choices) .fi-select-input,
.employee-enrollment-form .fi-input-wrp:has(.choices) .choices {
    width: 100% !important;
}

.employee-enrollment-form .choices__inner {
    min-height: 30px !important;
    padding: 2px 8px !important;
    font-size: 12px !important;
}

.employee-enrollment-form .choices__list--single,
.employee-enrollment-form .choices__list--single .choices__item {
    width: 100% !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 12px !important;
    color: var(--z-text-strong) !important;
}

.employee-enrollment-form .choices__list--dropdown,
.employee-enrollment-form .choices__list[aria-expanded] {
    z-index: 9999 !important;
    width: 100% !important;
    min-width: 240px !important;
    max-width: 360px !important;
}

.employee-enrollment-form .choices__list--dropdown .choices__item {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.employee-enrollment-form .fi-input-wrp input,
.employee-enrollment-form .fi-input-wrp select,
.employee-enrollment-form input.fi-input,
.employee-enrollment-form select.fi-select-input,
.employee-enrollment-form .fi-input,
.employee-enrollment-form .fi-select-input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
    min-height: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
    color: var(--z-text-strong) !important;
    padding: 2px 8px !important;
    width: 100% !important;
}

.employee-enrollment-form .fi-input-wrp input:focus,
.employee-enrollment-form .fi-input-wrp select:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.employee-enrollment-form textarea,
.employee-enrollment-form .fi-fo-textarea {
    background: var(--z-surface) !important;
    border: 1px solid var(--z-border-strong) !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    font-size: 12px !important;
    color: var(--z-text-strong) !important;
    padding: 6px 8px !important;
    width: 100% !important;
    line-height: 1.4 !important;
    resize: vertical !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.employee-enrollment-form textarea:focus,
.employee-enrollment-form .fi-fo-textarea:focus {
    border-color: #2563EB !important;
    box-shadow: 0 0 0 1.5px rgba(37, 99, 235, 0.2) !important;
    outline: none !important;
}

.employee-enrollment-form .fi-fo-field-wrp {
    margin-bottom: 5px !important;
}

.employee-enrollment-form .fi-fo-field-wrp>div {
    display: grid !important;
    grid-template-columns: 150px minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 8px !important;
    row-gap: 2px !important;
}

.employee-enrollment-form .fi-fo-field-wrp>div>div:first-child {
    grid-column: 1 / 2 !important;
    margin-bottom: 0 !important;
    text-align: left !important;
}

.employee-enrollment-form .fi-fo-field-wrp>div>div:nth-child(2) {
    grid-column: 2 / 3 !important;
    width: 100% !important;
    min-width: 0 !important;
}

.employee-enrollment-form .fi-fo-field-wrp>div>div:nth-child(n+3) {
    grid-column: 2 / 3 !important;
}

.employee-enrollment-form .fi-fo-field-wrp-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--z-text) !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: break-word !important;
}

.employee-enrollment-form .fi-fo-field-wrp-label sup {
    color: #EF4444 !important;
    font-weight: 700 !important;
    margin-left: 2px !important;
}

.employee-enrollment-form .fi-fo-field-wrp:has(textarea)>div {
    align-items: start !important;
    padding-top: 2px !important;
}

.employee-enrollment-form .fi-fo-field-wrp:has(textarea) .fi-fo-field-wrp-label {
    margin-top: 5px !important;
}

.employee-enrollment-form .fi-fo-toggle button[aria-checked="true"] {
    background-color: #10B981 !important;
}

.employee-enrollment-form .fi-fo-toggle>div {
    display: grid !important;
    grid-template-columns: 150px minmax(0, 1fr) !important;
    align-items: center !important;
}

.employee-enrollment-form .emp-checkbox-field>div {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 4px !important;
    margin-left: 150px !important;
}

.employee-enrollment-form .emp-checkbox-field input[type="checkbox"] {
    width: 15px !important;
    height: 15px !important;
    border: 1px solid #0A192F !important;
    border-radius: 3px !important;
    accent-color: #0A192F !important;
    margin: 0 !important;
}

.employee-enrollment-form .emp-checkbox-field label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--z-t-0a192f) !important;
    margin: 0 !important;
}

/* Employee Document Upload — Clean Full-Width Cards with Readable Previews & Actions */
.employee-enrollment-form .emp-document-upload .grid {
    row-gap: 10px !important;
}

.employee-enrollment-form .emp-document-upload .fi-fo-field-wrp {
    margin-bottom: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid var(--z-border) !important;
    border-radius: 8px !important;
    background: var(--z-secondary-soft) !important;
}

.employee-enrollment-form .emp-document-upload .fi-fo-field-wrp>div {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
}

.employee-enrollment-form .emp-document-upload .fi-fo-field-wrp>div>div:first-child {
    width: 100% !important;
    max-width: none !important;
    margin-bottom: 0 !important;
    text-align: left !important;
}

.employee-enrollment-form .emp-document-upload .fi-fo-field-wrp>div>div:nth-child(2) {
    width: 100% !important;
    min-width: 0 !important;
}

.employee-enrollment-form .emp-document-upload .fi-fo-field-wrp-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--z-text-strong) !important;
}

.employee-enrollment-form .emp-document-upload .fi-fo-file-upload {
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.employee-enrollment-form .emp-document-upload .filepond--root {
    min-height: 46px !important;
    height: auto !important;
    margin-bottom: 0 !important;
}

.employee-enrollment-form .emp-document-upload .filepond--panel-root {
    background: transparent !important;
    border: none !important;
}

.employee-enrollment-form .emp-document-upload .filepond--drop-label {
    min-height: 46px !important;
    height: auto !important;
    padding: 8px 12px !important;
    background: var(--z-surface) !important;
    border: 1.5px dashed #CBD5E1 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: border-color 0.15s ease, background-color 0.15s ease !important;
}

.employee-enrollment-form .emp-document-upload .filepond--drop-label:hover {
    border-color: #2563EB !important;
    background: var(--z-accent-soft) !important;
}

.employee-enrollment-form .emp-document-upload .filepond--drop-label label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--z-text) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.employee-enrollment-form .emp-document-upload .filepond--drop-label label::before {
    content: '' !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563EB' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

.employee-enrollment-form .emp-document-upload .filepond--list-scroller {
    margin-top: 6px !important;
}

.employee-enrollment-form .emp-document-upload .fi-fo-field-wrp-helper-text {
    font-size: 11px !important;
    color: var(--z-text-muted) !important;
    margin-top: 2px !important;
}