/* CSS pour le formulaire de relevé (releve-form.php) */

.igloups-releve-form-container {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.igloups-form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.igloups-form-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
}

.igloups-form-welcome {
    margin: 0;
    opacity: 0.9;
}

/* Barre de progression */
.igloups-progress-bar {
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.igloups-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.igloups-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.igloups-step__number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.igloups-step--active .igloups-step__number,
.igloups-step--completed .igloups-step__number {
    background: #667eea;
    color: white;
}

.igloups-step__label {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
}

.igloups-step--active .igloups-step__label {
    color: #333;
    font-weight: 500;
}

.igloups-progress-line {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    position: relative;
}

.igloups-progress-fill {
    height: 100%;
    background: #667eea;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Formulaire */
.igloups-form {
    padding: 2rem;
}

.igloups-form-step {
    display: none;
}

.igloups-form-step--active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

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

.igloups-step-content h3 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 1.4rem;
}

/* Champs de formulaire */
.igloups-field-group {
    margin-bottom: 1.5rem;
}

.igloups-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.igloups-label--required::after {
    content: " *";
    color: #e74c3c;
}

.igloups-input,
.igloups-select,
.igloups-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.igloups-input:focus,
.igloups-select:focus,
.igloups-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.igloups-input--large {
    font-size: 1.2rem;
    padding: 1rem;
}

.igloups-input-group {
    display: flex;
    align-items: center;
}

.igloups-input-group .igloups-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.igloups-input-unit {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-left: none;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 0.75rem;
    font-weight: 500;
    color: #6c757d;
}

.igloups-input--large + .igloups-input-unit {
    padding: 1rem;
}

.igloups-field-help {
    display: block;
    margin-top: 0.25rem;
    color: #6c757d;
    font-size: 0.875rem;
}

/* Carte */
.igloups-map-container {
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

.igloups-map-iframe {
    display: block;
}

.igloups-coordinates-display {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    border-radius: 5px;
    color: #2d5a2d;
}

/* Checkbox personnalisé */
.igloups-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.igloups-checkbox {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.igloups-checkbox-text small {
    display: block;
    color: #6c757d;
    font-weight: normal;
    margin-top: 0.25rem;
}

/* Résumé */
.igloups-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
}

.igloups-summary-item {
    padding: 0.75rem;
    background: white;
    border-radius: 5px;
    border-left: 4px solid #667eea;
}

.igloups-summary-item strong {
    display: block;
    color: #333;
    margin-bottom: 0.25rem;
}

/* Navigation */
.igloups-form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.igloups-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.igloups-btn--primary {
    background: #667eea;
    color: white;
}

.igloups-btn--primary:hover {
    background: #5a6fd8;
}

.igloups-btn--secondary {
    background: #6c757d;
    color: white;
}

.igloups-btn--secondary:hover {
    background: #5a6268;
}

.igloups-btn--success {
    background: #28a745;
    color: white;
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.igloups-btn--success:hover {
    background: #218838;
}

/* Responsive */
@media (max-width: 768px) {
    .igloups-releve-form-container {
        margin: 1rem;
        border-radius: 5px;
    }
    
    .igloups-form-header,
    .igloups-form {
        padding: 1.5rem;
    }
    
    .igloups-progress-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .igloups-step {
        flex: 0 0 45%;
        margin-bottom: 0.5rem;
    }
    
    .igloups-form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .igloups-summary-grid {
        grid-template-columns: 1fr;
    }
}