/* 
 * Loan Application Form Styles - Unified Interface Design
 * Corporate Color: #ffc107 (Amber/Gold)
 * Compatible with Bootstrap and Template CSS
 */

/* ========================================
   MAIN WRAPPER & CARD STRUCTURE
   ======================================== */

.loan-form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.loan-form-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* ========================================
   INTERNAL HEADER SECTION
   ======================================== */

.form-header-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 30px 40px 25px;
    position: relative;
}

.form-header-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffc107, #e0a800, #ffc107);
}

.form-title-row {
    margin-bottom: 15px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffc107;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 193, 7, 0.05);
}

.back-link:hover {
    background: #ffc107;
    color: #1a1a2e;
    border-color: #ffc107;
    transform: translateX(-3px);
}

.back-link i {
    font-size: 0.85rem;
}

.main-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.main-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

/* ========================================
   HORIZONTAL PROGRESS TRACKER
   ======================================== */

.progress-tracker-container {
    background: #fafbfc;
    padding: 25px 30px;
    border-bottom: 1px solid #eef0f2;
}

.progress-tracker {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 0 10px;
}

.progress-track-line {
    position: absolute;
    top: 20px;
    left: 35px;
    right: 35px;
    height: 4px;
    background: #e0e5eb;
    border-radius: 2px;
    z-index: 1;
}

.progress-track-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107 0%, #28a745 100%);
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e5eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #8896a6;
    transition: all 0.4s ease;
    border: 3px solid #e0e5eb;
    position: relative;
}

.step-indicator.active {
    background: #ffc107;
    color: #1a1a2e;
    border-color: #ffc107;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    transform: scale(1.1);
}

.step-indicator.completed {
    background: #28a745;
    border-color: #28a745;
    color: #ffffff;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    display: none;
    font-size: 0.9rem;
}

.step-indicator.completed .step-number {
    display: none;
}

.step-indicator.completed .step-icon {
    display: block;
}

.step-label {
    margin-top: 12px;
    font-size: 0.7rem;
    color: #8896a6;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    max-width: 70px;
    line-height: 1.3;
}

.progress-step.active .step-label {
    color: #ffc107;
    font-weight: 600;
}

.progress-step.completed .step-label {
    color: #28a745;
}

/* Mobile Progress Info */
.mobile-progress-info {
    display: none;
    margin-top: 15px;
    text-align: center;
}

#currentStepLabel {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.mobile-progress-bar {
    height: 6px;
    background: #e0e5eb;
    border-radius: 3px;
    overflow: hidden;
    max-width: 300px;
    margin: 0 auto;
}

.mobile-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107 0%, #28a745 100%);
    width: 12.5%;
    transition: width 0.5s ease;
    border-radius: 3px;
}

/* ========================================
   FORM CONTENT AREA
   ======================================== */

.form-content-area {
    padding: 30px 40px;
    min-height: 400px;
}

/* Step Transitions */
.form-step {
    display: none;
    animation: fadeSlideIn 0.4s ease;
}

.form-step.active {
    display: block;
}

.form-step.exiting {
    animation: fadeSlideOut 0.2s ease forwards;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

/* Step Header */
.step-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f2f5;
}

.step-badge {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #1a1a2e;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.step-info h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 5px 0;
}

.step-info p {
    color: #8896a6;
    font-size: 0.95rem;
    margin: 0;
}

/* Section Dividers */
.section-divider {
    display: flex;
    align-items: center;
    margin: 25px 0 20px;
    padding-top: 10px;
}

.section-divider::before {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e5eb);
}

.section-label {
    padding: 0 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffc107;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #e0e5eb, transparent);
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

/* Form Groups */
.form-group {
    margin-bottom: 5px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.form-group .required {
    color: #e53e3e;
    margin-left: 3px;
}

/* Input Wrapper with Icons */
.input-wrapper {
    position: relative;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #2d3748;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
    color: #a0aec0;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: #ffc107;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.1);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper select:focus + .input-icon,
.input-wrapper textarea:focus + .input-icon {
    color: #ffc107;
}

.input-wrapper select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.input-wrapper textarea {
    min-height: 100px;
    resize: vertical;
    padding-top: 15px;
}

.input-wrapper.readonly input,
.input-wrapper.readonly input:focus {
    background: #edf2f7;
    border-color: #e2e8f0;
    cursor: not-allowed;
    box-shadow: none;
}

.input-wrapper.readonly .input-icon {
    color: #cbd5e0;
}

.input-wrapper.highlight input {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #ffc107;
}

/* Error States */
.form-group.error .input-wrapper input,
.form-group.error .input-wrapper select,
.form-group.error .input-wrapper textarea {
    border-color: #e53e3e;
    background: #fff5f5;
}

.form-group.error .input-wrapper input:focus,
.form-group.error .input-wrapper select:focus,
.form-group.error .input-wrapper textarea:focus {
    box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.1);
}

.error-message {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: 8px;
    display: none;
    font-weight: 500;
}

.form-group.error .error-message {
    display: block;
}

/* Terms Section Error State */
.terms-section.error {
    border-color: #e53e3e;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

.terms-section.error .checkbox-wrapper {
    border-color: #e53e3e;
}

.terms-section.error .error-message {
    display: block;
    margin-top: 10px;
}

/* Signature Section Error State */
.signature-section.error {
    border-color: #e53e3e;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

.signature-section.error .signature-wrapper canvas {
    border-color: #e53e3e;
}

.signature-section.error .error-message {
    display: block;
    margin-top: 10px;
}

/* Highlight Fields */
.highlight-field {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #fcd34d;
}

.highlight-field label {
    color: #92400e;
}

/* ========================================
   FILE UPLOAD STYLES
   ======================================== */

.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label i {
    font-size: 2rem;
    color: #a0aec0;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.file-upload-label .file-text {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
}

.file-upload-label .file-formats {
    font-size: 0.75rem;
    color: #a0aec0;
    margin-top: 5px;
}

.file-upload-label:hover {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #ffc107;
}

.file-upload-label:hover i {
    color: #ffc107;
}

.file-upload-label.has-file {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    border-color: #48bb78;
    border-style: solid;
}

.file-upload-label.has-file i {
    color: #48bb78;
}

.file-upload-label.has-file .file-text {
    color: #276749;
}

/* ========================================
   RADIO BUTTONS
   ======================================== */

.radio-group-horizontal {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-option {
    flex: 1;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option label i {
    font-size: 1.2rem;
    color: #a0aec0;
    transition: color 0.3s ease;
}

.radio-option label span {
    font-weight: 500;
    color: #4a5568;
}

.radio-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #ffc107;
}

.radio-option input[type="radio"]:checked + label i {
    color: #ffc107;
}

.radio-option input[type="radio"]:checked + label span {
    color: #92400e;
}

/* ========================================
   SIGNATURE SECTION
   ======================================== */

.signature-section {
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.signature-wrapper {
    position: relative;
    margin: 15px 0;
}

.signature-wrapper canvas {
    width: 100%;
    height: 150px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    cursor: crosshair;
    touch-action: none;
}

.signature-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-clear {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #e2e8f0;
    border: none;
    border-radius: 8px;
    color: #4a5568;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background: #cbd5e0;
    color: #2d3748;
}

.signature-instruction {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 12px 15px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
}

.signature-instruction i {
    color: #ffc107;
    font-size: 1rem;
}

.signature-instruction span {
    font-size: 0.85rem;
    color: #92400e;
}

/* ========================================
   REVIEW SECTION
   ======================================== */

.review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.review-card {
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #edf2f7;
    border-bottom: 1px solid #e2e8f0;
}

.review-card-header i {
    font-size: 1.1rem;
    color: #ffc107;
}

.review-card-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.review-card-header.highlight {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-bottom-color: #fcd34d;
}

.review-card-header.highlight h4 {
    color: #92400e;
}

.review-card-body {
    padding: 15px 20px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #edf2f7;
}

.review-item:last-child {
    border-bottom: none;
}

.review-item .label {
    color: #718096;
    font-size: 0.85rem;
}

.review-item .value {
    color: #2d3748;
    font-weight: 500;
    font-size: 0.85rem;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.review-item .value.highlight {
    color: #ffc107;
    font-weight: 700;
}

.review-item.total {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    margin: 10px -20px -15px;
    padding: 15px 20px;
    border-radius: 0 0 12px 12px;
    border-bottom: none;
}

.review-item.total .value {
    font-size: 1.1rem;
    color: #92400e;
}

.review-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 10px;
    color: #ffffff;
}

.review-note i {
    color: #ffc107;
    font-size: 1.1rem;
    margin-top: 2px;
}

.review-note p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   TERMS CHECKBOX
   ======================================== */

.terms-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f2f5;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.checkbox-wrapper .checkmark {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    cursor: pointer;
    position: relative;
}

.checkbox-wrapper:hover .checkmark {
    border-color: #ffc107;
    background: #fffbeb;
}

.checkbox-wrapper input[type="checkbox"]:checked + label .checkmark {
    background: #ffc107;
    border-color: #ffc107;
}

.checkbox-wrapper input[type="checkbox"]:checked + label .checkmark::after {
    content: '✓';
    position: absolute;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: bold;
}

.checkbox-wrapper label {
    cursor: pointer;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #4a5568;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
}

.terms-link {
    color: #ffc107;
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover {
    text-decoration: underline;
}

/* ========================================
   INTEGRATED NAVIGATION BAR
   ======================================== */

.form-footer-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: #fafbfc;
    border-top: 1px solid #eef0f2;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-nav span {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-nav i {
    font-size: 0.9rem;
}

.btn-prev {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-prev:hover {
    background: #cbd5e0;
    transform: translateX(-3px);
}

.btn-next {
    background: #ffc107;
    color: #1a1a2e;
}

.btn-next:hover {
    background: #e0a800;
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.btn-submit {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
}

.btn-submit:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.step-indicator-text {
    font-size: 0.9rem;
    color: #8896a6;
    font-weight: 500;
}

/* ========================================
   LOADING OVERLAY
   ======================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    text-align: center;
    color: #ffffff;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #ffc107;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-top-color: transparent;
    border-right-color: #ffc107;
    animation-duration: 1s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-top-color: transparent;
    border-left-color: #ffc107;
    animation-duration: 0.5s;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-content h3 {
    color: #ffc107;
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 600;
}

.loading-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .review-grid {
        grid-template-columns: 1fr;
    }
    
    .radio-group-horizontal {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .loan-form-wrapper {
        padding: 10px;
    }
    
    .form-header-section {
        padding: 25px 20px 20px;
    }
    
    .main-title {
        font-size: 1.6rem;
    }
    
    .progress-tracker {
        display: none;
    }
    
    .mobile-progress-info {
        display: block;
    }
    
    .progress-tracker-container {
        padding: 15px 20px;
    }
    
    .form-content-area {
        padding: 20px;
    }
    
    .step-header {
        flex-direction: row;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .step-badge {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .step-info h2 {
        font-size: 1.2rem;
    }
    
    .form-footer-nav {
        flex-wrap: wrap;
        gap: 15px;
        padding: 20px;
    }
    
    .btn-nav {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    
    .step-indicator-text {
        order: -1;
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }
    
    .form-footer-nav .btn-prev,
    .form-footer-nav .btn-next,
    .form-footer-nav .btn-submit {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .form-header-section {
        padding: 20px 15px 15px;
    }
    
    .main-title {
        font-size: 1.4rem;
    }
    
    .back-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .form-content-area {
        padding: 15px;
    }
    
    .step-header {
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    .step-badge {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .step-info h2 {
        font-size: 1.1rem;
    }
    
    .step-info p {
        font-size: 0.85rem;
    }
    
    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea {
        padding: 12px 15px 12px 42px;
        font-size: 0.9rem;
    }
    
    .input-wrapper .input-icon {
        font-size: 0.9rem;
        left: 12px;
    }
    
    .file-upload-label {
        padding: 20px 15px;
    }
    
    .file-upload-label i {
        font-size: 1.5rem;
    }
    
    .signature-wrapper canvas {
        height: 120px;
    }
    
    .review-card-header,
    .review-card-body {
        padding: 12px 15px;
    }
    
    .form-footer-nav {
        padding: 15px;
    }
}

/* ========================================
   ACCESSIBILITY & PRINT
   ======================================== */

/* Print Styles */
@media print {
    .form-footer-nav,
    .loading-overlay,
    .back-link,
    .progress-tracker-container {
        display: none !important;
    }
    
    .loan-form-card {
        box-shadow: none;
        border-radius: 0;
    }
    
    .form-content-area {
        padding: 0;
    }
    
    .form-step {
        display: block !important;
        page-break-inside: avoid;
        margin-bottom: 30px;
    }
    
    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea {
        border: 1px solid #000;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        border-width: 3px;
    }
    
    .step-indicator {
        border-width: 3px;
    }
    
    .btn-nav {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .form-step,
    .form-step.exiting,
    .btn-nav,
    .step-indicator,
    .progress-track-fill,
    .mobile-progress-fill {
        transition: none;
        animation: none;
    }
}
