/* Scoped to the demo component; the rest of the theme keeps its own styles. */
#feedback-modal:has(.demo-shell) {
  padding: 24px;
  background: rgba(18, 13, 34, .62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 10000;
}
#feedback-modal:has(.demo-shell) .modal {
  width: 960px;
  max-width: 100%;
  max-height: calc(100dvh - 48px);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 32px 100px rgba(14, 7, 35, .28);
  filter: none;
  overscroll-behavior: contain;
}
#feedback-modal:has(.demo-shell).layout--show { animation: demo-backdrop-in .2s ease both; }
#feedback-modal:has(.demo-shell).layout--show .modal { animation: demo-dialog-in .36s cubic-bezier(.2,.8,.2,1) both; }
#feedback-modal:has(.demo-shell).demo-closing { animation: demo-backdrop-out .16s ease both; }
#feedback-modal:has(.demo-shell) .modal__content { padding: 0; }
#feedback-modal:has(.demo-shell) .form-request__title,
#feedback-modal:has(.demo-shell) .form-request__text { display: none; }
#feedback-modal:has(.demo-shell) .modal__close {
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid #e9e6f0;
  border-radius: 50%;
  color: #716a80;
  background: #fff;
  transition: background .2s, transform .2s;
}
#feedback-modal:has(.demo-shell) .modal__close img { width: 13px; }
#feedback-modal:has(.demo-shell) .modal__close:hover { background: #f3effb; transform: rotate(90deg); }
#feedback-modal .demo-shell {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #282138;
  text-align: left;
}
#feedback-modal .demo-shell *, #feedback-modal .demo-shell *::before, #feedback-modal .demo-shell *::after { box-sizing: border-box; }
#feedback-modal .demo-shell p { margin: 0; }
#feedback-modal .demo-shell [hidden] { display: none !important; }
#feedback-modal .demo-intro {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 40px 32px 32px;
  color: #fff;
  background: radial-gradient(ellipse at 10% 0%, #7050c6 0, transparent 70%), #302052;
}
#feedback-modal .demo-intro::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255,255,255,.025), 0 0 0 80px rgba(255,255,255,.02);
  pointer-events: none;
}
#feedback-modal .demo-eyebrow { display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; color: #e3d9ff; }
#feedback-modal .demo-spark { color: #c8b2ff; font-size: 25px; line-height: 1; }
#feedback-modal .demo-intro h2 { margin: 30px 0 16px; font-size: 31px; line-height: 1.22; font-weight: 600; letter-spacing: -1.1px; }
#feedback-modal .demo-intro h2 span { color: #c7b1ff; }
#feedback-modal .demo-intro-copy { font-size: 14px; line-height: 1.65; color: #ded4f1; }
#feedback-modal .demo-agenda { display: grid; gap: 23px; margin: 34px 0; }
#feedback-modal .demo-agenda-item { display: flex; gap: 14px; align-items: flex-start; }
#feedback-modal .demo-step { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 33px; border: 1px solid #7a639e; border-radius: 10px; color: #dcc9ff; font-size: 11px; font-weight: 600; }
#feedback-modal .demo-agenda h3 { margin: 0 0 3px; font-size: 14px; font-weight: 600; }
#feedback-modal .demo-agenda p { font-size: 12px; line-height: 1.5; color: #c9bcde; }
#feedback-modal .demo-intro-note { display: flex; align-items: center; gap: 13px; margin-top: auto; padding-top: 23px; border-top: 1px solid rgba(255,255,255,.16); color: #ddd3ee; font-size: 12px; line-height: 1.65; }
#feedback-modal .demo-intro-note > span { font-size: 28px; color: #c7b1ff; }
#feedback-modal .demo-main { min-width: 0; padding: 43px 40px 32px; }
#feedback-modal .demo-kicker { display: block; color: #8060bb; font-weight: 600; font-size: 10px; letter-spacing: 1.6px; }
#feedback-modal .demo-heading h2 { margin: 9px 0 10px; font-size: 27px; line-height: 1.2; font-weight: 600; letter-spacing: -.8px; }
#feedback-modal .demo-heading p { color: #777180; font-size: 13px; line-height: 1.65; max-width: 335px; }
#feedback-modal .demo-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 19px 16px; margin-top: 26px; }
#feedback-modal .demo-field { min-width: 0; }
#feedback-modal .demo-field-wide { grid-column: 1 / -1; }
#feedback-modal .demo-field label { display: block; margin-bottom: 7px; font-weight: 500; font-size: 12px; color: #423a50; }
#feedback-modal .demo-field label > span { color: #9275c5; }
#feedback-modal .demo-field br, #feedback-modal .demo-submit-wrap br { display: none; }
#feedback-modal .demo-field .wpcf7-form-control-wrap { display: block; }
#feedback-modal .demo-input {
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid #e5e0ed;
  border-radius: 10px;
  background: #faf9fc;
  color: #282138;
  font: inherit;
  font-size: 13px;
  line-height: 20px;
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
#feedback-modal .demo-input::placeholder { color: #928b9c; opacity: 1; }
#feedback-modal .demo-input:hover { border-color: #c6b8dc; }
#feedback-modal .demo-input:focus { outline: none; border-color: #8461d6; background: #fff; box-shadow: 0 0 0 3px rgba(132,97,214,.12); }
#feedback-modal textarea.demo-input { height: 92px; min-height: 92px; max-height: 220px; resize: vertical; }
#feedback-modal .demo-field-hint { display: block; margin-top: 7px; color: #87808f; font-size: 11px; line-height: 1.5; }
#feedback-modal .demo-submit-wrap { position: relative; margin-top: 23px; }
#feedback-modal .demo-submit, #feedback-modal .demo-done {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 14px 40px;
  border: 0;
  border-radius: 11px;
  background: #7954cd;
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  line-height: 22px;
  text-shadow: none;
  box-shadow: 0 5px 14px rgba(98,64,167,.15);
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .2s;
}
#feedback-modal .demo-submit:hover:not(:disabled), #feedback-modal .demo-done:hover { background: #6843bc; box-shadow: 0 7px 20px rgba(98,64,167,.24); transform: translateY(-1px); }
#feedback-modal .demo-submit:active:not(:disabled), #feedback-modal .demo-done:active { transform: translateY(0); }
#feedback-modal .demo-submit:disabled { cursor: wait; opacity: .75; }
#feedback-modal .demo-submit-arrow { position: absolute; right: 18px; top: 12px; font-size: 21px; color: white; pointer-events: none; }
#feedback-modal .demo-submit-wrap .wpcf7-spinner { position: absolute; right: 15px; top: 13px; margin: 0; width: 24px; height: 24px; }
#feedback-modal form.submitting .demo-submit-arrow { visibility: hidden; }
#feedback-modal form.demo-transport-error .wpcf7-spinner { visibility: hidden; }
#feedback-modal form.demo-transport-error .demo-submit-arrow { visibility: visible; }
#feedback-modal form.demo-transport-error .wpcf7-response-output { display: block; }
#feedback-modal .demo-shell .demo-privacy { margin-top: 15px; color: #81798a; font-size: 11px; line-height: 1.65; text-align: center; }
#feedback-modal .demo-privacy a { color: #76618f; text-underline-offset: 2px; text-decoration: underline; }
#feedback-modal .demo-input.wpcf7-not-valid { border-color: #d36474; background: #fffafb; }
#feedback-modal .wpcf7-not-valid-tip { margin-top: 5px; color: #b74357; font-size: 11px; line-height: 1.45; }
#feedback-modal .demo-main .wpcf7-response-output { margin: 18px 0 0; padding: 12px 14px; border: 1px solid #ebccbd; border-radius: 10px; background: #fff9f4; color: #815338; font-size: 12px; line-height: 1.5; }
#feedback-modal .demo-success { min-height: 478px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; animation: demo-dialog-in .4s ease both; }
#feedback-modal .demo-success-icon { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 27px; border-radius: 24px; color: #518969; background: #edf6f0; box-shadow: 0 0 0 10px #f7faf8; }
#feedback-modal .demo-success-icon svg { width: 38px; height: 38px; }
#feedback-modal .demo-success-icon path { stroke-dasharray: 30; stroke-dashoffset: 0; animation: demo-check-in .6s ease .1s both; }
#feedback-modal .demo-success h2 { margin: 12px 0; font-size: 27px; line-height: 1.2; letter-spacing: -.7px; font-weight: 600; }
#feedback-modal .demo-success p { color: #777180; font-size: 14px; line-height: 1.7; max-width: 330px; }
#feedback-modal .demo-done { margin-top: 30px; gap: 18px; width: auto; padding: 12px 25px; }
#feedback-modal .demo-success-visible .wpcf7-response-output { display: none; }
#feedback-modal:has(.demo-shell) :is(button, a, input[type="submit"]):focus-visible { outline: 3px solid #ba9de9; outline-offset: 4px; }
#feedback-modal .demo-heading h2:focus, #feedback-modal .demo-success-title:focus { outline: none; }
@keyframes demo-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes demo-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes demo-dialog-in { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes demo-check-in { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
@media (max-width: 760px) {
  #feedback-modal:has(.demo-shell) { padding: 12px; }
  #feedback-modal:has(.demo-shell) .modal { max-height: calc(100dvh - 24px); border-radius: 20px; width: 500px; }
  #feedback-modal .demo-shell { grid-template-columns: minmax(0, 1fr); }
  #feedback-modal .demo-intro { padding: 25px 25px 24px; }
  #feedback-modal .demo-eyebrow { font-size: 9px; letter-spacing: 1px; padding-right: 30px; }
  #feedback-modal .demo-intro h2 { font-size: 26px; margin: 16px 0 10px; }
  #feedback-modal .demo-intro-copy { font-size: 12px; max-width: 350px; }
  #feedback-modal .demo-agenda, #feedback-modal .demo-intro-note { display: none; }
  #feedback-modal .demo-main { padding: 27px 25px 25px; }
  #feedback-modal .demo-heading .demo-kicker { display: none; }
  #feedback-modal .demo-heading h2 { font-size: 24px; margin-top: 0; }
  #feedback-modal .demo-fields { gap: 17px 12px; margin-top: 22px; }
  #feedback-modal .demo-input { font-size: 16px; }
  #feedback-modal .demo-field { grid-column: 1 / -1; }
  #feedback-modal .demo-privacy { font-size: 11px; }
  #feedback-modal .demo-success { min-height: 350px; }
}
@media (max-width: 360px) {
  #feedback-modal .demo-main, #feedback-modal .demo-intro { padding-left: 20px; padding-right: 20px; }
  #feedback-modal .demo-intro h2 { font-size: 24px; }
  #feedback-modal .demo-submit { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #feedback-modal:has(.demo-shell), #feedback-modal:has(.demo-shell) *, #feedback-modal:has(.demo-shell) *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
