/* ============================================================
   VANOSC MUNICIPAL — CSS Public
   ============================================================ */

.vm-form-wrapper { max-width: 680px; margin: 0 auto; }
.vm-form { }

.vm-form-field { margin-bottom: 18px; }
.vm-form-field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.vm-form-field-row .vm-form-field { flex: 1; min-width: 200px; }

.vm-label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 14px; }
.vm-label span, .vm-required-star { color: #c0392b; }
.vm-hint { font-weight: normal; font-size: 12px; color: #888; }
.vm-required { }

.vm-input, .vm-select, .vm-textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    box-sizing: border-box;
    transition: border-color .15s;
}
.vm-input:focus, .vm-select:focus, .vm-textarea:focus {
    outline: none;
    border-color: #2c5f8a;
    box-shadow: 0 0 0 2px rgba(44,95,138,.12);
}
.vm-textarea { resize: vertical; min-height: 100px; }

/* Upload */
.vm-upload-zone { border: 2px dashed #ccc; border-radius: 4px; padding: 20px; text-align: center; cursor: pointer; transition: border-color .15s; }
.vm-upload-zone:hover { border-color: #2c5f8a; }
.vm-file-input { display: none; }
.vm-upload-label { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.vm-upload-icon { font-size: 28px; }
.vm-upload-text { font-weight: 600; font-size: 14px; color: #444; }
.vm-upload-hint { font-size: 12px; color: #888; }
.vm-file-list { list-style: none; margin: 10px 0 0; padding: 0; text-align: left; }
.vm-file-list li { font-size: 12px; color: #555; padding: 3px 0; border-bottom: 1px solid #f0f0f0; }

/* Note image */
.vm-image-note-trigger { margin-top: 8px; font-size: 13px; }
.vm-link-subtle { color: #2c5f8a; text-decoration: none; }
.vm-link-subtle:hover { text-decoration: underline; }

/* Lightbox */
.vm-lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.vm-lightbox-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); }
.vm-lightbox-content { position: relative; background: #fff; border-radius: 6px; padding: 28px; max-width: 520px; width: 90%; max-height: 80vh; overflow-y: auto; z-index: 1; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.vm-lightbox-content h3 { margin: 0 0 16px; font-size: 16px; }
.vm-lightbox-body { font-size: 14px; line-height: 1.6; color: #444; }
.vm-lightbox-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 22px; cursor: pointer; color: #888; line-height: 1; }

/* Contact bloc boîte à idées */
.vm-contact-block { background: #f8f9fa; border: 1px solid #e8e8e8; border-radius: 4px; padding: 16px; }
.vm-contact-intro { margin: 0 0 14px; font-size: 13px; color: #555; font-style: italic; }

/* Checkbox */
.vm-checkbox-label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 14px; line-height: 1.5; }
.vm-checkbox-label input { margin-top: 3px; flex-shrink: 0; }
.vm-field-acceptation { margin-top: 20px; }

/* Erreurs */
.vm-form-errors { background: #fff0f0; border: 1px solid #f5a6a6; border-radius: 4px; padding: 10px 14px; font-size: 13px; color: #c0392b; margin-bottom: 16px; }

/* Bouton */
.vm-form-actions { margin-top: 20px; }
.vm-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 24px; border-radius: 4px; border: none; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s; }
.vm-btn-primary { background: #2c5f8a; color: #fff; }
.vm-btn-primary:hover { background: #1e4266; }
.vm-btn:disabled { opacity: .65; cursor: not-allowed; }

/* Confirmation */
.vm-confirmation { text-align: center; padding: 40px 20px; }
.vm-confirmation-icon { font-size: 48px; color: #00a32a; margin-bottom: 16px; }
.vm-confirmation-text { font-size: 16px; color: #333; line-height: 1.6; }

@media (max-width: 600px) {
    .vm-form-field-row { flex-direction: column; }
    .vm-form-field-row .vm-form-field { min-width: unset; }
}
