/**
 * Organism Registration Wizard Styles
 */

/* Wizard Progress Bar */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e7ecf3;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 3px solid #e7ecf3;
}

.wizard-step.active .step-number {
    background: linear-gradient(135deg, #886ab5 0%, #6b5596 100%);
    color: white;
    border-color: #886ab5;
    box-shadow: 0 4px 12px rgba(136, 106, 181, 0.3);
}

.wizard-step.completed .step-number {
    background: linear-gradient(135deg, #1dc9b7 0%, #17a2b8 100%);
    color: white;
    border-color: #1dc9b7;
}

.step-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
}

.wizard-step.active .step-label {
    color: #886ab5;
    font-weight: 600;
}

.wizard-line {
    width: 100px;
    height: 3px;
    background-color: #e7ecf3;
    margin: 0 1rem;
    margin-top: -25px;
    transition: all 0.3s ease;
}

.wizard-step.active ~ .wizard-line {
    background-color: #1dc9b7;
}

/* Wizard Step Content */
.wizard-step-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 1px solid #e7ecf3;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #886ab5;
    box-shadow: 0 0 0 0.2rem rgba(136, 106, 181, 0.25);
    outline: none;
}

/* File Upload Wrapper */
.custom-file-upload-wrapper {
    border: 2px dashed #e7ecf3;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    width: 100%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.custom-file-upload-wrapper:hover {
    background-color: #f0f0f0;
    border-color: #886ab5;
}

.custom-file-upload-wrapper input[type="file"] {
    display: none;
}

.upload-icon {
    font-size: 40px;
    color: #886ab5;
    transition: opacity 0.3s;
    margin-bottom: 10px;
}

.upload-label {
    font-size: 16px;
    margin-top: 10px;
    color: #333;
    font-weight: bold;
}

.file-name {
    margin-top: 10px;
    font-weight: bold;
    color: #444;
    display: none;
}

.has-file .upload-icon {
    display: none;
}

.has-file .file-name {
    display: block;
}

.has-file .upload-label {
    color: #1dc9b7;
}

.has-file {
    border-color: #1dc9b7;
    background-color: #f0fdf4;
}

/* Success Message */
.success-content {
    padding: 2rem;
}

.success-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.success-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #555;
}

.btn-retour {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-retour:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
    color: white;
    text-decoration: none;
}

/* Checkbox Styles */
.form-check-inline {
    display: flex;
    align-items: flex-start;
    padding-left: 1.5rem;
    position: relative;
}

.form-check-inline input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.form-check-inline label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.form-check-inline a {
    color: #886ab5;
    text-decoration: none;
}

.form-check-inline a:hover {
    text-decoration: underline;
}

.registration-kbis-upload .certificate-upload-box {
    border-color: #ced4da;
    min-height: 180px;
}

.registration-kbis-upload .certificate-upload-box.has-file {
    border-color: #1dc9b7;
    background: linear-gradient(to bottom, #f0fdf4, #ffffff);
}

.registration-kbis-upload .certificate-upload-content h6 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

#kbis-file-name {
    font-weight: 600;
}

/* Error Messages */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.form-control.error {
    border-color: #dc3545;
}

/* Loading State */
.btn-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-progress {
        flex-direction: column;
        gap: 1rem;
    }
    
    .wizard-line {
        width: 3px;
        height: 50px;
        margin: 0;
        margin-top: 0;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

