/* Denial Form Custom Styles */

/* Progress Indicator Styles */
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.step-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    background-color: #e5e7eb;
    color: #6b7280;
    border: 3px solid #e5e7eb;
    transition: all 0.3s ease;
}

.step-indicator.active .step-circle {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.step-indicator.completed .step-circle {
    background-color: #10b981;
    color: white;
    border-color: #10b981;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
    white-space: nowrap;
}

.step-indicator.active .step-label {
    color: #3b82f6;
    font-weight: 600;
}

.step-indicator.completed .step-label {
    color: #10b981;
}

.step-line {
    flex: 1;
    height: 3px;
    background-color: #e5e7eb;
    margin: 0 0.5rem;
    align-self: center;
    margin-bottom: 2rem;
    transition: background-color 0.3s ease;
}

.step-line.completed {
    background-color: #10b981;
}

/* Dark mode progress indicator */
.dark .step-circle {
    background-color: #374151;
    color: #9ca3af;
    border-color: #374151;
}

.dark .step-indicator.active .step-circle {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.dark .step-indicator.completed .step-circle {
    background-color: #10b981;
    color: white;
    border-color: #10b981;
}

.dark .step-label {
    color: #9ca3af;
}

.dark .step-indicator.active .step-label {
    color: #60a5fa;
}

.dark .step-indicator.completed .step-label {
    color: #34d399;
}

.dark .step-line {
    background-color: #374151;
}

.dark .step-line.completed {
    background-color: #10b981;
}

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

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

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

.animate-fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Input Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* File Upload Drag and Drop States */
#drop-zone.drag-over {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
}

.dark #drop-zone.drag-over {
    border-color: #60a5fa;
    background-color: rgba(59, 130, 246, 0.1);
}

/* Error State for Inputs */
input.error,
select.error,
textarea.error {
    border-color: #ef4444;
}

input.error:focus,
select.error:focus,
textarea.error:focus {
    --tw-ring-color: #ef4444;
}

/* Success State for Inputs */
input.success,
select.success,
textarea.success {
    border-color: #10b981;
}

/* Loading Spinner Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Modal Animation */
#success-modal.show {
    display: flex !important;
    animation: fadeIn 0.3s ease-in;
}

#success-modal > div {
    animation: slideUp 0.3s ease-out;
}

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

/* Responsive Progress Indicator */
@media (max-width: 640px) {
    .step-label {
        font-size: 0.625rem;
    }
    
    .step-circle {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
    
    .step-line {
        margin: 0 0.25rem;
    }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
    .step-circle {
        border-width: 4px;
    }
    
    input,
    select,
    textarea {
        border-width: 2px;
    }
}

/* Focus Visible for Keyboard Navigation */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

/* Smooth Transitions */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Print Styles */
@media print {
    header,
    #theme-toggle,
    button {
        display: none;
    }
    
    .form-step {
        display: block !important;
        page-break-inside: avoid;
    }
}
