.cms-feedback-section {
  background: var(--bg, #f8f6f0);
  padding: 40px 16px 56px;
}
.cms-feedback-shell {
  max-width: 760px;
  margin: 0 auto;
}
.cms-feedback-head {
  text-align: center;
  margin: 0 auto 28px;
  max-width: 640px;
}
.cms-feedback-title {
  font-family: var(--font-serif, Georgia, serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  line-height: 1.2;
  color: var(--text-primary, #1a1a18);
  margin: 0 0 12px;
}
.cms-feedback-title em {
  font-style: italic;
  color: var(--purple, #3d1f8c);
}
.cms-feedback-intro {
  margin: 0 0 10px;
  color: var(--text-secondary, #5a5a52);
  line-height: 1.7;
  font-size: 16px;
}
.cms-feedback-meta {
  margin: 0;
  color: var(--text-muted, #9a9a90);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.cms-feedback-form {
  display: grid;
  gap: 14px;
}
.cms-feedback-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cms-feedback-card {
  margin: 0;
  border: 1px solid var(--border, #e4e2da);
  border-radius: 16px;
  background: var(--bg-card, #fff);
  padding: 20px 18px 18px;
  min-width: 0;
  overflow: hidden;
}
.cms-feedback-legend {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
  margin: 0 0 10px;
  float: left;
  width: 100%;
}
.cms-feedback-index {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--purple-pale, #f0ecf8);
  color: var(--purple, #3d1f8c);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}
.cms-feedback-prompt {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--text-primary, #1a1a18);
  padding-top: 6px;
}
.cms-feedback-hint,
.cms-feedback-options,
.cms-feedback-scale,
.cms-feedback-scale-ends,
.cms-feedback-textarea,
.cms-feedback-input {
  clear: both;
}
.cms-feedback-hint {
  margin: 0 0 14px 48px;
  color: var(--text-muted, #9a9a90);
  font-size: 14px;
  line-height: 1.5;
}
.cms-feedback-options {
  display: grid;
  gap: 8px;
  margin-left: 48px;
}
.cms-feedback-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border, #e4e2da);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  min-height: 48px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.cms-feedback-option:hover {
  border-color: var(--purple-border, #c4b4e4);
  background: var(--purple-pale, #f0ecf8);
}
.cms-feedback-option:has(input:checked) {
  border-color: var(--purple, #3d1f8c);
  background: var(--purple-pale, #f0ecf8);
  box-shadow: inset 0 0 0 1px var(--purple, #3d1f8c);
}
.cms-feedback-option input:checked ~ .cms-feedback-check {
  border-color: var(--purple, #3d1f8c);
  background: var(--purple, #3d1f8c);
}
.cms-feedback-option input:checked ~ .cms-feedback-check::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.cms-feedback-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.cms-feedback-check {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid var(--border-strong, #c8c6bc);
  background: #fff;
  border-radius: 50%;
  position: relative;
}
.cms-feedback-card.is-multi .cms-feedback-check {
  border-radius: 5px;
}
.cms-feedback-option:has(input:checked) .cms-feedback-check {
  border-color: var(--purple, #3d1f8c);
  background: var(--purple, #3d1f8c);
}
.cms-feedback-option input:focus-visible + .cms-feedback-check {
  outline: 2px solid var(--purple, #3d1f8c);
  outline-offset: 3px;
}
.cms-feedback-option-label {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-primary, #1a1a18);
  padding-top: 1px;
}
.cms-feedback-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 10px;
}
.cms-feedback-scale-opt {
  margin: 0;
  cursor: pointer;
}
.cms-feedback-scale-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.cms-feedback-scale-opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border, #e4e2da);
  background: #fff;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary, #1a1a18);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.cms-feedback-scale-opt:hover span {
  border-color: var(--purple-border, #c4b4e4);
  background: var(--purple-pale, #f0ecf8);
}
.cms-feedback-scale-opt:has(input:checked) span,
.cms-feedback-scale-opt input:checked + span {
  border-color: var(--purple, #3d1f8c);
  background: var(--purple, #3d1f8c);
  color: #fff;
}
.cms-feedback-scale-opt input:focus-visible + span {
  outline: 2px solid var(--purple, #3d1f8c);
  outline-offset: 2px;
}
.cms-feedback-scale-ends {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted, #9a9a90);
  font-size: 12px;
  line-height: 1.4;
}
.cms-feedback-scale-ends span:last-child {
  text-align: right;
}
.cms-feedback-textarea,
.cms-feedback-input {
  width: 100%;
  border: 1px solid var(--border, #e4e2da);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-primary, #1a1a18);
  background: #fff;
  margin-left: 0;
}
.cms-feedback-textarea {
  resize: vertical;
  min-height: 140px;
}
.cms-feedback-card:not(.is-scale) .cms-feedback-textarea,
.cms-feedback-card:not(.is-scale) .cms-feedback-input {
  width: calc(100% - 48px);
  margin-left: 48px;
}
.cms-feedback-textarea:focus,
.cms-feedback-input:focus {
  outline: 2px solid var(--purple, #3d1f8c);
  outline-offset: 2px;
  border-color: var(--purple, #3d1f8c);
}
.cms-feedback-footer {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: 8px 2px 0;
}
.cms-feedback-submit {
  appearance: none;
  border: 0;
  background: var(--purple, #3d1f8c);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  min-height: 52px;
  min-width: min(100%, 220px);
  border-radius: 999px;
  cursor: pointer;
}
.cms-feedback-submit:hover {
  background: var(--purple-mid, #5a35b0);
}
.cms-feedback-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}
.cms-feedback-message {
  min-height: 0;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}
.cms-feedback-message.is-success {
  color: #1f6b3a;
}
.cms-feedback-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  max-width: min(520px, calc(100vw - 32px));
  padding: 14px 22px;
  color: #fff;
  background: #a12622;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(26, 26, 24, 0.28);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.cms-feedback-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}
.cms-feedback-form.is-complete .cms-feedback-card,
.cms-feedback-form.is-complete .cms-feedback-submit {
  display: none;
}
.cms-feedback-form.is-complete .cms-feedback-message {
  width: 100%;
  padding: 28px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border, #e4e2da);
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.2rem;
  text-align: center;
}

@media (min-width: 700px) {
  .cms-feedback-section {
    padding: 8px 24px 72px;
  }
  .cms-feedback-card {
    padding: 24px 24px 22px;
  }
  .cms-feedback-scale {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
  .cms-feedback-scale-opt span {
    min-height: 52px;
    font-size: 16px;
  }
}

@media (max-width: 699px) {
  .cms-feedback-hint,
  .cms-feedback-options,
  .cms-feedback-card:not(.is-scale) .cms-feedback-textarea,
  .cms-feedback-card:not(.is-scale) .cms-feedback-input {
    margin-left: 0;
    width: 100%;
  }
  .cms-feedback-submit {
    width: 100%;
  }
  .cms-feedback-legend {
    gap: 10px;
  }
  .cms-feedback-prompt {
    font-size: 1.05rem;
  }
}
