/* Requiring Attention Styles */
.requiring-attention-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.requiring-attention-header {
    margin-bottom: 30px;
    text-align: center;
}

.requiring-attention-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.requiring-attention-header p {
    color: #7f8c8d;
    font-size: 16px;
}

/* Updated list view styles */
.attention-items-list {
    margin-bottom: 30px;
}

.attention-item-row {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.attention-item-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.attention-item-info {
    flex: 1;
}

.attention-item-info h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
}

.attention-item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.attention-item-details span {
    white-space: nowrap;
}

.attention-item-actions {
    flex-shrink: 0;
    margin-left: 20px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.status-processing {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.status-pending {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge.status-attention-required {
    background-color: #ffeaa7;
    color: #d63031;
    border: 1px solid #fab1a0;
}

/* Legacy grid styles (kept for backward compatibility) */
.attention-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.attention-item {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.attention-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.attention-item-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 15px;
}

.attention-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.attention-item-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background: #f39c12;
    color: white;
}

.status-completed {
    background: #27ae60;
    color: white;
}

.status-processing {
    background: #3498db;
    color: white;
}

.status-cancelled {
    background: #95a5a6;
    color: white;
}

.status-refunded {
    background: #e74c3c;
    color: white;
}

.status-failed {
    background: #c0392b;
    color: white;
}

.status-default {
    background: #bdc3c7;
    color: white;
}

.attention-item-details {
    margin-bottom: 15px;
}

.attention-item-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.attention-item-detail strong {
    color: #2c3e50;
}

.attention-item-detail span {
    color: #7f8c8d;
}

.attention-item-actions {
    display: flex;
    gap: 10px;
}

.btn-fill-form {
    flex: 1;
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

.btn-fill-form:hover {
    background: #2980b9;
}

.btn-fill-form:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Professional Typography */
.filing-form-modal {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: #2c3e50;
}

.filing-form-modal * {
    box-sizing: border-box;
}

/* Dynamic Form Modal */
.filing-form-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 10000;
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

.filing-form-modal-content {
    background: white;
    margin: 30px auto;
    padding: 0;
    border-radius: 12px;
    max-width: 900px;
    width: 92%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.filing-form-header {
    padding: 24px 32px;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px 12px 0 0;
}

.filing-form-title {
    margin: 0;
    color: #2c3e50;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.filing-form-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.filing-form-close:hover {
    color: #2c3e50;
    background: rgba(0,0,0,0.05);
    transform: scale(1.1);
}

.filing-form-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
    background: #fefefe;
}

.dynamic-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Form Footer with Professional Buttons */
.filing-form-footer {
    padding: 20px 32px;
    border-top: 1px solid #e1e8ed;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
}

.btn-cancel,
.btn-submit {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: 2px solid transparent;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-submit {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.25);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.btn-submit:disabled,
.btn-cancel:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Submit button with auto-fill reminder */
.btn-submit.has-autofill {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: 2px solid #20c997;
    position: relative;
}

.btn-submit.has-autofill::before {
    content: "⚠️ Review Auto-filled Data";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffc107;
    color: #212529;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn-submit.has-autofill:hover::before {
    opacity: 1;
}

.btn-submit.has-autofill:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a085 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

/* Auto-fill button enhancement */
.auto-fill-section {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0fff0 100%);
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auto-fill-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

.btn-auto-fill {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-auto-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-auto-fill:hover::before {
    left: 100%;
}

.btn-auto-fill:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.35);
}

.btn-auto-fill:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.25);
}

.auto-fill-help {
    color: #155724;
    font-size: 13px;
    margin: 0;
    font-style: italic;
    opacity: 0.8;
}

.form-section {
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    padding: 24px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}

.form-section:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #007bff;
    position: relative;
}

.form-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 1px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.form-group label.required:after {
    content: " *";
    color: #e74c3c;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #fff;
    box-sizing: border-box;
    line-height: 1.4;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background: #fafbfc;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    background: #fff5f5;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.field-help {
    font-size: 12px;
    color: #6c757d;
    margin-top: 6px;
    line-height: 1.4;
    font-style: italic;
}

.field-disclaimer {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 16px;
    font-size: 13px;
    color: #856404;
    margin-bottom: 16px;
    border-left: 4px solid #ffc107;
    position: relative;
}

.field-disclaimer::before {
    content: '⚠️';
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 16px;
}

.field-disclaimer {
    padding-left: 48px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: white;
}

.radio-option:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #007bff;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked {
    transform: scale(1.1);
}

.radio-option:has(input:checked) {
    border-color: #007bff;
    background: #e3f2fd;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.radio-option label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: white;
}

.checkbox-group:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #007bff;
    cursor: pointer;
}

.checkbox-group:has(input:checked) {
    border-color: #007bff;
    background: #e3f2fd;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.object-wrapper {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-top: 16px;
    background: #fafbfc;
    position: relative;
    transition: all 0.2s ease;
}

.object-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.object-wrapper[data-meta-type="address"] {
    border-color: #007bff;
    background: #f0f8ff;
}

.object-wrapper[data-meta-type="address"]::before {
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.object-wrapper[data-meta-type="person"] {
    border-color: #28a745;
    background: #f0fff0;
}

.object-wrapper[data-meta-type="person"]::before {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.object-wrapper[data-meta-type="registered_agent"] {
    border-color: #ffc107;
    background: #fffbf0;
}

.object-wrapper[data-meta-type="registered_agent"]::before {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.btn-add-repeat {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

.btn-add-repeat:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.field-validation-message {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
    min-height: 16px;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    backdrop-filter: blur(2px);
}

.loading-overlay .loading-spinner {
    width: 32px;
    height: 32px;
    border-width: 4px;
    margin-bottom: 16px;
}

.loading-overlay::after {
    content: 'Loading form data...';
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

/* Enhanced Validation Styles */
.field-validation-message {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 6px;
    min-height: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.field-validation-message::before {
    content: '⚠️';
    font-size: 14px;
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
    background: #f8fff9;
}

.form-group.success .field-validation-message {
    color: #28a745;
}

.form-group.success .field-validation-message::before {
    content: '✅';
}

/* Auto-fill Success Message */
.auto-fill-success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 20px;
    color: #155724;
    position: relative;
    animation: slideInSuccess 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
    overflow: hidden;
}

.auto-fill-success-message .auto-fill-header {
    padding: 16px 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(40, 167, 69, 0.2);
}

.auto-fill-success-message .auto-fill-warning {
    padding: 12px 20px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-top: 1px solid #ffc107;
    color: #856404;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.auto-fill-success-message .warning-icon {
    font-size: 14px;
    margin-top: 1px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
    }
    50% { 
        opacity: 0.7; 
    }
}

@keyframes slideInSuccess {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auto-fill-success-message .success-icon {
    font-size: 18px;
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(-5px);
    }
}

.auto-fill-success-message .close-success {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    color: #155724;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.auto-fill-success-message .close-success:hover {
    opacity: 1;
    transform: scale(1.1);
}

.btn-auto-fill.success {
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    }
    100% {
        transform: scale(1);
    }
}

/* Auto-filled Field Animation */
@keyframes autofillSuccess {
    0% {
        background: #d4edda;
        transform: scale(1);
    }
    50% {
        background: #c3e6cb;
        transform: scale(1.02);
    }
    100% {
        background: white;
        transform: scale(1);
    }
}

.form-group input.auto-filled,
.form-group select.auto-filled,
.form-group textarea.auto-filled {
    animation: autofillSuccess 0.8s ease-out;
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15) !important;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #bdc3c7;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Thank You Page Message */
.thank-you-attention-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #f39c12;
}

.thank-you-attention-notice h3 {
    color: #856404;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.thank-you-attention-notice p {
    color: #856404;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.thank-you-attention-notice a {
    color: #856404;
    text-decoration: none;
    font-weight: 600;
}

.thank-you-attention-notice a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .requiring-attention-container {
        padding: 15px;
    }
    
    .attention-items-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filing-form-modal-content {
        margin: 15px auto;
        width: 95%;
        max-height: 90vh;
    }
    
    .filing-form-header {
        padding: 20px 24px;
    }
    
    .filing-form-body {
        padding: 24px 20px;
    }
    
    .filing-form-footer {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
        order: 2;
    }
    
    .btn-cancel {
        order: 1;
    }
    
    .form-section {
        padding: 20px 16px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .filing-form-title {
        font-size: 18px;
    }
    
    .radio-group {
        gap: 10px;
    }
    
    .radio-option,
    .checkbox-group {
        padding: 10px 12px;
    }
}

/* Body scroll prevention when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Additional mobile styles */
@media (max-width: 480px) {
    .filing-form-modal-content {
        margin: 8px;
        width: calc(100% - 16px);
        max-height: 95vh;
        border-radius: 8px;
    }
    
    .filing-form-header {
        padding: 16px 20px;
        border-radius: 8px 8px 0 0;
    }
    
    .filing-form-body,
    .filing-form-footer {
        padding: 16px 20px;
    }
    
    .form-section {
        padding: 16px 12px;
        border-radius: 8px;
    }
    
    .form-group {
        margin-bottom: 14px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .filing-form-title {
        font-size: 16px;
    }
    
    .btn-cancel,
    .btn-submit {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .object-wrapper {
        padding: 16px 12px;
        margin-top: 12px;
    }
}

/* Back Button Styles */
.btn-back-to-orders {
    background: #95a5a6 !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    margin-bottom: 15px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.btn-back-to-orders:hover {
    background: #7f8c8d !important;
}

/* Select Order Button */
.btn-select-order {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.btn-select-order:hover {
    background: #2980b9;
}

.btn-select-order:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}


.section-help {
    font-size: 14px;
    color: #6c757d;
    margin: -10px 0 15px 0;
}

.field-help {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 6px;
}

.field-disclaimer {
    background: #fff9e6;
    border: 1px solid #ffe58f;
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
}
.btn-add-repeat {
    margin-top: 10px;
    background: #e1e8ed;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
}

/* Enhanced Validation Error Styles */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    background-color: #fff5f5 !important;
}

.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.validation-errors {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 200px;
        transform: translateY(0);
    }
}

.form-group label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

.field-error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Auto-fill success feedback */
.auto-fill-success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Address object styling */

/* Responsive Design for List View */
@media (max-width: 768px) {
    .attention-item-row {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .attention-item-info {
        margin-bottom: 15px;
    }
    
    .attention-item-details {
        justify-content: center;
        gap: 10px;
    }
    
    .attention-item-actions {
        margin-left: 0;
        align-self: stretch;
    }
    
    .btn-select-order,
    .btn-fill-form {
        width: 100%;
    }
    
    .ra-controls-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .ra-filters {
        flex-direction: column;
        gap: 10px;
    }
}
.object-wrapper[data-meta-type="address"] {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.object-wrapper[data-meta-type="address"] .form-group {
    margin-bottom: 15px;
}

.object-wrapper[data-meta-type="address"] .form-group:last-child {
    margin-bottom: 0;
}

/* Address field grid layout */
.object-wrapper[data-meta-type="address"] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 768px) {
    .object-wrapper[data-meta-type="address"] {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Full width for address line fields */
    .object-wrapper[data-meta-type="address"] .form-group[data-field-name*="line1"],
    .object-wrapper[data-meta-type="address"] .form-group[data-field-name*="line2"] {
        grid-column: 1 / -1;
    }
}

/* Object wrapper general styling */
.object-wrapper {
    border-left: 4px solid #007cba;
    padding-left: 15px;
    margin: 10px 0;
}

.object-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    display: block;
}

/* Boolean and checkbox groups */
.boolean-group,
.checkbox-group {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 5px;
}

.boolean-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    margin: 0;
}

.boolean-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    margin: 0;
    width: auto;
}

