/**
 * VA Forms Modern UI Styles
 * Compiled CSS for modern, visually appealing form styling
 */

/* CSS Custom Properties */
:root {
    /* Primary colors */
    --va-form-primary: #6690F4;
    --va-form-primary-light: #99b5f8;
    --va-form-primary-dark: #3366d1;

    /* Status colors */
    --va-form-success: #22b783;
    --va-form-danger: #f5325c;
    --va-form-warning: #ffb822;

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

    /* Shadows */
    --va-form-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --va-form-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --va-form-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --va-form-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --va-form-shadow-focus: 0 0 0 3px rgba(102, 144, 244, 0.2);

    /* Border radius */
    --va-form-radius-sm: 6px;
    --va-form-radius: 8px;
    --va-form-radius-lg: 12px;
    --va-form-radius-xl: 16px;

    /* Transitions */
    --va-form-transition: all 0.2s ease;
}

/* VA Form Container */
.va-form-modern {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Form Card Container */
.va-form-modern.va-form-card,
.va-form-card {
    background: #fff;
    border-radius: var(--va-form-radius-xl);
    box-shadow: var(--va-form-shadow-lg);
    padding: 32px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .va-form-modern.va-form-card,
    .va-form-card {
        padding: 20px;
        border-radius: var(--va-form-radius-lg);
    }
}

/* Form Header */
.va-form-modern .va-form-header,
.va-form-header {
    margin-bottom: 32px;
    text-align: center;
}

@media (max-width: 768px) {
    .va-form-modern .va-form-header,
    .va-form-header {
        margin-bottom: 24px;
    }
}

/* Form Logo */
.va-form-logo {
    margin-bottom: 24px;
}

.va-form-logo img {
    max-width: 200px;
    max-height: 60px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .va-form-logo {
        margin-bottom: 20px;
    }

    .va-form-logo img {
        max-width: 160px;
        max-height: 50px;
    }
}

.va-form-modern .va-form-title,
.va-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--va-form-gray-900);
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .va-form-modern .va-form-title,
    .va-form-title {
        font-size: 1.5rem;
    }
}

.va-form-modern .va-form-description,
.va-form-description {
    color: var(--va-form-gray-500);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .va-form-modern .va-form-description,
    .va-form-description {
        font-size: 0.9375rem;
    }
}

/* Section Styling */
.va-form-modern .va-form-section,
.va-form-section {
    margin-bottom: 32px;
}

/* Fix Bootstrap row negative margins inside form card and sections */
.va-form-card .row,
.va-form-section .row {
    margin-left: -8px !important;
    margin-right: -8px !important;
}

.va-form-card .row > [class*="col-"],
.va-form-section .row > [class*="col-"] {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

/* For single column rows */
.va-form-card .row > .col-md-12,
.va-form-section .row > .col-md-12 {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

/* Ensure form group elements don't overflow their column */
.va-form-card .va-form-group,
.va-form-section .va-form-group {
    max-width: 100% !important;
    overflow: visible !important;
}

/* Ensure select wrapper respects column bounds */
.va-form-card .va-select-wrapper,
.va-form-section .va-select-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

@media (max-width: 768px) {
    .va-form-modern .va-form-section,
    .va-form-section {
        margin-bottom: 24px;
    }
}

.va-form-modern .va-section-header,
.va-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--va-form-gray-100);
}

.va-form-modern .va-section-icon,
.va-section-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, var(--va-form-primary-light) 0%, var(--va-form-primary) 100%);
    border-radius: var(--va-form-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.va-form-modern .va-section-icon svg,
.va-form-modern .va-section-icon i,
.va-section-icon svg,
.va-section-icon i {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.va-form-modern .va-section-title,
.va-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--va-form-gray-800);
    margin: 0;
}

/* Section divider */
.va-form-modern .va-form-divider,
.va-form-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--va-form-gray-200), transparent);
    margin: 28px 0;
    border: none;
}

/* Form Group */
.va-form-modern .va-form-group,
.va-form-group {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .va-form-modern .va-form-group,
    .va-form-group {
        margin-bottom: 16px;
    }
}

/* Labels */
.va-form-modern .va-label,
.va-label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--va-form-gray-700);
    font-size: 0.875rem;
    transition: var(--va-form-transition);
}

.va-form-modern .va-required,
.va-required {
    color: var(--va-form-danger);
    margin-left: 2px;
}

/* Help Text - displayed after form fields */
.va-form-modern .va-help-text,
.va-help-text {
    display: block;
    font-size: 0.8rem;
    color: var(--va-form-gray-500);
    margin-top: 6px;
    line-height: 1.4;
}

.va-form-modern .va-help-text:empty,
.va-help-text:empty {
    display: none;
}

/* Phone Input with intl-tel-input */
.va-phone-input-wrapper {
    width: 100%;
}

.va-phone-input-wrapper .iti {
    width: 100%;
}

.va-phone-input-wrapper .iti__flag-container {
    z-index: 10;
}

.va-phone-input-wrapper .iti--separate-dial-code .iti__selected-flag {
    background-color: var(--va-form-gray-50);
    border-radius: var(--va-form-radius) 0 0 var(--va-form-radius);
    border-right: 1px solid var(--va-form-gray-200);
}

.va-phone-input-wrapper .iti--separate-dial-code input {
    padding-left: 100px !important;
}

.va-phone-input-wrapper .va-phone-input {
    width: 100% !important;
}

/* Country Select styling */
.va-form-group .va-country-select + .select2-container {
    width: 100% !important;
}

.va-form-group .va-country-select + .select2-container .select2-selection--single {
    height: 48px !important;
    border: 1.5px solid var(--va-form-gray-200) !important;
    border-radius: var(--va-form-radius) !important;
    background-color: #fff !important;
    padding: 0 12px !important;
}

.va-form-group .va-country-select + .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 46px !important;
    padding-left: 0 !important;
    color: var(--va-form-gray-600) !important;
}

.va-form-group .va-country-select + .select2-container .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 8px !important;
}

.va-form-group .va-country-select + .select2-container--focus .select2-selection--single {
    border-color: var(--va-form-primary) !important;
    box-shadow: var(--va-form-shadow-focus) !important;
}

/* Form Controls */
.va-form-modern .va-form-control,
.va-form-control {
    display: block;
    width: 100%;
    height: 48px;
    padding: 6px 8px;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--va-form-gray-600);
    background-color: #fff;
    background-clip: padding-box;
    border: 1.5px solid var(--va-form-gray-200);
    border-radius: var(--va-form-radius);
    box-shadow: var(--va-form-shadow-sm);
    transition: var(--va-form-transition);
    box-sizing: border-box;
}

.va-form-modern .va-form-control::placeholder,
.va-form-control::placeholder {
    color: var(--va-form-gray-400);
}

.va-form-modern .va-form-control:hover,
.va-form-control:hover {
    border-color: var(--va-form-gray-300);
}

.va-form-modern .va-form-control:focus,
.va-form-control:focus {
    border-color: var(--va-form-primary);
    background-color: #fff;
    box-shadow: var(--va-form-shadow-focus);
    outline: none;
}

.va-form-modern .va-form-control:disabled,
.va-form-modern .va-form-control[readonly],
.va-form-control:disabled,
.va-form-control[readonly] {
    background-color: var(--va-form-gray-100);
    opacity: 0.7;
    cursor: not-allowed;
}

/* Textarea */
.va-form-modern textarea.va-form-control,
textarea.va-form-control {
    height: auto;
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* Select */
.va-form-modern select.va-form-control,
select.va-form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' 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");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
    cursor: pointer;
}

/* Input with Icon */
.va-form-modern .va-input-icon-wrapper,
.va-input-icon-wrapper {
    position: relative;
}

.va-form-modern .va-input-icon,
.va-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--va-form-gray-400);
    pointer-events: none;
    transition: var(--va-form-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.va-form-modern .va-input-icon svg,
.va-form-modern .va-input-icon i,
.va-input-icon svg,
.va-input-icon i {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.va-form-modern .va-input-icon-wrapper .va-form-control,
.va-input-icon-wrapper .va-form-control {
    padding-left: 48px;
}

.va-form-modern .va-input-icon-wrapper:focus-within .va-input-icon,
.va-input-icon-wrapper:focus-within .va-input-icon {
    color: var(--va-form-primary);
}

/* Select Wrapper - Select2 inside icon wrapper */
.va-form-modern .va-select-wrapper,
.va-select-wrapper {
    position: relative;
}

.va-form-modern .va-select-wrapper > .va-input-icon,
.va-select-wrapper > .va-input-icon {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    right: 14px !important;
    left: auto !important;
    pointer-events: none !important;
    color: var(--va-form-gray-400) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.va-form-modern .va-select-wrapper > .va-input-icon svg,
.va-select-wrapper > .va-input-icon svg {
    width: 18px !important;
    height: 18px !important;
}

.va-form-modern .va-select-wrapper .select2-container,
.va-select-wrapper .select2-container {
    width: 100% !important;
}

.va-form-modern .va-select-wrapper .select2-container--default .select2-selection--single,
.va-select-wrapper .select2-container--default .select2-selection--single {
    height: 48px !important;
    border: 1.5px solid var(--va-form-gray-200) !important;
    border-radius: var(--va-form-radius) !important;
    background-color: #fff !important;
    box-shadow: var(--va-form-shadow-sm);
    padding-right: 40px !important;
}

.va-form-modern .va-select-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered,
.va-select-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px !important;
    padding-left: 16px !important;
    padding-right: 8px !important;
    color: var(--va-form-gray-800) !important;
    font-size: 0.9375rem !important;
}

.va-form-modern .va-select-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow,
.va-select-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none !important;
}

.va-form-modern .va-select-wrapper.va-select--focus .va-input-icon,
.va-select-wrapper.va-select--focus .va-input-icon,
.va-form-modern .va-select-wrapper .select2-container--open + .va-input-icon,
.va-select-wrapper .select2-container--open + .va-input-icon {
    color: var(--va-form-primary);
}

.va-form-modern .va-select-wrapper .select2-container--default.select2-container--focus .select2-selection--single,
.va-form-modern .va-select-wrapper .select2-container--default.select2-container--open .select2-selection--single,
.va-select-wrapper .select2-container--default.select2-container--focus .select2-selection--single,
.va-select-wrapper .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--va-form-primary) !important;
    box-shadow: var(--va-form-shadow-focus) !important;
}

/* Hide native select when Select2 is active */
.va-form-modern .va-select-wrapper select.va-select2,
.va-select-wrapper select.va-select2 {
    display: none;
}

/* Select2 Dropdown Styling */
.va-form-modern .select2-dropdown,
.select2-dropdown {
    border: 1.5px solid var(--va-form-gray-200, #E5E7EB) !important;
    border-radius: var(--va-form-radius, 8px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    background-color: #fff !important;
    margin-top: 4px !important;
    border-top: 1.5px solid var(--va-form-gray-200, #E5E7EB) !important;
}

.va-form-modern .select2-results__option,
.select2-container--default .select2-results__option,
.select2-results__option {
    padding: 10px 16px !important;
    font-size: 0.9375rem !important;
    color: var(--va-form-gray-700, #374151) !important;
    background-color: #fff !important;
    transition: background-color 0.15s ease !important;
}

.va-form-modern .select2-container--default .select2-results__option--highlighted,
.va-form-modern .select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option[aria-selected=true]:hover {
    background-color: #6690F4 !important;
    color: #fff !important;
}

.va-form-modern .select2-container--default .select2-results__option[aria-selected=true],
.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #EEF2FF !important;
    color: #6690F4 !important;
}

.select2-container--default .select2-results__option--selectable:hover {
    background-color: #6690F4 !important;
    color: #fff !important;
}

/* Validation States */
.va-form-modern .va-form-group.has-error .va-form-control,
.va-form-group.has-error .va-form-control {
    border-color: var(--va-form-danger);
    background-color: #FEF2F2;
}

.va-form-modern .va-form-group.has-error .va-form-control:focus,
.va-form-group.has-error .va-form-control:focus {
    box-shadow: 0 0 0 3px rgba(245, 50, 92, 0.15);
}

.va-form-modern .va-form-group.has-error .va-input-icon,
.va-form-group.has-error .va-input-icon {
    color: var(--va-form-danger);
}

.va-form-modern .va-form-group.has-success .va-form-control,
.va-form-group.has-success .va-form-control {
    border-color: var(--va-form-success);
}

.va-form-modern .va-form-group.has-success .va-input-icon,
.va-form-group.has-success .va-input-icon {
    color: var(--va-form-success);
}

/* Error message */
.va-form-modern .va-error-message,
.va-error-message {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--va-form-danger);
}

.va-form-modern .va-error-message svg,
.va-form-modern .va-error-message i,
.va-error-message svg,
.va-error-message i {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

/* jQuery Validation Error - Style only the first error message (red) */
.va-form-card label.error:first-of-type,
.va-form-card span.help-block:first-of-type,
.va-form-section label.error:first-of-type,
.va-form-section span.help-block:first-of-type,
.va-form-modern label.error:first-of-type,
.va-form-modern span.help-block:first-of-type,
.va-form-group label.error:first-of-type,
.va-form-group span.help-block:first-of-type {
    display: block !important;
    color: var(--va-form-danger, #f5325c) !important;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    margin-top: 6px !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

/* Hide ALL duplicate/subsequent validation messages */
.va-form-card .va-form-group label.error ~ label.error,
.va-form-card .va-form-group span.help-block ~ span.help-block,
.va-form-card .va-form-group label.error ~ span.help-block,
.va-form-card .va-form-group span.help-block ~ label.error,
.va-form-section .va-form-group label.error ~ label.error,
.va-form-section .va-form-group span.help-block ~ span.help-block,
.va-form-modern .va-form-group label.error ~ label.error,
.va-form-modern .va-form-group span.help-block ~ span.help-block {
    display: none !important;
}

/* Ensure all error messages in VA forms are red */
.va-form-card .va-form-group label.error,
.va-form-card .va-form-group span.help-block,
.va-form-card .va-input-icon-wrapper + label.error,
.va-form-card .va-input-icon-wrapper + span.help-block,
.va-form-card .va-select-wrapper + label.error,
.va-form-card .va-select-wrapper + span.help-block,
.va-form-section .va-form-group label.error,
.va-form-section .va-form-group span.help-block {
    color: var(--va-form-danger, #f5325c) !important;
}

/* Style for input with error */
.va-form-card input.error,
.va-form-card select.error,
.va-form-card textarea.error,
.va-form-section input.error,
.va-form-section select.error,
.va-form-section textarea.error,
.va-form-modern input.error,
.va-form-modern select.error,
.va-form-modern textarea.error {
    border-color: var(--va-form-danger, #f5325c) !important;
}

/* Select2 error state */
.va-form-card .va-select-wrapper .select2-container .select2-selection.error,
.va-form-card .error + .select2-container .select2-selection,
.va-form-section .error + .select2-container .select2-selection {
    border-color: var(--va-form-danger, #f5325c) !important;
}

/* Helper text */
.va-form-modern .va-helper-text,
.va-helper-text {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--va-form-gray-500);
}

.va-form-modern .va-helper-text.success,
.va-helper-text.success {
    color: var(--va-form-success);
}

/* Input Card */
.va-form-modern .va-input-card,
.va-input-card {
    background: var(--va-form-gray-50);
    border-radius: var(--va-form-radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.va-form-modern .va-input-card .va-form-group:last-child,
.va-input-card .va-form-group:last-child {
    margin-bottom: 0;
}

/* Checkbox & Radio */
.va-form-modern .va-form-check,
.va-form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--va-form-gray-50);
    border-radius: var(--va-form-radius);
    cursor: pointer;
    transition: var(--va-form-transition);
    margin-bottom: 10px;
}

.va-form-modern .va-form-check:hover,
.va-form-check:hover {
    background: var(--va-form-gray-100);
}

.va-form-modern .va-form-check:last-child,
.va-form-check:last-child {
    margin-bottom: 0;
}

.va-form-modern .va-form-check-input,
.va-form-check-input {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 0;
    accent-color: var(--va-form-primary);
    cursor: pointer;
}

.va-form-modern .va-form-check-label,
.va-form-check-label {
    margin: 0;
    font-weight: 400;
    color: var(--va-form-gray-700);
    cursor: pointer;
    font-size: 0.9375rem;
}

/* Buttons */
.va-form-modern .va-btn,
.va-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: none;
    border-radius: var(--va-form-radius);
    transition: var(--va-form-transition);
}

.va-form-modern .va-btn svg,
.va-form-modern .va-btn i,
.va-btn svg,
.va-btn i {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.va-form-modern .va-btn:disabled,
.va-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.va-form-modern .va-btn-primary,
.va-btn-primary {
    background: linear-gradient(135deg, var(--va-form-primary) 0%, var(--va-form-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(102, 144, 244, 0.35);
}

.va-form-modern .va-btn-primary:hover:not(:disabled),
.va-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(102, 144, 244, 0.45);
}

.va-form-modern .va-btn-primary:active:not(:disabled),
.va-btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.va-form-modern .va-btn-secondary,
.va-btn-secondary {
    background: var(--va-form-gray-100);
    color: var(--va-form-gray-700);
}

.va-form-modern .va-btn-secondary:hover:not(:disabled),
.va-btn-secondary:hover:not(:disabled) {
    background: var(--va-form-gray-200);
}

.va-form-modern .va-btn-outline,
.va-btn-outline {
    background: transparent;
    color: var(--va-form-primary);
    border: 1.5px solid var(--va-form-primary);
}

.va-form-modern .va-btn-outline:hover:not(:disabled),
.va-btn-outline:hover:not(:disabled) {
    background: rgba(102, 144, 244, 0.08);
}

/* Upload Area */
.va-form-modern .va-upload-area,
.va-upload-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.va-form-modern .va-upload-btn,
.va-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--va-form-gray-50);
    border: 1.5px dashed var(--va-form-gray-300);
    border-radius: var(--va-form-radius);
    color: var(--va-form-gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--va-form-transition);
}

.va-form-modern .va-upload-btn svg,
.va-form-modern .va-upload-btn i,
.va-upload-btn svg,
.va-upload-btn i {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.va-form-modern .va-upload-btn:hover,
.va-upload-btn:hover {
    border-color: var(--va-form-primary);
    color: var(--va-form-primary);
    background: rgba(102, 144, 244, 0.05);
}

.va-form-modern .va-upload-hint,
.va-upload-hint {
    font-size: 0.8rem;
    color: var(--va-form-gray-400);
}

/* Form Footer */
.va-form-modern .va-form-footer,
.va-form-footer {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--va-form-gray-100);
    gap: 16px;
}

.va-form-modern .va-form-footer .va-upload-area,
.va-form-footer .va-upload-area {
    text-align: center;
}

@media (max-width: 576px) {
    .va-form-modern .va-form-footer .va-btn,
    .va-form-footer .va-btn {
        width: 100%;
    }
}

/* Progress Indicator */
.va-form-modern .va-form-progress,
.va-form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
    padding: 0 20px;
}

.va-form-modern .va-form-progress::before,
.va-form-progress::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 60px;
    right: 60px;
    height: 3px;
    background: var(--va-form-gray-200);
    z-index: 0;
}

@media (max-width: 576px) {
    .va-form-modern .va-form-progress,
    .va-form-progress {
        display: none;
    }
}

.va-form-modern .va-progress-step,
.va-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.va-form-modern .va-step-circle,
.va-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--va-form-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--va-form-gray-500);
    transition: var(--va-form-transition);
}

.va-form-modern .va-progress-step.active .va-step-circle,
.va-progress-step.active .va-step-circle {
    background: var(--va-form-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 144, 244, 0.35);
}

.va-form-modern .va-progress-step.completed .va-step-circle,
.va-progress-step.completed .va-step-circle {
    background: var(--va-form-success);
    color: #fff;
}

.va-form-modern .va-step-label,
.va-step-label {
    font-size: 0.75rem;
    color: var(--va-form-gray-500);
    font-weight: 500;
}

.va-form-modern .va-progress-step.active .va-step-label,
.va-progress-step.active .va-step-label {
    color: var(--va-form-primary);
}

/* Select2 Override */
.va-form-modern .select2-container {
    width: 100% !important;
}

.va-form-modern .select2-container--default .select2-selection--single {
    height: 48px !important;
    border: 1.5px solid var(--va-form-gray-200) !important;
    border-radius: var(--va-form-radius) !important;
    background-color: #fff !important;
    box-shadow: var(--va-form-shadow-sm);
}

.va-form-modern .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px !important;
    padding-left: 16px !important;
    color: var(--va-form-gray-800) !important;
    font-size: 0.9375rem !important;
}

.va-form-modern .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 12px !important;
}

.va-form-modern .select2-container--default.select2-container--focus .select2-selection--single,
.va-form-modern .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--va-form-primary) !important;
    box-shadow: var(--va-form-shadow-focus) !important;
}

.va-form-modern .select2-dropdown {
    border: 1.5px solid var(--va-form-gray-200) !important;
    border-radius: var(--va-form-radius) !important;
    box-shadow: var(--va-form-shadow-md) !important;
    margin-top: 4px !important;
}

.va-form-modern .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--va-form-primary) !important;
}

/* Multi-select */
.va-form-modern .select2-container--default .select2-selection--multiple {
    min-height: 48px !important;
    border: 1.5px solid var(--va-form-gray-200) !important;
    border-radius: var(--va-form-radius) !important;
    padding: 6px 12px !important;
}

.va-form-modern .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--va-form-primary) !important;
    border: none !important;
    border-radius: 4px !important;
    color: #fff !important;
    padding: 4px 8px !important;
}

.va-form-modern .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff !important;
    margin-right: 6px !important;
}

/* Public Form Page Background */
.va-form-page-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .va-form-page-bg {
        padding: 20px 15px;
    }
}

/* Alternative backgrounds */
.va-form-page-bg--light {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.va-form-page-bg--corporate {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
}

/* Animation for success icon */
@keyframes vaSuccessPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.va-success-icon {
    animation: vaSuccessPop 0.5s ease-out;
}

/* Global Select2 styling for VA Forms (dropdown renders outside form) */
.va-form-page-bg .select2-container--open .select2-dropdown,
.select2-container--default .select2-dropdown {
    background-color: #fff;
    border: 1.5px solid var(--va-form-gray-200, #E5E7EB);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
    overflow: hidden;
}

.select2-container--default .select2-results__option {
    padding: 12px 16px;
    font-size: 0.9375rem;
    color: #374151;
    background-color: #fff;
    transition: all 0.15s ease;
}

.select2-container--default .select2-results__option:hover {
    background-color: #F3F4F6;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #6690F4 !important;
    color: #fff !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #EEF2FF;
    color: #4F46E5;
}

.select2-container--default .select2-search--dropdown {
    padding: 8px;
    background-color: #fff;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1.5px solid #E5E7EB;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9375rem;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #6690F4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 144, 244, 0.2);
}

.select2-container--default .select2-results {
    max-height: 250px;
}

.select2-container--default .select2-results__options {
    max-height: 250px;
}

/* Description styling - allow HTML rendering */
.va-form-description {
    text-align: center;
}

.va-form-description p {
    margin: 0 0 8px 0;
    color: var(--va-form-gray-500);
    font-size: 1rem;
    line-height: 1.5;
}

.va-form-description p:last-child {
    margin-bottom: 0;
}

.va-form-description h1,
.va-form-description h2,
.va-form-description h3 {
    color: var(--va-form-gray-700);
    margin: 0 0 8px 0;
}

.va-form-description b,
.va-form-description strong {
    font-weight: 600;
}

.va-form-description i,
.va-form-description em {
    font-style: italic;
}

.va-form-description u {
    text-decoration: underline;
}

.va-form-description a {
    color: var(--va-form-primary, #6690F4);
    text-decoration: none;
    transition: color 0.2s ease;
}

.va-form-description a:hover {
    color: var(--va-form-primary-hover, #5580E4);
    text-decoration: underline;
}

.va-form-description ul,
.va-form-description ol {
    margin: 8px 0;
    padding-left: 24px;
    text-align: left;
}

.va-form-description li {
    margin-bottom: 4px;
    color: var(--va-form-gray-500);
}

.va-form-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px auto;
    display: block;
}

.va-form-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.va-form-description table td,
.va-form-description table th {
    border: 1px solid var(--va-form-border-color, #E5E7EB);
    padding: 8px 12px;
    text-align: left;
}

.va-form-description table th {
    background: var(--va-form-gray-100, #F9FAFB);
    font-weight: 600;
}

.va-form-description blockquote {
    border-left: 4px solid var(--va-form-primary, #6690F4);
    padding-left: 16px;
    margin: 12px 0;
    color: var(--va-form-gray-600);
    font-style: italic;
}

.va-form-description hr {
    border: none;
    border-top: 1px solid var(--va-form-border-color, #E5E7EB);
    margin: 16px 0;
}

/* ============================================
   SELECT2 OVERRIDES - MUST BE AT END OF FILE
   ============================================ */

/* Select wrapper */
.va-select-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* VA Select2 Container Styling */
.va-select-wrapper .select2-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure Select2 respects parent boundaries */
.va-form-group .va-select-wrapper .select2-container,
.va-form-card .va-select-wrapper .select2-container,
.va-form-section .va-select-wrapper .select2-container {
    width: 100% !important;
    max-width: 100% !important;
}

.va-select-wrapper .select2-container--default .select2-selection--single {
    height: 48px !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 12px !important;
    background-color: #fff !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.va-select-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px !important;
    padding-left: 16px !important;
    padding-right: 40px !important;
    color: #374151 !important;
    font-size: 0.9375rem !important;
}

.va-select-wrapper .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9CA3AF !important;
}

/* Style the native Select2 arrow */
.va-select-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    width: 36px !important;
    right: 4px !important;
    top: 0 !important;
}

.va-select-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #9CA3AF transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
    margin-left: -6px !important;
    margin-top: -3px !important;
}

/* Focus state */
.va-select-wrapper .select2-container--default.select2-container--focus .select2-selection--single,
.va-select-wrapper .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #6690F4 !important;
    box-shadow: 0 0 0 3px rgba(102, 144, 244, 0.2) !important;
}

.va-select-wrapper .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #6690F4 transparent !important;
    border-width: 0 5px 6px 5px !important;
}

/* Dropdown styling */
.va-select2-dropdown,
.va-select-wrapper .select2-dropdown,
.select2-dropdown {
    border: 1.5px solid #E5E7EB !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    background-color: #fff !important;
    margin-top: 4px !important;
    overflow: hidden !important;
    padding-bottom: 8px !important;
}

/* Results container padding */
.va-select2-dropdown .select2-results,
.va-select-wrapper .select2-results,
.select2-container--default .select2-results {
    padding: 6px 0 !important;
}

.va-select2-dropdown .select2-results__options,
.va-select-wrapper .select2-results__options,
.select2-container--default .select2-results__options {
    padding: 0 6px !important;
}

/* Search box styling for dropdown */
.va-select2-dropdown .select2-search--dropdown,
.va-select-wrapper .select2-search--dropdown,
.select2-container--default .select2-search--dropdown {
    padding: 10px 12px !important;
}

.va-select2-dropdown .select2-search--dropdown .select2-search__field,
.va-select-wrapper .select2-search--dropdown .select2-search__field,
.select2-container--default .select2-search--dropdown .select2-search__field {
    border-radius: 8px !important;
    border: 1.5px solid #E5E7EB !important;
    padding: 8px 12px !important;
}

/* Dropdown options */
.va-select2-dropdown .select2-results__option,
.va-select-wrapper .select2-results__option,
.select2-container--default .select2-results__option {
    padding: 10px 14px !important;
    font-size: 0.9375rem !important;
    color: #374151 !important;
    background-color: #fff !important;
    transition: background-color 0.15s ease !important;
    border-radius: 8px !important;
    margin: 2px 0 !important;
}

/* Highlighted option - override the green! */
.va-select2-dropdown .select2-results__option--highlighted,
.va-select2-dropdown .select2-results__option--highlighted.select2-results__option--selectable,
.va-select-wrapper .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #6690F4 !important;
    color: #ffffff !important;
}

/* Selected option */
.va-select2-dropdown .select2-results__option--selected,
.va-select-wrapper .select2-results__option--selected,
.select2-container--default .select2-results__option--selected {
    background-color: #EEF2FF !important;
    color: #6690F4 !important;
}

/* Clear button styling */
.va-select-wrapper .select2-container--default .select2-selection--single .select2-selection__clear {
    color: #9CA3AF !important;
    font-size: 18px !important;
    margin-right: 8px !important;
}

.va-select-wrapper .select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #6690F4 !important;
}
