/**
 * Express Entry Hub - Assessment Form Styles (Government Vertical Sidebar Navigation)
 * Professional immigration portal with vertical sidebar navigation - Government Color Scheme
 * 
 * @package ExpressEntryHub
 * @since 1.4.0
 */

/* Main Layout - Vertical Sidebar System */
.eeh-assessment-container {
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #dcdcdc;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 80vh;
}

@media (min-width: 993px) {
    .eeh-assessment-container {
        flex-direction: row;
        min-height: 70vh;
    }
}

/* Header Styles */
.eeh-assessment-header {
    text-align: center;
    padding: 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid #dcdcdc;
    position: relative;
}

.eeh-assessment-header h2 {
    color: #1a5f7a;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.eeh-assessment-header p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Mobile Hamburger Menu */
.mobile-sidebar-toggle {
    display: none;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: #1a5f7a;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    z-index: 1000;
}

.mobile-sidebar-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .mobile-sidebar-toggle {
        display: block;
    }
}

/* Vertical Sidebar - Left (30% width) */
.eeh-assessment-sidebar {
    width: 100%;
    background: #f5f8fa;
    border-right: 1px solid #dcdcdc;
    overflow-y: auto;
    transition: all 0.3s ease;
}

@media (min-width: 993px) {
    .eeh-assessment-sidebar {
        width: 30%;
        min-width: 320px;
        max-width: 400px;
    }
}

@media (max-width: 992px) {
    .eeh-assessment-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        z-index: 999;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }
    
    .eeh-assessment-sidebar.active {
        left: 0;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

/* Sidebar Header with Progress */
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #dcdcdc;
    background: #f5f8fa;
}

.progress-summary {
    margin-bottom: 1rem;
}

.progress-summary h3 {
    color: #1a5f7a;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.step-counter {
    font-size: 0.9375rem;
    color: #1a5f7a;
    font-weight: 500;
}

.progress-percentage {
    font-size: 0.9375rem;
    color: #2e8540;
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a5f7a, #2c8bb9);
    width: 0%;
    transition: width 0.6s ease;
    border-radius: 4px;
}

/* Vertical Step List */
.vertical-steps {
    padding: 1rem 0;
}

.step-item {
    display: flex;
    align-items: center;
    padding: 1.125rem 1.5rem;
    cursor: default;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    min-height: 72px; /* 48px touch target */
}

/* Cursor for clickable tabs */
.step-item.current,
.step-item.completed {
    cursor: pointer !important;
}

/* Cursor for non-clickable tabs */
.step-item.pending,
.step-item.incomplete {
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Hover effects only for clickable tabs (current and completed) */
.step-item.current:hover,
.step-item.completed:hover {
    background: #f0f7ff !important;
    transition: background-color 0.2s ease;
}

.step-item.completed:hover {
    background: #f0f8f0 !important;
}

.step-item.current:hover {
    background: #e6f3f8 !important;
}

/* Step Number and Icon */
.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Adjust font size for 2-letter codes */
.step-number.two-letters {
    font-size: 0.85rem;
}

.step-item.pending .step-number {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #dee2e6;
}

.step-item.current .step-number {
    background: #1a5f7a;
    color: white;
    border: 2px solid #1a5f7a;
}

.step-item.completed .step-number {
    background: #2e8540;
    color: white;
    border: 2px solid #2e8540;
}

.step-item.completed .step-number::after {
    content: '✓';
    font-size: 1.25rem;
}

/* Step Content */
.step-content {
    flex: 1;
}

.step-title {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.step-item.pending .step-title {
    color: #6c757d;
}

.step-item.current .step-title {
    color: #1a5f7a;
}

.step-item.completed .step-title {
    color: #2e8540;
}

.step-description {
    font-size: 0.875rem;
    color: #8e8e93;
    line-height: 1.4;
}

/* Step Validation Indicator */
.step-validation {
    margin-left: 0.75rem;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.step-item.valid .step-validation {
    color: #2e8540;
}

.step-item.incomplete .step-validation {
    color: #ffc107;
}

.step-item.error .step-validation {
    color: #dc3545;
}

/* Current step highlight */
.step-item.current {
    background: #e6f3f8;
    border-left-color: #1a5f7a;
}

.step-item.completed {
    background: #f8fff8;
    border-left-color: #2e8540;
}

/* Right Content Area - Main Form (70% width) */
.eeh-assessment-content {
    width: 100%;
    padding: 2rem;
    overflow-y: auto;
    background: #ffffff;
}

@media (min-width: 993px) {
    .eeh-assessment-content {
        width: 70%;
    }
}

/* Tab Content Area - Card Style */
.tab {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-content {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid #dcdcdc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.tab-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dcdcdc;
}

.tab-header h3 {
    color: #1a5f7a;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.tab-header p {
    color: #6c757d;
    font-size: 1.125rem;
    line-height: 1.5;
    margin: 0;
}

/* Form Field Styles - Professional Design */
.section-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.form-field {
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
    font-size: 0.9375rem;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.form-field .required {
    color: #dc3545;
    margin-left: 0.25rem;
}

.required-note {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
    font-style: italic;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field input[type="date"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    color: #495057;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    transition: all 0.2s ease;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="tel"]:focus,
.form-field input[type="number"]:focus,
.form-field input[type="date"]:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #1a5f7a;
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

.form-field input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #ffffff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2' ry='2'></rect><line x1='16' y1='2' x2='16' y2='6'></line><line x1='8' y1='2' x2='8' y2='6'></line><line x1='3' y1='10' x2='21' y2='10'></line></svg>") no-repeat right 1rem center;
    background-size: 20px;
    padding-right: 3rem;
}

.form-field select {
    background: #ffffff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>") no-repeat right 1rem center;
    background-size: 20px;
    padding-right: 3rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

/* Form Field Help Text */
.field-help {
    font-size: 0.8125rem;
    color: #6c757d;
    margin-top: 0.375rem;
    display: block;
    line-height: 1.4;
}

/* Navigation Button Styles - Professional */
.section-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dcdcdc;
}

.btn-prev-tab,
.btn-next-tab,
.btn-submit-assessment {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 140px;
    transition: all 0.2s ease;
}

.btn-prev-tab {
    background: #f8f9fa;
    color: #1a5f7a;
    border: 1px solid #dcdcdc;
}

.btn-prev-tab:hover:not(:disabled) {
    background: #e9ecef;
    transform: translateY(-1px);
}

.btn-prev-tab:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-next-tab,
.btn-submit-assessment {
    background: #1a5f7a;
    color: white;
}

.btn-next-tab:hover:not(:disabled),
.btn-submit-assessment:hover:not(:disabled) {
    background: #2c8bb9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.2);
}

.btn-next-tab:disabled,
.btn-submit-assessment:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-submit-assessment {
    background: #2e8540;
}

.btn-submit-assessment:hover:not(:disabled) {
    background: #36a34f;
    box-shadow: 0 4px 12px rgba(46, 133, 64, 0.2);
}

/* Button Icons */
.btn-prev-tab::before {
    content: '←';
    font-size: 1rem;
}

.btn-next-tab::after {
    content: '→';
    font-size: 1rem;
}

.btn-submit-assessment::after {
    content: '✓';
    font-size: 1rem;
}

/* Form Footer */
.form-footer {
    margin-top: 40px;
    padding: 20px;
    background: #f5f8fa;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #dcdcdc;
}

.form-footer small {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.5;
    display: block;
}

/* Loading Spinner */
#eeh-assessment-loading {
    text-align: center;
    padding: 60px 40px;
}

.loading-spinner {
    border: 4px solid rgba(26, 95, 122, 0.1);
    border-radius: 50%;
    border-top: 4px solid #1a5f7a;
    width: 48px;
    height: 48px;
    animation: spin 1s ease infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States - THEME APPROPRIATE LIGHT SHADE (Blue theme) */
.form-field.error {
    border-left: 4px solid #1a5f7a; /* Primary blue instead of red */
    padding-left: 16px;
    background: rgba(26, 95, 122, 0.05); /* Light blue background */
    border-radius: 0 10px 10px 0;
}

.form-field.error input,
.form-field.error select,
.form-field.error textarea {
    border-color: #1a5f7a; /* Primary blue border */
    background: rgba(26, 95, 122, 0.03); /* Very light blue background */
}

.form-field.error input:focus,
.form-field.error select:focus,
.form-field.error textarea:focus {
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.15); /* Blue focus shadow */
}

.field-error {
    color: #1a5f7a; /* Primary blue text */
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    display: block;
    font-weight: 500;
}

/* Hidden Tab Styles */
.hidden-tab {
    display: none !important;
}

/* Dynamic Children DOB Fields Layout */
.dynamic-children-fields {
    grid-column: 1 / -1;
    margin-bottom: 1.5rem;
}

.dynamic-child-field {
    width: 100%;
    margin-bottom: 1rem;
}

/* Special layout for children DOB fields - start from beginning with proper flow */
#children-dob-container {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Ensure children DOB fields fill the grid properly */
.children-dob-field {
    flex: 1 0 calc(50% - 0.625rem); /* Two columns with gap accounted for */
    min-width: 280px;
    max-width: 100%;
}

/* Single child DOB field should take reasonable width */
#children-dob-container .dynamic-child-field:only-child {
    flex: 1 0 100%;
    max-width: 100%;
}

/* Adjust for mobile - single column */
@media (max-width: 768px) {
    .children-dob-field {
        flex: 1 0 100%;
        min-width: 100%;
    }
}

/* Responsive Styles - Mobile Optimized */
@media (max-width: 768px) {
    .eeh-assessment-content {
        padding: 1.5rem;
    }
    
    .eeh-assessment-header h2 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
        padding-right: 60px;
    }
    
    .eeh-assessment-header p {
        font-size: 1rem;
    }
    
    .section-fields {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    /* Children DOB fields mobile layout */
    #children-dob-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-navigation {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-prev-tab,
    .btn-next-tab,
    .btn-submit-assessment {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .tab-header h3 {
        font-size: 1.5rem;
    }
    
    .form-field input[type="text"],
    .form-field input[type="email"],
    .form-field input[type="tel"],
    .form-field input[type="number"],
    .form-field input[type="date"],
    .form-field select,
    .form-field textarea {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 992px) {
    .eeh-assessment-container {
        max-width: 95%;
        margin: 1rem auto;
    }
    
    .section-fields {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .eeh-assessment-content {
        padding: 1.75rem;
    }
}

/* Desktop Responsive */
@media (min-width: 993px) and (max-width: 1200px) {
    .eeh-assessment-container {
        max-width: 95%;
    }
}

/* Accessibility improvements */
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
    outline: 2px solid #1a5f7a;
    outline-offset: 2px;
}

.step-item:focus-visible {
    outline: 2px solid #1a5f7a;
    outline-offset: -2px;
}

/* Smooth transitions - REMOVE border-color transition to prevent animated vertical line */
* {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Hidden Tab Styles */
.hidden-tab {
    display: none !important;
}

/* Conditional field visibility */
.form-field[data-conditional].hidden-field {
    display: none !important;
}

/* IELTS Academic Error Styling */
.ielts-academic-error {
    background-color: #ffebee !important;
    border-left: 4px solid #f44336 !important;
    padding: 12px 16px !important;
    margin: 16px 0 !important;
    border-radius: 4px !important;
    color: #c62828 !important;
    font-weight: bold !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
}

.error-highlight {
    border-left: 4px solid #f44336 !important;
    padding-left: 16px !important;
    background: rgba(244, 67, 54, 0.05) !important;
    border-radius: 0 10px 10px 0 !important;
}

.error-border {
    border-color: #f44336 !important;
    border-width: 2px !important;
    background: rgba(244, 67, 54, 0.02) !important;
}

.error-border:focus {
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.2) !important;
}

/* Personal Information Tab Validation Styling - BLUE THEME */
.tab[data-tab="1"] .form-field[required].error {
    animation: pulseError 0.5s ease;
}

.tab[data-tab="1"] .form-field[required].error input,
.tab[data-tab="1"] .form-field[required].error select {
    border-color: #1a5f7a; /* Blue theme */
    background: rgba(26, 95, 122, 0.05); /* Light blue */
}

.tab[data-tab="1"] .form-field[required].error label {
    color: #1a5f7a; /* Blue theme */
}

/* Pulse animation for required field errors - REMOVED */

/* Step item states - NO DIM EFFECT FOR ANY STATE - BLOCK CURSOR FOR NON-CLICKABLE TABS */
.step-item.pending {
    opacity: 1 !important;
    cursor: not-allowed !important;
}

.step-item.pending:hover {
    background: #f8f9fa !important;
    transform: none !important;
    cursor: not-allowed !important;
}

/* Keep text colors but ensure they're not too dim */
.step-item.pending .step-title {
    color: #6c757d !important; /* Lighter gray but not too dim */
    text-decoration: none !important;
}

.step-item.pending .step-number {
    background: #e9ecef !important;
    color: #6c757d !important; /* Lighter gray but not too dim */
    border-color: #dee2e6 !important;
}

.step-item.pending .step-description {
    color: #8e8e93 !important; /* Use the same color as other descriptions */
}

/* Ensure all child elements also show not-allowed cursor and block pointer events */
.step-item.pending *,
.step-item.incomplete * {
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* REMOVE LOCK ICON COMPLETELY */
/* No lock icon for pending tabs */

/* Current tab validation state */
.step-item.current.valid .step-validation {
    color: #2e8540;
}

.step-item.current.incomplete .step-validation {
    color: #ffc107;
}

.step-item.current.error .step-validation {
    color: #dc3545;
}

/* Make sure pending tabs don't get hover effects */
.step-item.pending,
.step-item.pending * {
    user-select: none !important;
}

/* Remove any filters for all tabs */
.step-item.pending .step-content {
    filter: none !important;
}

/* Style for incomplete tabs (previous tabs that need completion) */
.step-item.incomplete {
    cursor: not-allowed !important;
    opacity: 1 !important;
}

.step-item.incomplete:hover {
    background: #f8f9fa !important;
    border-left-color: #ffc107 !important;
    transform: none !important;
}

.step-item.incomplete .step-number {
    background: #ffc107 !important;
    color: #212529 !important;
    border-color: #ffc107 !important;
    opacity: 1 !important;
}

.step-item.incomplete .step-title {
    color: #856404 !important;
    opacity: 1 !important;
}

.step-item.incomplete .step-description {
    opacity: 1 !important;
}

.step-item.incomplete .step-validation {
    color: #ffc107 !important;
    opacity: 1 !important;
}

/* Make sure incomplete tabs don't get hover effects */
.step-item.incomplete,
.step-item.incomplete * {
    user-select: none !important;
}

/* Highlight current tab more strongly */
.step-item.current {
    background: #e6f3f8 !important;
    border-left-color: #1a5f7a !important;
    box-shadow: inset 0 0 0 2px rgba(26, 95, 122, 0.1);
}

/* Completed tabs - LIGHT SHADE FILL matching theme */
.step-item.completed {
    background: linear-gradient(90deg, rgba(26, 95, 122, 0.05), rgba(44, 139, 185, 0.05)) !important;
    border-left-color: #2e8540 !important;
    border-left-width: 4px !important;
    box-shadow: inset 0 0 10px rgba(46, 133, 64, 0.05);
}

/* Completed step number with light shade */
.step-item.completed .step-number {
    background: linear-gradient(135deg, #2e8540, #36a34f) !important;
    color: white !important;
    border-color: #2e8540 !important;
    box-shadow: 0 2px 4px rgba(46, 133, 64, 0.2);
}

/* Active hover only for clickable steps */
.step-item:not(.pending):not(.hidden-tab):hover {
    background: #f0f7ff !important;
    transition: background-color 0.2s ease;
}

/* COMPLETED TABS SHOULD NEVER BE DIM - keep them bright under ALL circumstances */
.step-item.completed {
    opacity: 1 !important;
    filter: none !important;
    background: linear-gradient(90deg, rgba(26, 95, 122, 0.05), rgba(44, 139, 185, 0.05)) !important;
    border-left-color: #2e8540 !important;
    border-left-width: 4px !important;
    box-shadow: inset 0 0 10px rgba(46, 133, 64, 0.05) !important;
}

.step-item.completed * {
    opacity: 1 !important;
    filter: none !important;
}

/* Ensure completed tabs override any other styling */
.step-item.completed,
.step-item.completed:hover,
.step-item.completed:focus,
.step-item.completed:active {
    opacity: 1 !important;
    filter: none !important;
    background: linear-gradient(90deg, rgba(26, 95, 122, 0.05), rgba(44, 139, 185, 0.05)) !important;
}

/* COMPLETED FORM FIELDS - LIGHT SHADE FILL */
.form-field.completed {
    background: linear-gradient(90deg, rgba(26, 95, 122, 0.03), rgba(44, 139, 185, 0.03)) !important;
    border-left: 4px solid rgba(44, 139, 185, 0.3) !important;
    padding-left: 16px;
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
}

.form-field.completed input,
.form-field.completed select,
.form-field.completed textarea {
    background: rgba(44, 139, 185, 0.05) !important;
    border-color: rgba(44, 139, 185, 0.3) !important;
}

.form-field.completed label {
    color: #2c8bb9 !important; /* Slightly lighter blue */
    font-weight: 600;
}

.form-field.completed .field-help {
    color: rgba(44, 139, 185, 0.7) !important;
}

/* Remove error styling when field is completed */
.form-field.completed.error {
    border-left-color: rgba(44, 139, 185, 0.3) !important;
    background: linear-gradient(90deg, rgba(26, 95, 122, 0.03), rgba(44, 139, 185, 0.03)) !important;
}

.form-field.completed.error input,
.form-field.completed.error select,
.form-field.completed.error textarea {
    border-color: rgba(44, 139, 185, 0.3) !important;
    background: rgba(44, 139, 185, 0.05) !important;
}

/* Enhanced validation message styling */
.form-field .validation-message {
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    display: block;
    padding: 0.375rem 0.5rem;
    border-radius: 4px;
}

.form-field .validation-message.error {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
    border-left: 3px solid #dc3545;
}

.form-field .validation-message.success {
    color: #2e8540;
    background: rgba(46, 133, 64, 0.05);
    border-left: 3px solid #2e8540;
}

/* Tab navigation restriction styling - NO LOCK ICONS */
.step-item.locked {
    position: relative;
}

/* No lock icon */
.step-item.locked::after {
    content: "";
}

/* Mobile optimization for validation messages */
@media (max-width: 768px) {
    .ielts-academic-error {
        padding: 1rem !important;
        font-size: 0.875rem !important;
        margin: 1rem 0 !important;
    }
    
    .error-highlight {
        padding-left: 12px !important;
        margin-left: -12px !important;
    }
}
