/* Démo SaaS : portée locale, sans override des formulaires du questionnaire ou du CRM. */
.demo-page { max-width: 1080px; margin: 0 auto; padding: 0 0 36px; }
.demo-heading { text-align: center; padding: 28px 16px 30px; background: linear-gradient(110deg, #fffdf3, #f0fcf9); border-radius: 14px; }
.demo-heading h1 { color: var(--bd-text); font-size: clamp(27px, 3vw, 36px); font-weight: 650; line-height: 1.2; letter-spacing: -.035em; margin: 0 0 14px; }
.demo-heading p { color: var(--bd-muted); max-width: 650px; margin: 0 auto; font-size: 14px; line-height: 1.65; }
html[data-design-theme="dark"] .demo-heading { background: linear-gradient(110deg, #182337, #152c2c); }
.demo-form { width: 100%; max-width: 670px; margin: 26px auto 0; padding: 30px; background: var(--bd-card, #fff); color: var(--bd-text); border: 1px solid var(--bd-border); border-radius: 12px; box-shadow: 0 5px 20px #17284d05; }
.demo-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.demo-field { display: grid; gap: 8px; min-width: 0; }
.demo-field label, .demo-form legend { font-size: 13px; line-height: 1.55; color: var(--bd-text); font-weight: 550; }
.demo-required { color: #b42318; }
html[data-design-theme="dark"] .demo-required { color: #ffb4b4; }
.demo-form .demo-field input, .demo-form .demo-field textarea, .demo-form .demo-field select {
  box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 10px 12px;
  border: 1px solid var(--bd-border); border-radius: 6px; background: var(--bd-card); color: var(--bd-text); font: inherit; font-size: 14px; box-shadow: none;
}
.demo-form .demo-field textarea { min-height: 115px; resize: vertical; line-height: 1.6; }
.demo-form :is(input, textarea, select):focus-visible { outline: 2px solid #0c9463; outline-offset: 3px; }
.demo-form fieldset { border: 0; padding: 0; margin: 27px 0; min-width: 0; }
.demo-form legend { padding: 0; margin-bottom: 10px; }
.demo-help { font-size: 12px; margin: -3px 0 15px; color: var(--bd-muted); line-height: 1.5; }
.demo-module-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 20px; }
.demo-module-list > div { min-width: 0; }
.demo-module-list label { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--bd-text); font-weight: 400; line-height: 1.6; padding: 8px 0; cursor: pointer; }
.demo-form .demo-module-list input, .demo-form .demo-radio-list input, .demo-form .demo-consent input { position: static; opacity: 1; width: 16px; height: 16px; min-height: 16px; flex: 0 0 16px; margin: 3px 0 0; padding: 0; accent-color: #0c9463; }
.demo-radio-list { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.demo-radio-list label { display: flex; gap: 8px; font-size: 13px; cursor: pointer; line-height: 1.6; }
.demo-description { margin-top: 24px; }
.demo-consent { display: flex; align-items: flex-start; gap: 10px; margin: 23px 0 22px; }
.demo-consent label { font-size: 12px; color: var(--bd-muted); line-height: 1.7; cursor: pointer; }
.demo-consent a { color: var(--bd-link); text-decoration: underline; text-underline-offset: 3px; }
.demo-form .demo-submit { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; border: 0; border-radius: 6px; padding: 12px 20px; background: #0b8158; color: white; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.demo-form .demo-submit:hover { background: #096748; }
html[data-design-theme="dark"] .demo-form .demo-submit { background: #75edcc; color: #102822; }
html[data-design-theme="dark"] .demo-form .demo-submit:hover { background: #88f7d8; }
.demo-footnote, .demo-selected { font-size: 12px; line-height: 1.7; color: var(--bd-muted); }
.demo-footnote { margin: 17px 0 0; }
.demo-selected { margin: 0 0 20px; }
.demo-form .errorlist, .demo-errors { color: #b42318; font-size: 12px; line-height: 1.6; padding-left: 17px; margin: 0 0 9px; }
html[data-design-theme="dark"] .demo-form .errorlist { color: #ffb4b4; }
.demo-errors { padding: 15px 18px; border: 1px solid currentColor; border-radius: 6px; margin-bottom: 22px; }
@media (max-width: 650px) {
  .demo-heading { padding: 24px 10px; }
  .demo-form { padding: 24px 18px; margin-top: 20px; }
  .demo-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .demo-module-list { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .demo-submit { width: 100%; }
}
