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

.file-upload-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border: 2px dashed var(--color-border);
    border-radius: 8px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 120px;
}

.file-upload-label:hover {
    border-color: var(--color-primary);
    background-color: rgba(var(--color-primary-rgb), 0.05);
}

.file-upload-label i {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.file-upload-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 5px;
}

.file-upload-name {
    font-size: 12px;
    color: var(--color-body);
    word-break: break-all;
    max-width: 100%;
}

.file-upload-input:focus+.file-upload-label {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.25);
}

.file-upload-input:valid+.file-upload-label .file-upload-name {
    color: var(--color-primary);
    font-weight: 500;
}

/* Radio Button Styles */
.gender-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.gender-radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gender-radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.gender-radio-item label {
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

/* Signature Canvas Styles */
.signature-wrapper {
    border: 2px solid var(--color-border);
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    margin-top: 10px;
    width: 100%;
    display: block;
    visibility: visible;
    opacity: 1;
}

#signatureCanvas {
    border: 1px dashed #ccc;
    border-radius: 4px;
    cursor: crosshair;
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    height: 200px;
    background-color: #fafafa;
    touch-action: none !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
    pointer-events: auto !important;
}

.signature-controls {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.signature-controls button {
    padding: 8px 20px;
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.signature-controls button:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Signature Options Tabs */
.signature-options {
    margin-bottom: 20px;
}

.signature-option-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.signature-tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: 2px solid var(--color-border);
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--color-body);
}

.signature-tab-btn:hover {
    border-color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.05);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.signature-tab-btn.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0056b3 100%);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.signature-tab-btn.active i {
    color: #fff;
}

.signature-tab-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.signature-tab-btn:hover i {
    transform: scale(1.1);
}

.signature-mode-wrapper {
    width: 100%;
}

/* Study Mode Checkboxes */
.study-mode-checkboxes {
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: #f8f9fa;
}

.study-mode-checkboxes .form-check {
    margin-bottom: 8px;
}

.study-mode-checkboxes .form-check:last-child {
    margin-bottom: 0;
}

.study-mode-checkboxes .form-check-input {
    margin-top: 0.4em;
    cursor: pointer;
}

.study-mode-checkboxes .form-check-label {
    cursor: pointer;
    font-weight: 500;
    color: var(--color-heading);
    margin-left: 8px;
}

.study-mode-checkboxes .form-check-input:checked ~ .form-check-label {
    color: var(--color-primary);
}

/* Checkbox Styles */
.confirmation-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.confirmation-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.confirmation-checkbox label {
    margin: 0;
    cursor: pointer;
}

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

/* Voice Typing Styles */
.input-with-voice {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-voice input {
    padding-right: 50px;
    width: 100%;
}

.voice-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    z-index: 10;
}

.voice-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.voice-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.voice-btn i {
    color: #fff;
    font-size: 18px;
}

.voice-btn.listening {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    animation: pulse 1.5s ease-in-out infinite;
}

.voice-btn.listening i {
    animation: pulse-icon 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(220, 53, 69, 0.6);
    }
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.voice-status {
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 12px;
    color: #007bff;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.voice-status.active {
    opacity: 1;
}

.voice-status.listening {
    color: #dc3545;
}

/* Camera Upload Styles - Modern Design */
.camera-upload-container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.camera-upload-container:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.camera-upload-actions {
    display: flex !important;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
    visibility: visible !important;
    opacity: 1 !important;
}

.camera-btn, .gallery-btn {
    flex: 1;
    min-width: 140px;
    padding: 14px 20px;
    border: none;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff !important;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
    visibility: visible !important;
    opacity: 1 !important;
}

.camera-btn::before, .gallery-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.camera-btn:hover::before, .gallery-btn:hover::before {
    width: 300px;
    height: 300px;
}

.camera-btn:hover, .gallery-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.camera-btn:active, .gallery-btn:active {
    transform: translateY(0);
}

.gallery-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.gallery-btn:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.camera-btn i, .gallery-btn i {
    font-size: 20px;
    position: relative;
    z-index: 1;
    color: #fff !important;
}

.camera-btn span, .gallery-btn span {
    position: relative;
    z-index: 1;
    color: #fff !important;
}

.file-preview-container {
    margin-top: 20px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.file-preview-container.active {
    display: block;
}

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

.file-preview-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 15px;
    border: 2px dashed var(--color-primary);
    position: relative;
}

.file-preview-image {
    max-width: 100%;
    max-height: 250px;
    border-radius: 10px;
    border: 3px solid #fff;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    object-fit: contain;
    background: #fff;
}

.file-preview-filename {
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-preview-filename i {
    font-size: 16px;
}

.file-preview-remove {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.file-preview-remove:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.file-preview-remove:active {
    transform: translateY(0);
}

/* Camera Modal Styles - Modern Design */
.camera-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: fadeInModal 0.3s ease;
}

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

.camera-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.camera-modal-content {
    background: #fff;
    padding: 0;
    border-radius: 20px;
    max-width: 95%;
    max-height: 95vh;
    width: 700px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUpModal 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.camera-modal-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    visibility: visible !important;
    opacity: 1 !important;
}

.camera-modal-header h3 {
    margin: 0;
    color: #fff !important;
    font-size: 20px;
    font-weight: 600;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.camera-modal-close {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-size: 28px;
    cursor: pointer;
    color: #fff !important;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1;
    font-weight: 300;
}

.camera-modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
    transform: rotate(90deg);
    color: #fff !important;
}

.camera-preview-wrapper {
    width: 100%;
    padding: 30px;
    background: #000;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-height: 400px;
    max-height: 60vh;
    flex: 1;
}

#camera-preview {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#camera-preview video,
#camera-preview canvas {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

#camera-preview > * {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
}

.camera-controls {
    display: flex !important;
    gap: 15px;
    width: 100%;
    padding: 25px 30px;
    justify-content: center;
    background: #f8f9fa;
    visibility: visible !important;
    opacity: 1 !important;
}

.camera-capture-btn, .camera-cancel-btn, .camera-flip-btn, .camera-switch-btn {
    padding: 14px 35px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    justify-content: center;
}

.camera-flip-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
    visibility: visible !important;
    opacity: 1 !important;
}

.camera-flip-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    color: #fff !important;
}

.camera-flip-btn:active {
    transform: translateY(-1px);
}

.camera-flip-btn i,
.camera-flip-btn span {
    color: #fff !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.camera-flip-btn i {
    transition: transform 0.3s ease;
}

.camera-flip-btn:active i {
    transform: rotate(180deg);
}

.camera-capture-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    visibility: visible !important;
    opacity: 1 !important;
}

.camera-capture-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    color: #fff !important;
}

.camera-capture-btn:active {
    transform: translateY(-1px);
}

.camera-capture-btn i,
.camera-capture-btn span {
    color: #fff !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.camera-cancel-btn {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    visibility: visible !important;
    opacity: 1 !important;
}

.camera-cancel-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    color: #fff !important;
}

.camera-cancel-btn:active {
    transform: translateY(-1px);
}

.camera-cancel-btn i,
.camera-cancel-btn span {
    color: #fff !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Form Container Styles */
.form-container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 40px;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Confirmation Section Highlight */
.confirmation-section {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
    position: relative;
}

.confirmation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 50%, #ffc107 100%);
    border-radius: 12px 12px 0 0;
}

.confirmation-section .section-title {
    color: #856404;
    border-bottom-color: #ffc107;
    font-weight: 800;
}

.confirmation-section .confirmation-checkbox {
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

.confirmation-section .confirmation-checkbox:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #ffc107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
    transform: translateX(5px);
}

.confirmation-section .confirmation-checkbox:last-child {
    margin-bottom: 0;
}

/* How to Fill Form Section - Compact */
.how-to-fill-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
    margin-bottom: 30px;
}

.how-to-fill-section .section-title {
    color: #1565c0;
    border-bottom-color: #2196f3;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 12px;
    padding-bottom: 8px;
}

.language-selection-wrapper {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.language-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 12px;
    text-align: center;
}

.language-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 13px;
    color: #424242;
    min-width: 110px;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.language-btn:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(33, 150, 243, 0.3);
    color: #1565c0;
}

.language-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.language-btn:hover i {
    transform: scale(1.1);
}

.language-btn.active {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border-color: #1976d2;
    color: #fff;
    box-shadow: 0 3px 12px rgba(33, 150, 243, 0.4);
}

.language-btn.active i {
    color: #fff;
}

.instruction-text-wrapper {
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.instruction-text {
    font-size: 13px;
    line-height: 1.8;
    color: #424242;
    white-space: pre-line;
    text-align: left;
}

.audio-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.stop-audio-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.stop-audio-btn {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: #fff;
}

.stop-audio-btn:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244, 67, 54, 0.4);
}

.stop-audio-btn:active {
    transform: translateY(0);
}

.stop-audio-btn i {
    font-size: 14px;
}

.stop-audio-btn {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: #fff;
}

.stop-audio-btn:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.stop-audio-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .how-to-fill-section {
        padding: 15px;
    }
    
    .language-selection-wrapper {
        padding: 12px;
    }
    
    .language-options {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .language-btn {
        width: 100%;
        padding: 10px 18px;
    }
    
    .instruction-text-wrapper {
        padding: 12px;
        margin-top: 12px;
        margin-bottom: 12px;
    }
    
    .instruction-text {
        font-size: 12px;
        line-height: 1.7;
    }
    
    .audio-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .stop-audio-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
    }
}

.form-submit-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    text-align: center;
}

.submit-btn {
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.wizard-steps {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 40px;
    position: relative;
    padding: 0 10px;
    flex-wrap: nowrap !important;
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
    box-sizing: border-box;
    visibility: visible !important;
    opacity: 1 !important;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e0e0e0;
    z-index: 1;
}

.wizard-step {
    flex: 1 1 0 !important;
    min-width: 0;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative;
    z-index: 2;
    padding: 0 2px;
    visibility: visible !important;
    opacity: 1 !important;
}

.wizard-step-number {
    width: clamp(30px, 8vw, 50px);
    height: clamp(30px, 8vw, 50px);
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: clamp(12px, 2.5vw, 18px);
    margin-bottom: clamp(5px, 1.5vw, 10px);
    transition: all 0.3s ease;
    border: clamp(2px, 0.5vw, 3px) solid #e0e0e0;
    flex-shrink: 0;
}

.wizard-step.active .wizard-step-number {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    transform: scale(1.1);
}

.wizard-step.completed .wizard-step-number {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    border-color: #28a745;
}

.wizard-step-label {
    font-size: clamp(8px, 1.5vw, 12px);
    font-weight: 600;
    color: #999;
    text-align: center;
    transition: all 0.3s ease;
    max-width: 100%;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
}

.wizard-step.active .wizard-step-label {
    color: #007bff;
    font-weight: 700;
}

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

/* Wizard styles removed - form is now single page */

@media (max-width: 768px) {
    .camera-modal {
        padding: 0;
    }

    .camera-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    .camera-modal.active {
        padding: 0;
        align-items: stretch;
    }

    .camera-modal-header {
        padding: 15px 20px;
        flex-shrink: 0;
    }

    .camera-modal-header h3 {
        font-size: 16px;
    }

    .camera-preview-wrapper {
        flex: 1;
        min-height: 0;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        max-height: calc(100vh - 200px);
    }

    #camera-preview {
        width: 100%;
        height: 100%;
        max-height: 100%;
    }

    #camera-preview video,
    #camera-preview canvas {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        object-fit: cover;
    }

    .camera-controls {
        padding: 15px 10px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        flex-shrink: 0;
        justify-content: center;
    }

    .camera-capture-btn, .camera-cancel-btn, .camera-flip-btn, .camera-switch-btn {
        width: calc(50% - 4px);
        min-width: auto;
        padding: 12px 15px;
        font-size: 13px;
    }

    .camera-capture-btn {
        width: 100%;
        order: 1;
    }

    .camera-switch-btn, .camera-flip-btn {
        order: 2;
    }

    .camera-cancel-btn {
        order: 3;
    }
}

@media (max-width: 480px) {
    .camera-modal-header {
        padding: 12px 15px;
    }

    .camera-modal-header h3 {
        font-size: 14px;
    }

    .camera-preview-wrapper {
        padding: 5px;
        max-height: calc(100vh - 180px);
    }

    .camera-controls {
        padding: 10px 5px;
        gap: 6px;
    }

    .camera-capture-btn, .camera-cancel-btn, .camera-flip-btn, .camera-switch-btn {
        padding: 10px 12px;
        font-size: 12px;
    }

    .camera-capture-btn span,
    .camera-cancel-btn span,
    .camera-flip-btn span,
    .camera-switch-btn span {
        font-size: 11px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .camera-modal-content {
        max-height: 100vh;
    }

    .camera-preview-wrapper {
        max-height: calc(100vh - 150px);
        padding: 5px;
    }

    .camera-controls {
        padding: 10px;
        flex-wrap: nowrap;
    }

    .camera-capture-btn, .camera-cancel-btn, .camera-flip-btn, .camera-switch-btn {
        width: auto;
        flex: 1;
        min-width: 80px;
        padding: 10px 15px;
    }

    .camera-capture-btn {
        flex: 1.5;
    }
}

@media (max-width: 768px) {
    .camera-upload-actions {
        flex-direction: column;
    }

    .camera-btn, .gallery-btn {
        width: 100%;
    }

    .wizard-steps {
        flex-wrap: nowrap !important;
        padding: 0 5px;
        overflow-x: visible;
        width: 100%;
        box-sizing: border-box;
    }

    .wizard-step {
        flex: 1 1 0 !important;
        min-width: 0;
        max-width: none;
        margin-bottom: 0;
        padding: 0 1px;
    }

    .wizard-step-number {
        width: clamp(28px, 7vw, 35px);
        height: clamp(28px, 7vw, 35px);
        font-size: clamp(11px, 2.2vw, 14px);
        margin-bottom: clamp(3px, 1vw, 5px);
        border-width: clamp(2px, 0.4vw, 2px);
    }

    .wizard-step-label {
        font-size: clamp(7px, 1.3vw, 9px);
        max-width: 100%;
        line-height: 1.1;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        padding: 0 1px;
    }

    .wizard-steps::before {
        top: clamp(14px, 4vw, 16px);
        height: clamp(2px, 0.5vw, 2px);
    }

    .wizard-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .wizard-btn {
        width: 100%;
    }

    .form-wizard-container {
        padding: 20px 15px;
    }
}

/* Wizard Error Styles */
.error-field {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.wizard-error-message {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.gender-radio-group.error-field {
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 10px;
    background: rgba(220, 53, 69, 0.05);
}
