/* Company Form - Styles globaux pour le formulaire multi-étapes */

/* ========================================
   Styles pour intégration avec MultiStepForm
   ======================================== */

/* Styles pour le formulaire de création d'entreprise */
.company-form {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Styles spécifiques pour l'intégration avec MultiStepForm */
.company-form .form-step {
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.company-form .step-content {
    max-width: none;
}

/* Adaptations pour les sections de l'entreprise */
.company-form .company-step1-section,
.company-form .company-step2-legal-section,
.company-form .company-step2-activity-section {
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
}

.company-form .company-step1-section:hover,
.company-form .company-step2-legal-section:hover,
.company-form .company-step2-activity-section:hover {
    box-shadow: 0 4px 12px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    transition: all 0.2s ease-in-out;
}

/* ========================================
   Styles globaux de conteneur
   ======================================== */

.company-form-container {
    max-width: 4xl;
    margin: 0 auto;
    padding: 1rem;
}

/* Progress bar styles */
.company-form-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem;
}

.company-form-progress-step {
    display: flex;
    align-items: center;
    position: relative;
}

.company-form-progress-step:not(:last-child)::after {
    content: '';
    width: 4rem;
    height: 2px;
    background-color: #e5e7eb;
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.company-form-progress-step.active::after {
    background-color: #3b82f6;
}

.company-form-progress-step.completed::after {
    background-color: #10b981;
}

.company-form-progress-indicator {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.company-form-progress-indicator.pending {
    background-color: #f3f4f6;
    color: #6b7280;
    border: 2px solid #d1d5db;
}

.company-form-progress-indicator.active {
    background-color: #3b82f6;
    color: white;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.company-form-progress-indicator.completed {
    background-color: #10b981;
    color: white;
    border: 2px solid #10b981;
}

.company-form-progress-label {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    color: #6b7280;
}

.company-form-progress-step.active .company-form-progress-label {
    color: #3b82f6;
}

.company-form-progress-step.completed .company-form-progress-label {
    color: #10b981;
}

/* ========================================
   Styles des sections du formulaire
   ======================================== */

/* Section header styles */
.company-form .section-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.company-form .section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.company-form .section-subtitle {
    font-size: 0.875rem;
    color: #64748b;
}

.company-form .section-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

/* Section content styles */
.company-form .section-content {
    padding: 1.5rem;
}

.company-form .form-group {
    margin-bottom: 1.5rem;
}

.company-form .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.company-form .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.company-form .form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.company-form .form-input.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.company-form .form-input.success {
    border-color: #10b981;
    background-color: #f0fdf4;
}

/* Error and success message styles */
.company-form .error-message {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #ef4444;
}

.company-form .success-message {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #10b981;
}

.company-form .error-message i,
.company-form .success-message i {
    margin-right: 0.25rem;
}

/* ========================================
   Styles des champs spécialisés
   ======================================== */

/* VAT number field styling */
.company-form input[name*="vatNumber"] {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Phone number field styling */
.company-form input[type="tel"] {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* SIRET/SIREN field styling */
.company-form input[name*="siret"],
.company-form input[name*="siren"] {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* ========================================
   Auto-save indicator styles
   ======================================== */

.company-form .auto-save-indicator {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: all 0.3s ease-in-out;
}

.company-form .auto-save-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.company-form .auto-save-indicator.success {
    border-color: #10b981;
    color: #10b981;
}

.company-form .auto-save-indicator.error {
    border-color: #ef4444;
    color: #ef4444;
}

/* ========================================
   Form validation styles
   ======================================== */

.company-form .field-group {
    position: relative;
}

.company-form .field-group.has-error .form-input {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.company-form .field-group.has-success .form-input {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.company-form .field-group.has-error .form-label {
    color: #ef4444;
}

.company-form .field-group.has-success .form-label {
    color: #10b981;
}

/* ========================================
   Responsive design
   ======================================== */

@media (max-width: 768px) {
    .company-form .form-step {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .company-form .section-header {
        padding: 1rem;
    }

    .company-form .section-content {
        padding: 1rem;
    }

    .company-form-progress {
        padding: 0.5rem;
    }

    .company-form-progress-step:not(:last-child)::after {
        width: 2rem;
    }

    .company-form .auto-save-indicator {
        position: relative;
        top: auto;
        right: auto;
        margin: 1rem 0;
    }
}

/* ========================================
   Animation styles
   ======================================== */

.company-form .form-step {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.company-form .section-content {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========================================
   Progress indicator enhancement
   ======================================== */

.company-form .form-progress {
    background: linear-gradient(to right, #e5e7eb 0%, #d1d5db 100%);
}

.company-form .form-progress-bar {
    background: linear-gradient(to right, #3b82f6 0%, #8b5cf6 100%);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}