/* Import Font Awesome */
/* @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'); */

/* Reset and Base Styles - Stronger specificity for WordPress */
.income-tax-form-wrapper,
.income-tax-form-wrapper *,
.income-tax-form-wrapper *::before,
.income-tax-form-wrapper *::after {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Main Form Wrapper - Enhanced isolation with FIXED z-index */
.income-tax-form-wrapper {
    max-width: 800px !important;
    margin: 20px auto !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.6 !important;
    color: #2c3e50 !important;
    position: relative !important;
    z-index: 1 !important; /* FIXED: Reduced from 999999 to prevent overlap */
    border: none !important;
    outline: none !important;
    text-align: left !important;
    direction: ltr !important;
    float: none !important;
    clear: both !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-height: auto !important;
    vertical-align: baseline !important;
}

/* Override any theme button/input resets */
.income-tax-form-wrapper input,
.income-tax-form-wrapper textarea,
.income-tax-form-wrapper button,
.income-tax-form-wrapper select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: none !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    caption-side: top !important;
    empty-cells: show !important;
    table-layout: auto !important;
    text-transform: none !important;
    text-decoration: none !important;
    text-shadow: none !important;
    white-space: normal !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
    font-variant: normal !important;
    font-style: normal !important;
    font-stretch: normal !important;
    text-align: left !important;
    vertical-align: baseline !important;
    float: none !important;
    clear: none !important;
    overflow: visible !important;
    clip: auto !important;
    list-style: none !important;
    counter-reset: none !important;
    counter-increment: none !important;
}

/* Form Header */
.income-tax-form-wrapper .form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 32px 24px !important;
    text-align: center !important;
    position: relative !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    float: none !important;
    clear: both !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
}

.income-tax-form-wrapper .form-header::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.1) !important;
    z-index: -1 !important;
}

.income-tax-form-wrapper .form-header h1 {
    font-size: 28px !important;
    font-weight: 600 !important;
    margin: 0 0 8px 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    color: white !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    float: none !important;
    clear: none !important;
    position: static !important;
    z-index: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: auto !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
}

.income-tax-form-wrapper .form-header p {
    font-size: 16px !important;
    opacity: 0.9 !important;
    margin: 0 !important;
    color: white !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Form Content */
.income-tax-form-wrapper .form-content {
    padding: 32px 24px !important;
    background: #ffffff !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    float: none !important;
    clear: both !important;
    position: static !important;
    z-index: auto !important;
    overflow: visible !important;
}

/* Progress Bar */
.income-tax-form-wrapper .progress-bar {
    width: 100% !important;
    height: 8px !important;
    background: #e2e8f0 !important;
    border-radius: 4px !important;
    margin: 0 0 24px 0 !important; /* FIXED: Reduced bottom margin from 32px to 24px */
    overflow: hidden !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    padding: 0 !important;
    display: block !important;
    position: static !important;
    z-index: auto !important;
    float: none !important;
    clear: none !important;
}

.income-tax-form-wrapper .progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8) !important;
    border-radius: 4px !important;
    width: 0% !important;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: block !important;
    float: none !important;
    clear: none !important;
    z-index: auto !important;
}

.income-tax-form-wrapper .progress-fill::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
    animation: progress-shimmer 2s infinite !important;
}

@keyframes progress-shimmer {
    0% { transform: translateX(-100%) !important; }
    100% { transform: translateX(100%) !important; }
}

/* Info Box - FIXED spacing */
.income-tax-form-wrapper .info-box {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%) !important;
    border: 1px solid #bfdbfe !important;
    border-left: 4px solid #3b82f6 !important;
    border-radius: 8px !important;
    padding: 16px !important;
    margin: 0 0 24px 0 !important; /* FIXED: Reduced bottom margin from 32px to 24px */
    color: #1e40af !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.5 !important;
    text-align: left !important;
    float: none !important;
    clear: both !important;
    position: static !important;
    z-index: auto !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
    outline: none !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
}

.income-tax-form-wrapper .info-box i {
    color: #3b82f6 !important;
    font-size: 16px !important;
    margin: 2px 0 0 0 !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    text-decoration: none !important;
    display: inline-block !important;
    float: none !important;
    clear: none !important;
    position: static !important;
    z-index: auto !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    vertical-align: baseline !important;
}

.income-tax-form-wrapper .required {
    color: #ef4444 !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    text-decoration: none !important;
    text-transform: none !important;
}

/* Form Container */
.income-tax-form-wrapper .income-tax-form-container {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    display: block !important;
    float: none !important;
    clear: both !important;
    position: static !important;
    z-index: auto !important;
    height: auto !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Form Sections */
.income-tax-form-wrapper .form-sections {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    float: none !important;
    clear: both !important;
    position: static !important;
    z-index: auto !important;
    height: auto !important;
    box-shadow: none !important;
    outline: none !important;
}

.income-tax-form-wrapper .form-section {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 32px 0 !important; /* FIXED: Reduced bottom margin from 40px to 32px */
    width: 100% !important;
    display: block !important;
    float: none !important;
    clear: both !important;
    position: static !important;
    z-index: auto !important;
    height: auto !important;
    box-shadow: none !important;
    outline: none !important;
}

.income-tax-form-wrapper .section-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: white !important;
    margin: 0 0 20px 0 !important; /* FIXED: Reduced bottom margin from 24px to 20px */
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%) !important;
    padding: 16px 20px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.2 !important;
    text-align: left !important;
    border: none !important;
    outline: none !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    float: none !important;
    clear: both !important;
    position: static !important;
    z-index: auto !important;
    width: auto !important;
    height: auto !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
}

.income-tax-form-wrapper .section-title i {
    color: #90cdf4 !important;
    font-size: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    text-decoration: none !important;
    display: inline-block !important;
    float: none !important;
    clear: none !important;
    position: static !important;
    z-index: auto !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    vertical-align: baseline !important;
    flex-shrink: 0 !important;
}

/* Form Grid - Enhanced responsive system */
.income-tax-form-wrapper .form-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important; /* FIXED: Reduced gap from 24px to 20px */
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    float: none !important;
    clear: both !important;
    position: static !important;
    z-index: auto !important;
    height: auto !important;
    box-shadow: none !important;
    outline: none !important;
    grid-template-rows: auto !important;
    grid-auto-rows: auto !important;
    grid-auto-columns: auto !important;
    grid-auto-flow: row !important;
    align-content: start !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    justify-items: stretch !important;
}

/* Responsive grid - only applies on larger screens */
@media screen and (min-width: 640px) {
    .income-tax-form-wrapper .form-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Form Groups */
.income-tax-form-wrapper .form-group {
    position: static !important;
    margin: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    float: none !important;
    clear: none !important;
    z-index: auto !important;
    height: auto !important;
    box-shadow: none !important;
    outline: none !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
}

.income-tax-form-wrapper .form-group.full-width {
    grid-column: 1 / -1 !important;
}

/* Form Labels */
.income-tax-form-wrapper .form-label {
    display: block !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    margin: 0 0 8px 0 !important;
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    z-index: auto !important;
    border: none !important;
    outline: none !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.4 !important;
    text-align: left !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    float: none !important;
    clear: none !important;
    width: auto !important;
    height: auto !important;
    cursor: default !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* Form Controls - Enhanced specificity and isolation */
.income-tax-form-wrapper .form-control {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: #ffffff !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: #374151 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    margin: 0 !important;
    outline: none !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    line-height: 1.5 !important;
    text-align: left !important;
    vertical-align: baseline !important;
    float: none !important;
    clear: none !important;
    position: static !important;
    z-index: auto !important;
    height: auto !important;
    min-height: 48px !important;
    max-width: none !important;
    display: block !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    resize: none !important;
    cursor: text !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    box-sizing: border-box !important;
}

.income-tax-form-wrapper .form-control::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 400 !important;
    line-height: inherit !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.income-tax-form-wrapper .form-control:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    background: #ffffff !important;
    color: #374151 !important;
}

.income-tax-form-wrapper .form-control:hover:not(:focus) {
    border-color: #cbd5e0 !important;
}

.income-tax-form-wrapper .form-control.valid {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
}

.income-tax-form-wrapper .form-control.invalid {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.income-tax-form-wrapper textarea.form-control {
    resize: vertical !important;
    min-height: 100px !important;
    line-height: 1.5 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    cursor: text !important;
    overflow: auto !important;
}

/* Validation Messages */
.income-tax-form-wrapper .validation-message {
    font-size: 13px !important;
    color: #6b7280 !important;
    margin: 6px 0 0 0 !important;
    display: none !important;
    padding: 0 4px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-align: left !important;
    border: none !important;
    background: transparent !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    float: none !important;
    clear: none !important;
    position: static !important;
    z-index: auto !important;
    width: auto !important;
    height: auto !important;
    outline: none !important;
    box-shadow: none !important;
}

.income-tax-form-wrapper .validation-message.show {
    display: block !important;
}

.income-tax-form-wrapper .validation-message.error {
    color: #ef4444 !important;
}

.income-tax-form-wrapper .validation-message.success {
    color: #10b981 !important;
}

/* Submit Section */
.income-tax-form-wrapper .submit-section {
    margin: 32px 0 0 0 !important; /* FIXED: Reduced top margin from 40px to 32px */
    padding: 32px 0 !important;
    text-align: center !important;
    border-top: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
    margin-left: -24px !important;
    margin-right: -24px !important;
    margin-bottom: -32px !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    float: none !important;
    clear: both !important;
    position: static !important;
    z-index: auto !important;
    outline: none !important;
}

/* Submit Button - Enhanced isolation */
.income-tax-form-wrapper .submit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: white !important;
    border: none !important;
    padding: 16px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    min-width: 200px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    word-spacing: normal !important;
    margin: 0 auto !important;
    float: none !important;
    clear: none !important;
    z-index: auto !important;
    width: auto !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    vertical-align: baseline !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    outline: none !important;
}

.income-tax-form-wrapper .submit-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.5s !important;
}

.income-tax-form-wrapper .submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.4) !important;
}

.income-tax-form-wrapper .submit-btn:hover::before {
    left: 100% !important;
}

.income-tax-form-wrapper .submit-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px 0 rgba(59, 130, 246, 0.3) !important;
}

.income-tax-form-wrapper .submit-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    background: #9ca3af !important;
    box-shadow: none !important;
}

.income-tax-form-wrapper .submit-btn .spinner {
    display: none !important;
    margin: 0 !important;
    animation: income-tax-spin 1s linear infinite !important;
    font-size: 16px !important;
    color: white !important;
    line-height: 1 !important;
}

.income-tax-form-wrapper .submit-btn.loading .spinner {
    display: inline-block !important;
}

.income-tax-form-wrapper .submit-btn.loading {
    pointer-events: none !important;
}

@keyframes income-tax-spin {
    0% { transform: rotate(0deg) !important; }
    100% { transform: rotate(360deg) !important; }
}

/* Form Message */
.income-tax-form-wrapper .form-message {
    margin: 24px 0 0 0 !important;
    padding: 16px 20px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: none !important;
    border-left: 4px solid !important;
    position: relative !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.5 !important;
    text-align: left !important;
    color: inherit !important;
    background: transparent !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    float: none !important;
    clear: both !important;
    z-index: auto !important;
    width: auto !important;
    height: auto !important;
}

.income-tax-form-wrapper .form-message.show {
    display: block !important;
    animation: slideInMessage 0.3s ease-out !important;
}

.income-tax-form-wrapper .form-message.success {
    background: linear-gradient(135deg, #f0fff4 0%, #ecfdf5 100%) !important;
    color: #166534 !important;
    border-left-color: #22c55e !important;
    border-top: 1px solid #bbf7d0 !important;
    border-right: 1px solid #bbf7d0 !important;
    border-bottom: 1px solid #bbf7d0 !important;
}

.income-tax-form-wrapper .form-message.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%) !important;
    color: #991b1b !important;
    border-left-color: #ef4444 !important;
    border-top: 1px solid #fca5a5 !important;
    border-right: 1px solid #fca5a5 !important;
    border-bottom: 1px solid #fca5a5 !important;
}

@keyframes slideInMessage {
    from {
        opacity: 0 !important;
        transform: translateY(-10px) !important;
    }
    to {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* Loading States */
.income-tax-form-wrapper.loading {
    pointer-events: none !important;
    opacity: 0.8 !important;
}

.income-tax-form-wrapper.loading::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255, 255, 255, 0.7) !important;
    z-index: 999998 !important;
}

/* Responsive Design - Mobile First */
@media screen and (max-width: 639px) {
    .income-tax-form-wrapper {
        margin: 15px 10px !important;
        border-radius: 12px !important;
        max-width: none !important;
    }
    
    .income-tax-form-wrapper .form-content {
        padding: 24px 20px !important;
    }
    
    .income-tax-form-wrapper .form-header {
        padding: 24px 20px !important;
    }
    
    .income-tax-form-wrapper .form-header h1 {
        font-size: 24px !important;
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center !important;
    }
    
    .income-tax-form-wrapper .section-title {
        font-size: 16px !important;
        padding: 12px 16px !important;
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center !important;
    }
    
    .income-tax-form-wrapper .form-control {
        font-size: 16px !important; /* Prevents zoom on iOS */
        min-height: 44px !important;
    }
    
    .income-tax-form-wrapper .submit-btn {
        width: 100% !important;
        min-width: auto !important;
        padding: 14px 20px !important;
    }
    
    .income-tax-form-wrapper .submit-section {
        padding: 24px 20px !important;
        margin-left: -20px !important;
        margin-right: -20px !important;
        margin-bottom: -24px !important;
    }
    
    .income-tax-form-wrapper .info-box {
        padding: 12px 15px !important;
        font-size: 13px !important;
        margin: 0 0 20px 0 !important; /* FIXED: Reduced bottom margin for mobile */
    }
}

@media screen and (max-width: 479px) {
    .income-tax-form-wrapper {
        margin: 10px 5px !important;
    }
    
    .income-tax-form-wrapper .form-content {
        padding: 20px 15px !important;
    }
    
    .income-tax-form-wrapper .form-header {
        padding: 20px 15px !important;
    }
    
    .income-tax-form-wrapper .form-header h1 {
        font-size: 22px !important;
    }
    
    .income-tax-form-wrapper .submit-section {
        padding: 20px 15px !important;
        margin-left: -15px !important;
        margin-right: -15px !important;
        margin-bottom: -20px !important;
    }
    
    .income-tax-form-wrapper .info-box {
        margin: 0 0 18px 0 !important; /* FIXED: Even smaller margin for very small screens */
    }
}

/* Print Styles */
@media print {
    .income-tax-form-wrapper {
        box-shadow: none !important;
        border: 1px solid #000 !important;
        background: white !important;
        color: black !important;
        font-size: 12px !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .income-tax-form-wrapper .form-header {
        background: #f0f0f0 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .income-tax-form-wrapper .submit-section {
        display: none !important;
    }
    
    .income-tax-form-wrapper .progress-bar {
        display: none !important;
    }
    
    .income-tax-form-wrapper .form-message {
        display: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .income-tax-form-wrapper .form-control {
        border-width: 3px !important;
        border-color: #000 !important;
        background: #fff !important;
        color: #000 !important;
    }
    
    .income-tax-form-wrapper .form-control:focus {
        border-width: 3px !important;
        border-color: #0066cc !important;
        box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3) !important;
    }
    
    .income-tax-form-wrapper .submit-btn {
        background: #000 !important;
        color: #fff !important;
        border: 2px solid #000 !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .income-tax-form-wrapper *,
    .income-tax-form-wrapper *::before,
    .income-tax-form-wrapper *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .income-tax-form-wrapper {
        background: #1f2937 !important;
        color: #f9fafb !important;
    }
    
    .income-tax-form-wrapper .form-content {
        background: #1f2937 !important;
    }
    
    .income-tax-form-wrapper .form-control {
        background: #374151 !important;
        border-color: #4b5563 !important;
        color: #f9fafb !important;
    }
    
    .income-tax-form-wrapper .form-control:focus {
        border-color: #60a5fa !important;
        background: #374151 !important;
    }
    
    .income-tax-form-wrapper .form-label {
        color: #e5e7eb !important;
    }
    
    .income-tax-form-wrapper .submit-section {
        background: #111827 !important;
        border-top-color: #374151 !important;
    }
}

/* WordPress Theme Override Protection */
.income-tax-form-wrapper input[type="text"],
.income-tax-form-wrapper input[type="email"],
.income-tax-form-wrapper input[type="tel"],
.income-tax-form-wrapper input[type="date"],
.income-tax-form-wrapper textarea,
.income-tax-form-wrapper button,
.income-tax-form-wrapper select {
    all: unset !important;
    display: block !important;
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background: #ffffff !important;
    color: #374151 !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    line-height: 1.5 !important;
    text-align: left !important;
    cursor: text !important;
}

.income-tax-form-wrapper button.submit-btn {
    all: unset !important;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: white !important;
    border: none !important;
    padding: 16px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    min-width: 200px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin: 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
}

/* Force override for common WordPress theme conflicts */
.income-tax-form-wrapper * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.income-tax-form-wrapper h1,
.income-tax-form-wrapper h2,
.income-tax-form-wrapper h3,
.income-tax-form-wrapper h4,
.income-tax-form-wrapper h5,
.income-tax-form-wrapper h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    line-height: inherit !important;
    color: inherit !important;
}

/* Flexbox and Grid fixes for WordPress themes */
.income-tax-form-wrapper .form-grid,
.income-tax-form-wrapper .form-group,
.income-tax-form-wrapper .section-title,
.income-tax-form-wrapper .info-box,
.income-tax-form-wrapper .submit-btn {
    flex-basis: auto !important;
    flex-grow: 0 !important;
    flex-shrink: 1 !important;
    align-self: auto !important;
    order: 0 !important;
}

/* WordPress block editor compatibility */
.wp-block .income-tax-form-wrapper,
.entry-content .income-tax-form-wrapper,
.post-content .income-tax-form-wrapper {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 800px !important;
}

/* Additional text color fixes for WordPress theme conflicts */
.income-tax-form-wrapper .form-control,
.income-tax-form-wrapper input,
.income-tax-form-wrapper textarea {
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 2px solid #e5e7eb !important;
    text-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
    margin: 0 !important;
    outline: none !important;
}

.income-tax-form-wrapper .form-control:focus,
.income-tax-form-wrapper input:focus,
.income-tax-form-wrapper textarea:focus {
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.income-tax-form-wrapper .form-control::placeholder,
.income-tax-form-wrapper input::placeholder,
.income-tax-form-wrapper textarea::placeholder {
    color: #9ca3af !important;
    -webkit-text-fill-color: #9ca3af !important;
    opacity: 1 !important;
}

.income-tax-form-wrapper .form-control::-webkit-input-placeholder {
    color: #9ca3af !important;
    -webkit-text-fill-color: #9ca3af !important;
}

.income-tax-form-wrapper .form-control::-moz-placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

.income-tax-form-wrapper .form-control:-ms-input-placeholder {
    color: #9ca3af !important;
}

.income-tax-form-wrapper .form-control::-ms-input-placeholder {
    color: #9ca3af !important;
}

/* Override theme button styles specifically */
.income-tax-form-wrapper .submit-btn:not(.wp-element-button) {
    all: unset !important;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: white !important;
    border: none !important;
    padding: 16px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    font-family: 'Inter', sans-serif !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    min-width: 200px !important;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 auto !important;
}