.cas-form { display: flex; flex-direction: column; gap: 1.5rem; max-width: 720px; margin: 2rem auto; }
.cas-form .cas-hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.cas-form__tab { border: 1px solid #ddd; padding: 1rem 1.25rem; border-radius: 8px; }
.cas-form__tab > legend { padding: 0 .5rem; font-weight: 600; }
.cas-form__field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.cas-form__field label { font-weight: 500; }
.cas-form__field .req { color: #c00; }
.cas-form__field input[type="text"],
.cas-form__field input[type="email"],
.cas-form__field input[type="tel"],
.cas-form__field input[type="number"],
.cas-form__field input[type="date"],
.cas-form__field input[type="url"],
.cas-form__field select,
.cas-form__field textarea { padding: .5rem .75rem; border: 1px solid #ccc; border-radius: 4px; font: inherit; }
.cas-form__field textarea { min-height: 120px; resize: vertical; }
.cas-form__help { color: #666; font-size: .875rem; }
.cas-form__error { color: #c00; font-size: .875rem; margin-top: .25rem; display: block; }
.cas-form__gallery-preview { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.cas-form__thumb { width: 100px; height: 100px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; }
.cas-form__rgpd label { display: flex; gap: .5rem; align-items: flex-start; cursor: pointer; }
.cas-form__actions { display: flex; justify-content: flex-end; }
.cas-form__submit { padding: .75rem 2rem; background: #2a6f2a; color: #fff; border: 0; border-radius: 4px; font-size: 1rem; font-weight: 600; cursor: pointer; }
.cas-form__submit:disabled { opacity: .6; cursor: not-allowed; }
.cas-form__feedback { padding: .75rem 1rem; border-radius: 4px; display: none; }
.cas-form__feedback.is-success { display: block; background: #e0f5e0; color: #1a4d1a; border: 1px solid #2a6f2a; }
.cas-form__feedback.is-error   { display: block; background: #fbe4e4; color: #7a1e1e; border: 1px solid #c00; }
@media (max-width: 640px) {
  .cas-form { margin: 1rem; }
  .cas-form__tab { padding: 1rem; }
}

/* CAS file field preview */
.cas-file-field { display: block; }
.cas-file-field input[type="file"] { display: block; }
.cas-file-field.has-file input[type="file"] { display: none; }
.cas-file-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  margin-top: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
}
.cas-file-preview[hidden] { display: none !important; }
.cas-file-preview__thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
}
.cas-file-preview__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cas-file-preview__badge {
  font-size: 11px;
  font-weight: 700;
  color: #d32621;
  letter-spacing: 0.5px;
}
.cas-file-preview__meta {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.cas-file-preview__name {
  font-size: 13px;
  font-weight: 500;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cas-file-preview__size {
  font-size: 11px;
  color: #777;
}
.cas-file-remove {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #606060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.cas-file-remove:hover {
  border-color: #c62d33;
  color: #c62d33;
  background: #fff5f5;
}


/* CAS gallery thumbnail with remove */
.cas-form__gallery-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.cas-form__thumb-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #fff;
}
.cas-form__thumb-wrap .cas-form__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cas-form__thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cas-form__thumb-remove:hover {
  background: #c62d33;
}


/* CAS radio/checkbox group spacing */
.cas-radio-group,
.cas-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-top: 6px;
}
.cas-radio-group label,
.cas-checkboxes label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 3px 0;
}
.cas-radio-group input[type="radio"],
.cas-checkboxes input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
}



/* Precision "Autre" (2026-09-06) */
.cas-field__other {
    display: none;
    margin-top: 8px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    font-size: 14px;
    transition: opacity .2s ease-in-out;
}
.cas-field__other--visible {
    display: block;
    opacity: 1;
}
.cas-field__other[aria-invalid="true"] {
    border-color: #d63638;
    background-color: #fef1f1;
}


/* Prix mis en avant avant les cases a cocher */
.cas-form__notice-price { background:#fff8e1; border-left:4px solid #c9a227; padding:14px 18px; margin:24px 0 12px; border-radius:6px; font-size:17px; color:#5a4a10; text-align:center; }
.cas-form__notice-price strong { font-weight:700; letter-spacing:.3px; }
