.mq-shell {
  --mq-ink: #5f5158;
  --mq-text: #7e6c75;
  --mq-plum: #b07690;
  --mq-mauve: #bb89a5;
  --mq-blush: #f0c9d4;
  --mq-cream: #fffcf7;
  --mq-gold: #c7a86d;
  --mq-white: #ffffff;
  width: min(920px, calc(100% - 32px));
  margin: 48px auto;
  color: var(--mq-ink);
  font-family: Raleway, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

.mq-shell *, .mq-shell *::before, .mq-shell *::after { box-sizing: border-box; }
.mq-shell h1, .mq-shell h2, .mq-shell h3 { font-family: "Libre Baskerville", Georgia, serif; color: var(--mq-ink); font-weight: 400; line-height: 1.2; margin: 0 0 16px; }
.mq-shell h1 { font-size: clamp(2.25rem, 6vw, 4rem); }
.mq-shell h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.mq-shell h3 { font-size: 1.55rem; }
.mq-shell p { margin: 0 0 16px; }

.mq-intro, .mq-success {
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid rgba(176, 118, 144, .22);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(126, 108, 117, .10);
}

.mq-eyebrow, .mq-step-header > p { margin-bottom: 10px !important; color: var(--mq-plum); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.mq-optional-note { margin-top: 28px; padding: 20px 22px; border: 1px solid rgba(199, 168, 109, .25); border-left: 4px solid var(--mq-gold); border-radius: 5px 14px 14px 5px; background: #ffffff; }

.mq-progress-wrap { position: sticky; top: 10px; z-index: 10; margin: 26px 0; padding: 18px 22px; border: 1px solid rgba(176, 118, 144, .18); border-radius: 18px; background: #ffffff; box-shadow: 0 8px 28px rgba(126, 108, 117, .10); }
.mq-progress-label { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; font-size: .82rem; font-weight: 700; color: var(--mq-text); }
.mq-progress { height: 7px; overflow: hidden; border-radius: 99px; background: #eadfe3; }
.mq-progress span { display: block; width: 16.666%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mq-mauve), var(--mq-gold)); transition: width .35s ease; }

.mq-form { padding: clamp(26px, 5vw, 52px); border: 1px solid rgba(176, 118, 144, .18); border-radius: 28px; background: var(--mq-white); box-shadow: 0 22px 60px rgba(126, 108, 117, .08); }
.mq-step { animation: mq-fade .28s ease; }
@keyframes mq-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.mq-step-header { margin-bottom: 38px; padding-bottom: 28px; border-bottom: 1px solid #eee4e8; }
.mq-step-header span { color: var(--mq-text); }
.mq-field, .mq-choice-group { margin: 0 0 34px; padding: 0; border: 0; }
.mq-field > label, .mq-choice-group > legend { display: block; width: 100%; margin: 0 0 8px; color: var(--mq-ink); font-size: 1.05rem; font-weight: 700; }
.mq-help, .mq-limit { margin: 0 0 12px !important; color: var(--mq-text); font-size: .9rem; }
.mq-limit.is-warning { color: #a63c63; font-weight: 700; }

.mq-shell input[type="text"], .mq-shell input[type="email"], .mq-shell input[type="date"], .mq-shell input[type="file"], .mq-shell textarea {
  width: 100%; min-height: 50px; padding: 13px 15px; border: 1px solid #d9cdd2; border-radius: 12px; background: #ffffff; color: var(--mq-ink); font: inherit; box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
.mq-shell textarea { resize: vertical; }
.mq-shell input:focus, .mq-shell textarea:focus { outline: 0; border-color: var(--mq-mauve); box-shadow: 0 0 0 4px rgba(187, 137, 165, .16); }
.mq-two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.mq-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mq-option { position: relative; display: flex; min-height: 54px; cursor: pointer; }
.mq-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mq-option span { display: flex; align-items: center; width: 100%; padding: 13px 15px 13px 46px; border: 1px solid #ded3d7; border-radius: 13px; background: #ffffff; color: var(--mq-text); line-height: 1.35; transition: .2s ease; }
.mq-option span::before { content: ""; position: absolute; left: 16px; width: 18px; height: 18px; border: 1.5px solid #bcaab2; border-radius: 5px; background: #fff; }
.mq-option input[type="radio"] + span::before { border-radius: 50%; }
.mq-option input:checked + span { border-color: var(--mq-mauve); background: #ffffff; color: var(--mq-ink); box-shadow: 0 4px 14px rgba(176, 118, 144, .15); }
.mq-option input:checked + span::before { border-color: var(--mq-plum); background: var(--mq-plum); box-shadow: inset 0 0 0 4px #fff; }
.mq-option input:focus-visible + span { outline: 3px solid rgba(187, 137, 165, .35); outline-offset: 2px; }
.mq-clear-radio { margin-top: 10px; padding: 4px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: #98868e; cursor: pointer; font: inherit; font-size: .8rem; }
.mq-clear-radio:hover { color: var(--mq-plum); }
.mq-clear-radio:focus-visible { outline: 3px solid rgba(187, 137, 165, .28); outline-offset: 3px; }
.mq-conditional { margin-top: -16px; padding: 22px; border: 1px solid #eee4e8; border-radius: 14px; background: #ffffff; }
.mq-conditional[hidden], .mq-step[hidden], .mq-shell [hidden] { display: none !important; }

.mq-finish-card { margin: 42px 0 14px; padding: 28px; border: 1px solid rgba(199, 168, 109, .35); border-radius: 18px; background: #ffffff; text-align: center; }
.mq-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid #eee4e8; }
.mq-button { min-height: 50px; padding: 13px 22px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
.mq-button:hover { transform: translateY(-1px); }
.mq-button-primary { margin-left: auto; background: var(--mq-plum); color: #fff; box-shadow: 0 8px 18px rgba(176, 118, 144, .24); }
.mq-button-primary:hover { background: #9c6680; color: #fff; }
.mq-button-secondary { border-color: #d7c8ce; background: #fff; color: var(--mq-text); }
.mq-button:focus-visible { outline: 3px solid rgba(187, 137, 165, .38); outline-offset: 3px; }
.mq-button:disabled { opacity: .65; cursor: wait; transform: none; }
.mq-draft-status { margin: 16px 0 0 !important; color: #98868e; font-size: .78rem; text-align: center; }
.mq-error { margin-top: 24px; padding: 14px 16px; border-radius: 10px; background: #fff0f2; color: #8f294c; }
.mq-success { text-align: center; }
.mq-success-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 24px; border-radius: 50%; background: var(--mq-plum); color: #fff; font-size: 1.8rem; }
.mq-hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 700px) {
  .mq-shell { width: min(100% - 20px, 920px); margin: 20px auto; }
  .mq-intro, .mq-form, .mq-success { border-radius: 20px; }
  .mq-progress-wrap { top: 6px; margin: 16px 0; padding: 14px 16px; }
  .mq-progress-title { max-width: 60%; }
  .mq-two-columns, .mq-options { grid-template-columns: 1fr; gap: 9px; }
  .mq-actions { flex-direction: column-reverse; }
  .mq-button, .mq-button-primary { width: 100%; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mq-shell *, .mq-shell *::before, .mq-shell *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
