/* Cooperation Request Form Styles */

/* Form step transitions */
.form-step {
    transition: all 0.3s ease;
}

/* File upload area styles */
.file-upload-area {
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: #e9ba35;
    background-color: rgba(233, 186, 53, 0.05);
}

.file-upload-area.dragover {
    border-color: #e9ba35;
    background-color: rgba(233, 186, 53, 0.1);
}

/* RTL support for Material Icons */
[dir="rtl"] .material-symbols-outlined {
    transform: scaleX(-1);
}

/* Custom checkbox styling */
.custom-checkbox {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.custom-checkbox:checked {
    background-color: #e9ba35;
    border-color: #e9ba35;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Language switcher positioning */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

[dir="rtl"] .language-switcher {
    right: auto;
    left: 20px;
}

/* Step indicator styles */
.step-indicator.active {
    background-color: rgba(233, 186, 53, 0.1);
    border-color: #e9ba35;
}

.step-indicator.completed {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
}

/* Form field focus states */
.form-field:focus {
    border-color: #e9ba35;
    box-shadow: 0 0 0 3px rgba(233, 186, 53, 0.1);
}

/* Progress bar animation */
.progress-bar {
    transition: width 0.3s ease;
}

/* Button hover effects */
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 186, 53, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* File list item styles */
.file-item {
    transition: all 0.2s ease;
}

.file-item:hover {
    background-color: rgba(233, 186, 53, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .language-switcher {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        margin-bottom: 1rem;
        display: flex;
        justify-content: center;
    }
    
    [dir="rtl"] .language-switcher {
        right: auto;
        left: auto;
    }
    
    /* Add top margin to header to prevent overlap */
    .bg-white.dark\\:bg-gray-800.shadow-sm.border-b.border-gray-200.dark\\:border-gray-700 {
        margin-top: 1rem;
    }
    
    .form-step {
        padding: 1rem;
    }
    
    /* Ensure mobile language switcher doesn't interfere with content */
    .language-switcher.md\\:hidden {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        z-index: auto;
    }
}

/* Dark mode adjustments */
/* @media (prefers-color-scheme: dark) {
    .file-upload-area:hover {
        background-color: rgba(233, 186, 53, 0.1);
    }
    
    .file-item:hover {
        background-color: rgba(233, 186, 53, 0.1);
    }
} */

/* Animation for form steps */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step:not(.hidden) {
    animation: fadeIn 0.3s ease;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #e9ba35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Error states */
.field-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.form-control.border-red-500 {
    border-color: #dc3545 !important;
}

.form-control.border-red-500:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Success states */
.field-success {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .form-step,
    .file-upload-area,
    .progress-bar,
    .btn-primary,
    .btn-secondary,
    .btn-success,
    .file-item {
        transition: none;
    }
    
    .form-step:not(.hidden) {
        animation: none;
    }
    
    .loading::after {
        animation: none;
    }
}

/* Focus visible for better accessibility */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-success:focus-visible {
    outline: 2px solid #e9ba35;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .language-switcher,
    .btn-primary,
    .btn-secondary,
    .btn-success {
        display: none !important;
    }
    
    .form-step {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Cooperation types styling */
.cooperation-types-section .flex.items-center {
    transition: all 0.2s ease;
}

.cooperation-types-section .flex.items-center:hover {
    background-color: rgba(233, 186, 53, 0.05);
    border-color: #e9ba35;
}

.cooperation-types-section input[type="checkbox"]:checked + label {
    color: #e9ba35;
    font-weight: 600;
} 

/* Cooperation type selection styling */
.cooperation-type-option {
    transition: all 0.2s ease;
    cursor: pointer;
}

.cooperation-type-option:hover {
    background-color: rgba(233, 186, 53, 0.05);
    border-color: #e9ba35;
}

.cooperation-type-option input[type="radio"] {
    accent-color: #e9ba35;
}

.cooperation-type-option input[type="radio"]:checked + div label {
    color: #e9ba35;
    font-weight: 600;
}

/* Selected state styling */
.cooperation-type-option.border-blue-500 {
    border-color: #e9ba35 !important;
    background-color: rgba(233, 186, 53, 0.05);
}

.cooperation-type-option.border-blue-500 label {
    color: #e9ba35;
    font-weight: 600;
}

/* Step 3 cooperation fields styling */
.cooperation-fields {
    transition: all 0.3s ease;
}

.cooperation-fields.hidden {
    display: none;
}

/* Cooperation type section headers */
.cooperation-fields .bg-blue-50,
.cooperation-fields .bg-yellow-50,
.cooperation-fields .bg-orange-50 {
    transition: all 0.3s ease;
}

/* Document list styling */
.cooperation-fields .space-y-2 div {
    padding: 0.5rem;
    border-radius: 0.375rem;
    background-color: rgba(233, 186, 53, 0.05);
    border-left: 3px solid #e9ba35;
}

/* Dark mode adjustments for document lists */
.dark .cooperation-fields .space-y-2 div {
    background-color: rgba(233, 186, 53, 0.1);
    border-left-color: #e9ba35;
}

/* Updated color scheme to match calculator */
/* Primary color overrides */
.bg-blue-600 {
    background-color: #e9ba35 !important;
}

.bg-blue-100 {
    background-color: rgba(233, 186, 53, 0.1) !important;
}

.bg-blue-50 {
    background-color: rgba(233, 186, 53, 0.05) !important;
}

.border-blue-200 {
    border-color: rgba(233, 186, 53, 0.2) !important;
}

.border-blue-500 {
    border-color: #e9ba35 !important;
}

.text-blue-600 {
    color: #e9ba35 !important;
}

.text-blue-900 {
    color: #8b6914 !important;
}

.text-blue-100 {
    color: rgba(233, 186, 53, 0.1) !important;
}

.text-blue-300 {
    color: rgba(233, 186, 53, 0.3) !important;
}

.text-blue-700 {
    color: #b8860b !important;
}

/* Dark mode blue overrides */
.dark .bg-blue-900\/20 {
    background-color: rgba(233, 186, 53, 0.1) !important;
}

.dark .border-blue-800 {
    border-color: rgba(233, 186, 53, 0.4) !important;
}

.dark .text-blue-100 {
    color: rgba(233, 186, 53, 0.9) !important;
}

.dark .text-blue-300 {
    color: rgba(233, 186, 53, 0.7) !important;
}

/* Progress bar color */
.progress-bar {
    background-color: #e9ba35 !important;
}

/* Step indicator colors */
.step-indicator .bg-blue-600 {
    background-color: #e9ba35 !important;
}

.step-indicator .bg-blue-50 {
    background-color: rgba(233, 186, 53, 0.05) !important;
}

.step-indicator .border-blue-200 {
    border-color: rgba(233, 186, 53, 0.2) !important;
}

/* Button colors */
.btn-primary {
    background-color: #e9ba35 !important;
    border-color: #e9ba35 !important;
}

.btn-primary:hover {
    background-color: #d4a62e !important;
    border-color: #d4a62e !important;
}

/* Focus states for form inputs */
.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: #e9ba35 !important;
    box-shadow: 0 0 0 0.2rem rgba(233, 186, 53, 0.25) !important;
}

/* Cooperation type option selected state */
.cooperation-type-option.border-blue-500 {
    border-color: #e9ba35 !important;
    background-color: rgba(233, 186, 53, 0.05) !important;
}

/* File upload area focus */
.file-upload-area:focus-within {
    border-color: #e9ba35 !important;
    box-shadow: 0 0 0 3px rgba(233, 186, 53, 0.1) !important;
} 