/* Multi-step Form Styles with Tailwind CSS */
.form-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
}

/* Global Layout Fixes */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background-color: #f9fafb;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header Styles */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000;
}

.brand-icon {
    height: 24px;
    color: #000;
    margin-right: 8px;
}

.brand-text {
    font-weight: bold;
    color: #000;
    transition: color 0.3s ease;
}

.brand-link:hover .brand-text {
    color: #0073e6;
}

.page-title {
    color: #555;
    font-weight: normal;
}

.min-h-screen {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    background: linear-gradient(135deg, #f9fafb 0%, #f1f5f9 100%);
}

/* Container fixes */
.container, .max-w-4xl {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Step Indicator with Tailwind styling */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 0 24px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #bfdbfe;
}

.step-indicator .step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 12px;
}

.step-indicator .step::before {
    content: attr(data-step);
    display: block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #64748b;
    border-radius: 50%;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
}

.step-indicator .step.active::before {
    background: linear-gradient(135deg, #167cfb 0%, #3b82f6 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px -5px rgba(22, 124, 251, 0.4);
    border-color: #167cfb;
}

.step-indicator .step.completed::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    content: "✓";
    font-size: 18px;
    box-shadow: 0 8px 25px -5px rgba(16, 185, 129, 0.4);
    border-color: #10b981;
}

.step-indicator .step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e9ecef;
    z-index: -1;
}

.step-indicator .step:last-child::after {
    display: none;
}

.step-indicator .step.completed::after {
    background: #28a745;
}

.step-indicator .step-title {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step-indicator .step.active .step-title {
    color: #167cfb;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(22, 124, 251, 0.1);
}

.step-indicator .step.completed .step-title {
    color: #10b981;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(16, 185, 129, 0.1);
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

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

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

.form-step h2 {
    color: #1e293b;
    margin-bottom: 24px;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #167cfb 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(22, 124, 251, 0.1);
}

.form-step p.step-description {
    color: #64748b;
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 1.6;
    background: #eff6ff;
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 4px solid #167cfb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Form Groups with enhanced styling */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
    position: relative;
}

.form-group label.required::after {
    content: " *";
    color: #ef4444;
    font-weight: 700;
}

.form-group label::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: linear-gradient(135deg, #167cfb 0%, #3b82f6 100%);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-group:focus-within label::before {
    opacity: 1;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    outline: none;
    border-color: #167cfb;
    box-shadow: 0 0 0 3px rgba(22, 124, 251, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    background: #ffffff;
}

.form-control.is-valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-control.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 5px;
    font-size: 14px;
    color: #dc3545;
}

.validation-feedback {
    display: block;
    width: 100%;
    margin-top: 5px;
    font-size: 14px;
    color: #dc3545;
}

/* Checkbox and Radio Groups with Tailwind styling */
.checkbox-group, .radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.checkbox-item, .radio-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.checkbox-item::before, .radio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(22, 124, 251, 0.05), transparent);
    transition: left 0.5s;
}

.checkbox-item:hover::before, .radio-item:hover::before {
    left: 100%;
}

.checkbox-item:hover, .radio-item:hover {
    border-color: #167cfb;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 124, 251, 0.15);
}

.checkbox-item input, .radio-item input {
    margin-right: 12px;
    transform: scale(1.3);
    accent-color: #167cfb;
}

.checkbox-item input:checked + label,
.radio-item input:checked + label {
    font-weight: 600;
    color: #167cfb;
    text-shadow: 0 1px 2px rgba(22, 124, 251, 0.1);
}

.checkbox-item:has(input:checked),
.radio-item:has(input:checked) {
    border-color: #167cfb;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 4px 12px rgba(22, 124, 251, 0.2);
    transform: translateY(-1px);
}

/* Photo Upload with modern Tailwind styling */
.photo-upload-area {
    border: 3px dashed #cbd5e1;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.photo-upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.photo-upload-area:hover::before {
    opacity: 1;
}

.photo-upload-area > * {
    position: relative;
    z-index: 2;
}

.photo-upload-area:hover {
    border-color: #167cfb;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(22, 124, 251, 0.25);
}

.photo-upload-area.dragover {
    border-color: #167cfb;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: scale(1.02);
    box-shadow: 0 15px 35px -5px rgba(22, 124, 251, 0.3);
}

.photo-upload-icon {
    font-size: 56px;
    background: linear-gradient(135deg, #167cfb 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.photo-upload-area:hover .photo-upload-icon {
    transform: scale(1.1) rotate(5deg);
}

.photo-upload-text {
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 18px;
}

.photo-upload-limit {
    font-size: 14px;
    color: #94a3b8;
    background: #eff6ff;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 8px;
}

.photo-count {
    font-weight: 700;
    background: linear-gradient(135deg, #167cfb 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
}

/* Photo Preview */
.photo-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.photo-item {
    position: relative;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.photo-thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.photo-name {
    display: block;
    padding: 8px;
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: none;
    background: rgba(220,53,69,0.9);
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.remove-photo:hover {
    background: #dc3545;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    max-width: 100%;
    width: 100%;
    position: relative;
    gap: 20px;
}

.form-navigation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0 20%, #e2e8f0 80%, transparent);
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    opacity: 0;
    transition: all 0.3s ease;
}

.btn-primary::after {
    border-left-color: rgba(255, 255, 255, 0.8);
}

.btn:hover::after {
    opacity: 1;
    right: 12px;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #167cfb 0%, #3b82f6 100%);
    color: white;
    border: 1px solid #167cfb;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(22, 124, 251, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #64748b;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #475569;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.15);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 18px;
    padding: 16px 40px;
    border: 1px solid #10b981;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Alerts with Tailwind styling */
.alert {
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid transparent;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
}

.alert-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #a7f3d0;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-success::before {
    background: #10b981;
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-color: #fca5a5;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-danger::before {
    background: #ef4444;
}

.alert-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
    color: #1e40af;
    border-left: 4px solid #167cfb;
}

.alert-info::before {
    background: #167cfb;
}

/* Progress Bar */
.progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.progress-bar {
    height: 100%;
    background-color: #007bff;
    transition: width 0.3s ease;
}

/* Enhanced Responsive Design with Tailwind approach */
@media (max-width: 768px) {
    .form-container {
        margin: 12px;
        padding: 20px;
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
        border-radius: 16px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }
    
    .container, .max-w-4xl {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
    }
    
    .step-indicator {
        padding: 16px 12px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: thin;
        scrollbar-color: #167cfb #f1f5f9;
    }
    
    .step-indicator::-webkit-scrollbar {
        height: 6px;
    }
    
    .step-indicator::-webkit-scrollbar-track {
        background: linear-gradient(90deg, #f1f5f9, #e2e8f0);
        border-radius: 3px;
    }
    
    .step-indicator::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #167cfb, #3b82f6);
        border-radius: 3px;
        box-shadow: 0 1px 2px rgba(22, 124, 251, 0.3);
    }
    
    .step-indicator .step {
        min-width: 140px;
        padding: 12px 16px;
    }
    
    .step-indicator .step::before {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 14px;
    }
    
    .step-indicator .step-title {
        font-size: 13px;
    }
    
    .checkbox-group, .radio-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .checkbox-item, .radio-item {
        padding: 14px 16px;
    }
    
    .photo-preview {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .form-navigation {
        flex-direction: column-reverse;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        margin-top: 28px;
        position: relative;
    }
    
    .btn {
        width: 100%;
        max-width: 100%;
        padding: 18px 24px;
        font-size: 17px;
        font-weight: 600;
        border-radius: 14px;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    /* Primary button (Dalej/Wyślij) gets priority positioning */
    .btn-primary, .btn-success {
        order: -1;
        background: linear-gradient(135deg, #167cfb 0%, #3b82f6 100%);
        box-shadow: 0 8px 25px -5px rgba(22, 124, 251, 0.4);
        transform: translateY(0);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .btn-primary:hover, .btn-success:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px -5px rgba(22, 124, 251, 0.5);
    }
    
    /* Secondary button (Wstecz) styling */
    .btn-secondary {
        order: 1;
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
        border: 2px solid #cbd5e1;
        color: #64748b;
        margin-top: 8px;
    }
    
    .btn-secondary:hover {
        background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
        border-color: #94a3b8;
        color: #475569;
    }
    
    .form-group label {
        font-size: 15px;
    }
    
    .form-control {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .photo-upload-area {
        padding: 32px 24px;
    }
    
    .photo-upload-icon {
        font-size: 48px;
    }
    
    .info-tooltip .tooltip-text {
        width: 240px;
        margin-left: -120px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .form-step h2 {
        font-size: 20px;
    }
    
    .step-indicator .step-title {
        display: none;
    }
    
    .photo-preview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .photo-thumbnail {
        height: 80px;
    }
}

/* Loading States with Tailwind styling */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
    overflow: hidden;
}

.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(22, 124, 251, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #167cfb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 2px 4px rgba(22, 124, 251, 0.2);
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Pulse animation for interactive elements */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Tooltips and Info with modern Tailwind styling */
.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 8px;
    cursor: help;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #93c5fd;
    border-radius: 50%;
    color: #167cfb;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-tooltip:hover {
    background: linear-gradient(135deg, #167cfb 0%, #3b82f6 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(22, 124, 251, 0.3);
}

.info-tooltip::before {
    content: '?';
    font-weight: 700;
    font-size: 11px;
}

.info-tooltip .tooltip-text {
    visibility: hidden;
    width: 280px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #f8fafc;
    text-align: left;
    border-radius: 12px;
    padding: 16px 20px;
    position: absolute;
    z-index: 1000;
    bottom: 140%;
    left: 50%;
    margin-left: -140px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-tooltip .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

.info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateY(-4px);
}

/* Info bubbles for form hints */
.info-bubble {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 8px;
    font-size: 14px;
    color: #1e40af;
    position: relative;
    box-shadow: 0 2px 4px rgba(22, 124, 251, 0.1);
}

.info-bubble::before {
    content: '💡';
    margin-right: 8px;
    font-size: 16px;
}

.info-bubble.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
    color: #92400e;
}

.info-bubble.warning::before {
    content: '⚠️';
}

.info-bubble.success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #10b981;
    color: #065f46;
}

.info-bubble.success::before {
    content: '✅';
}

/* Language switcher styles removed - using single language from .env */

/* Photo Upload Improvements */
.photo-upload-area {
    transition: all 0.3s ease;
}

.photo-upload-area:hover {
    border-color: #3b82f6;
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.photo-upload-icon {
    transition: transform 0.3s ease;
}

.photo-upload-area:hover .photo-upload-icon {
    transform: scale(1.1);
}

.photo-count {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.photo-info {
    animation: fadeInUp 0.5s ease-out;
}

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

.photo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.photo-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.remove-photo {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.remove-photo:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.1);
}

.photo-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 12px 8px 8px;
    font-size: 12px;
    text-align: center;
    border-radius: 0 0 8px 8px;
    backdrop-filter: blur(4px);
}

/* Tailwind-inspired Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Spacing utilities */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

/* Display utilities */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flexbox utilities */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

/* Color utilities */
.text-blue-600 { color: #167cfb; }
.text-gray-600 { color: #64748b; }
.text-gray-800 { color: #1e293b; }
.text-green-600 { color: #10b981; }
.text-red-600 { color: #ef4444; }
.text-yellow-600 { color: #f59e0b; }

/* Background utilities */
.bg-blue-50 { background-color: #eff6ff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-white { background-color: #ffffff; }

/* Border utilities */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-blue-200 { border-color: #93c5fd; }
.border-gray-200 { border-color: #e2e8f0; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* Shadow utilities */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

/* Width utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }

/* Font utilities */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

/* Submit loader styles */
.submit-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.loader-content p {
    margin: 0;
    color: #333;
    font-weight: 500;
}

/* Success actions styling */
.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn {
    min-width: 150px;
}

/* Summary Styles */
.summary-section {
    padding: 20px 0;
}

.summary-section h4 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.summary-section h4:first-child {
    margin-top: 0;
}

.summary-item {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    line-height: 1.5;
}

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

.summary-item strong {
    color: #1f2937;
    font-weight: 600;
    display: inline-block;
    min-width: 120px;
}

.summary-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.summary-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.summary-photo {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.summary-photo-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.summary-photo-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.summary-photo-item .summary-photo-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.summary-photo:hover .summary-photo-thumb {
    transform: scale(1.05);
}

/* Success Screen Styles */
.success-screen {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    border: 2px solid #0ea5e9;
    margin: 20px 0;
}

.success-content {
    max-width: 500px;
    margin: 0 auto;
}

.success-icon {
    margin-bottom: 20px;
}

.success-icon i {
    font-size: 64px;
    color: #10b981;
    animation: successPulse 2s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.success-screen h2 {
    color: #1e40af;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 0;
}

.success-message {
    color: #374151;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.submission-details {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.submission-number {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.submission-number h3 {
    color: #374151;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 0;
}

.number-display {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    color: #1e40af;
    background: #f1f5f9;
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px dashed #3b82f6;
    display: inline-block;
    letter-spacing: 2px;
}

.submission-summary {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.submission-summary h3 {
    color: #374151;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 0;
}

.submission-summary .summary-item {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.submission-summary .summary-item strong {
    color: #374151;
    font-weight: 600;
    display: inline-block;
    min-width: 140px;
}

.next-steps h3 {
    color: #374151;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 0;
}

.next-steps p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.success-actions {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.success-actions .btn-primary {
    background: #3b82f6;
    color: white;
}

.success-actions .btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.success-actions .btn-secondary {
    background: #6b7280;
    color: white;
}

.success-actions .btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

/* Error Screen Styles */
.error-screen {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 16px;
    border: 2px solid #ef4444;
    margin: 20px 0;
}

.error-content {
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    margin-bottom: 20px;
}

.error-icon i {
    font-size: 64px;
    color: #ef4444;
    animation: errorShake 0.5s ease-in-out;
}

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

.error-screen h2 {
    color: #dc2626;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 0;
}

.error-message {
    color: #374151;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
}

.error-actions {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.error-actions .btn-primary {
    background: #ef4444;
    color: white;
}

.error-actions .btn-primary:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.error-actions .btn-secondary {
    background: #6b7280;
    color: white;
}

.error-actions .btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

/* Submission Notifications */
.submission-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

.submission-notification.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: 1px solid #059669;
}

.submission-notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: 1px solid #dc2626;
}

.submission-notification .notification-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 12px;
}

.submission-notification .notification-content i {
    font-size: 20px;
    flex-shrink: 0;
}

.submission-notification .notification-content span {
    flex: 1;
    font-weight: 500;
    line-height: 1.4;
}

.submission-notification .notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.submission-notification .notification-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Print styles */
@media print {
    .form-navigation,
    .step-indicator,
    .submit-loader {
        display: none !important;
    }
    
    .form-container {
        box-shadow: none;
        border: none;
    }
    
    .success-message {
        page-break-inside: avoid;
    }
    
    .success-actions .btn:last-child {
        display: none;
    }
    
    .success-screen {
        background: white !important;
        border: 1px solid #000 !important;
    }
    
    .success-icon i {
        color: #000 !important;
    }
    
    .number-display {
        border: 2px solid #000 !important;
        background: #f5f5f5 !important;
    }
    
    .submission-notification {
        display: none !important;
    }
}