/* ===== FORMULAIRE DE SOUMISSION ===== */

.ams-submission-form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.ams-submission-form-container h2 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    border-bottom: 3px solid #f093fb;
    padding-bottom: 0.5rem;
}

.ams-form-intro {
    color: #666;
    margin-bottom: 2rem;
}

/* Fieldsets */
.ams-submission-form-container fieldset {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.ams-submission-form-container legend {
    font-weight: 700;
    font-size: 1.1rem;
    color: #f5576c;
    padding: 0 0.5rem;
}

/* Champs */
.ams-field {
    margin-bottom: 1.2rem;
}

.ams-field label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.ams-field input,
.ams-field textarea,
.ams-field select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.ams-field input:focus,
.ams-field textarea:focus,
.ams-field select:focus {
    outline: none;
    border-color: #f093fb;
    box-shadow: 0 0 0 3px rgba(240, 147, 251, 0.1);
}

/* Row */
.ams-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Checkboxes */
.ams-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
}

.ams-checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.ams-checkboxes label:hover {
    background: #e9ecef;
}

/* Boutons */
.ams-btn-primary {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.ams-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.ams-btn-secondary {
    padding: 0.6rem 1.2rem;
    background: white;
    border: 2px solid #f093fb;
    color: #f093fb;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.ams-btn-secondary:hover {
    background: #f093fb;
    color: white;
}

/* Alerts */
.ams-alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.ams-alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.ams-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Aide */
.ams-help {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
}

/* Preview images */
.ams-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.ams-image-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) {
    .ams-submission-form-container {
        padding: 1.5rem 1rem;
    }
    
    .ams-field-row {
        grid-template-columns: 1fr;
    }
    
    .ams-checkboxes {
        grid-template-columns: 1fr;
    }
}