/* Shared visual design for the active questionnaire pages. */
html.site-density-compact:has(.questionnaire-redesign) {
  zoom: 1;
  background: #fffaf6;
  scroll-padding-bottom: 110px;
}

.questionnaire-redesign {
  --black: #263541;
  --muted: #667986;
  --red: #e47c62;
  --red-dark: #ad4935;
  --gold: #e47c62;
  --white: #fff;
  --question-line: #eee7e2;
  --question-serif: Georgia, "Times New Roman", serif;
  --question-width: 720px;
  --question-footer-height: 88px;
  background: #fffaf6;
  color: var(--black);
  font-size: 16px;
}

.questionnaire-redesign .site-header {
  min-height: 70px;
  color: var(--black);
  background: #fffaf6;
  border-bottom: 1px solid #f0eae5;
}
.questionnaire-redesign .site-header__inner {
  width: min(1120px, calc(100% - 64px));
  min-height: 70px;
}
.questionnaire-redesign .brand { width: 155px; height: auto; padding: 0; background: transparent; }
.questionnaire-redesign .brand__logo { width: 155px; height: auto; }
/* The light-header SVG preserves the red heart and white sparkles. */
.questionnaire-redesign .site-header .brand-logo__image { filter: none; opacity: 1; }
.questionnaire-redesign .header-create-song {
  min-height: 38px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
}
.questionnaire-redesign .header-create-song:hover { color: var(--red-dark); background: #f9eee7; }
.questionnaire-redesign .header-badge {
  min-height: 38px;
  padding: 0 16px;
  color: var(--black);
  border-color: #e7ded7;
  font-size: 13px;
  font-weight: 500;
}
.questionnaire-redesign .header-badge:hover { border-color: var(--red); background: #f9eee7; }
.questionnaire-redesign .header-badge__dot { width: 6px; height: 6px; background: var(--red); }
.questionnaire-redesign .account-menu__panel { color: var(--black); background: #fff; border-color: #eee7e2; }
.questionnaire-redesign .account-menu__panel :is(a, button) { color: var(--black); }
.questionnaire-redesign .account-menu__chevron { border-color: var(--muted); }

body.questionnaire-redesign > .page-shell {
  zoom: 1;
  width: 100%;
  padding: 28px 24px calc(var(--question-footer-height) + 32px);
  flex: 1 0 auto;
}
.questionnaire-redesign .questionnaire { min-height: 0; --question-line: #eee7e2; }
.questionnaire-redesign .questionnaire__topbar,
.questionnaire-redesign .questionnaire__progress {
  width: min(var(--question-width), 100%);
  margin-inline: auto;
}
.questionnaire-redesign .questionnaire__topbar { min-height: 24px; padding: 0 8px; }
.questionnaire-redesign .questionnaire__back-account { display: none; }
.questionnaire-redesign .questionnaire__progress-copy {
  width: 100%;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.questionnaire-redesign .questionnaire__progress-copy strong { font-weight: 500; color: #c65b43; }
.questionnaire-redesign .questionnaire__progress { height: 5px; margin-top: 8px; background: #f3ede7; }
.questionnaire-redesign .questionnaire__layout {
  margin: 0;
  display: block;
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
}
.questionnaire-redesign .questionnaire__aside { display: none; }
.questionnaire-redesign .questionnaire__stage {
  width: min(var(--question-width), 100%);
  min-height: calc(100svh - 255px);
  padding: 52px 0 30px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* No ancestor transform: the navigation must be fixed to the viewport. */
.questionnaire-redesign .question-step {
  width: 100%;
  max-width: none;
  margin: 0;
  animation: questionnaire-soft-enter .22s ease;
}
@keyframes questionnaire-soft-enter { from { opacity: 0; } to { opacity: 1; } }
.questionnaire-redesign .question-step__heading { margin: 0 0 32px; max-width: none; text-align: center; }
.questionnaire-redesign .question-step__eyebrow {
  margin-bottom: 14px;
  color: #9d6656;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
}
.questionnaire-redesign .question-step h1,
.questionnaire-redesign .lyrics-loading h2,
.questionnaire-redesign .lyrics-editor h2,
.questionnaire-redesign .resume-choice h2 {
  font-family: var(--question-serif);
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.questionnaire-redesign .question-step h1 em { color: inherit; font-weight: inherit; }
.questionnaire-redesign .question-step__heading p {
  max-width: 680px;
  margin: 15px auto 0;
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}
.questionnaire-redesign .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.questionnaire-redesign .choice-card {
  min-height: 76px;
  padding: 20px 42px 20px 20px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 0 12px;
  border: 1px solid #f0ebe6;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}
.questionnaire-redesign .choice-card:hover { transform: none; border-color: #e7b09e; background: #fffefd; }
.questionnaire-redesign .choice-card:has(input:checked),
.questionnaire-redesign .extra-option:has(input:checked),
.questionnaire-redesign .package-card:has(input:checked) {
  border-color: var(--red);
  background: #fbeee8;
  box-shadow: inset 0 0 0 1px var(--red);
}
.questionnaire-redesign .choice-card__icon,
.questionnaire-redesign .choice-card--voice .choice-card__icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  color: #bc8976;
  border-radius: 0;
  background: none;
}
.questionnaire-redesign .choice-icon,
.questionnaire-redesign .choice-card--voice .choice-icon { width: 24px; height: 24px; }
.questionnaire-redesign .choice-card b { grid-column: 2; font-size: 15px; line-height: 1.5; font-weight: 600; overflow-wrap: normal; }
.questionnaire-redesign .choice-card small { grid-column: 2; margin-top: 3px; font-size: 13px; line-height: 1.5; }
.questionnaire-redesign .choice-card--tall,
.questionnaire-redesign .choice-card--voice { min-height: 100px; }
.questionnaire-redesign .choice-card::after,
.questionnaire-redesign .package-card::after,
.questionnaire-redesign .extra-option::after {
  top: 50%; right: 14px;
  width: 18px; height: 18px;
  margin-top: -9px;
  font-size: 10px;
  box-shadow: none;
  background: var(--red);
  color: #fff;
}
.questionnaire-redesign .package-card::after { top: 28px; }
.questionnaire-redesign :is(.choice-card, .extra-option, .package-card):has(input:focus-visible),
.questionnaire-redesign .button:focus-visible { outline: 3px solid #c98263; outline-offset: 4px; }
.questionnaire-redesign .custom-answer { margin-top: 22px; }
.questionnaire-redesign .custom-answer label,
.questionnaire-redesign .story-field > label { font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.questionnaire-redesign .custom-answer input,
.questionnaire-redesign .story-field textarea,
.questionnaire-redesign .lyrics-editor textarea {
  border-color: #eee7e2;
  border-radius: 16px;
  background: #fff;
  font-size: 16px;
}
.questionnaire-redesign .custom-answer input:focus,
.questionnaire-redesign .story-field textarea:focus,
.questionnaire-redesign .lyrics-editor textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px #e47c6218; }
.questionnaire-redesign .story-field { padding: 0; border: 0; background: none; }
.questionnaire-redesign .story-field textarea { min-height: 210px; padding: 22px; }
.questionnaire-redesign .story-field textarea::placeholder { color: #8a979e; }
.questionnaire-redesign .story-field__meta { font-size: 12px; gap: 18px; margin-top: 12px; }
.questionnaire-redesign .story-field__meta span:last-child { font-weight: 500; color: var(--muted); }
.questionnaire-redesign .field-error { font-size: 14px; font-weight: 500; line-height: 1.5; }

.questionnaire-redesign .question-step__actions,
.questionnaire-redesign .lyrics-edit-panel__actions {
  position: fixed;
  z-index: 30;
  inset: auto 0 0;
  min-height: var(--question-footer-height);
  margin: 0;
  padding: 16px max(24px, calc((100vw - var(--question-width)) / 2)) calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #eee7e2;
  background: #fffffff7;
  backdrop-filter: blur(16px);
}
.questionnaire-redesign .question-step__actions--end { justify-content: flex-end; }
.questionnaire-redesign .button { min-height: 50px; padding: 0 25px; gap: 8px; font-size: 15px; font-weight: 650; }
.questionnaire-redesign .button:hover { transform: none; }
.questionnaire-redesign .button--primary { min-width: 182px; background: var(--red); color: #fff; }
.questionnaire-redesign .button--primary:hover { background: #d56d54; }
.questionnaire-redesign .button--ghost { border-color: #ded6d0; background: transparent; font-weight: 500; }
.questionnaire-redesign .button--ghost:hover { background: #f9f1eb; }
.questionnaire-redesign .question-step__actions [data-back] { padding-left: 8px; border: 0; color: var(--muted); }
.questionnaire-redesign .question-step__actions .button { width: auto; }
.questionnaire-redesign .questionnaire__message { margin: 0 0 24px; font-size: 14px; }

.questionnaire-redesign .lyrics-loading {
  min-height: 350px;
  padding: 30px 0;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 30px;
  text-align: center;
  color: var(--black);
  background: none;
}
.questionnaire-redesign .lyrics-loading__disc {
  width: 92px; height: 92px; margin: 0;
  border: 0; background: #fbeee8; box-shadow: none;
}
.questionnaire-redesign .lyrics-loading__disc > span {
  width: 68px; height: 68px;
  background: var(--red); color: #fff; font-size: 32px;
  box-shadow: none; animation: none;
}
.questionnaire-redesign .lyrics-loading__progress { filter: none; }
.questionnaire-redesign .lyrics-loading__progress-track { stroke: #f1ded4; }
.questionnaire-redesign .lyrics-loading p { margin: 16px auto 0; font-size: 16px; color: var(--muted); }
.questionnaire-redesign .lyrics-editor { padding: 0; border: 0; background: none; }
.questionnaire-redesign .lyrics-editor__heading { text-align: center; justify-content: center; margin-bottom: 30px; }
.questionnaire-redesign .lyrics-editor__heading > div > span { margin-bottom: 12px; font-size: 11px; font-weight: 500; color: #9d6656; }
.questionnaire-redesign .lyrics-editor__mark { display: none; }
.questionnaire-redesign .lyrics-editor__text {
  height: clamp(300px, 45vh, 520px);
  padding: 30px 34px;
  border: 1px solid #f3ede7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 25px #795e4810;
  font-family: var(--question-serif);
  font-size: 21px;
  line-height: 1.7;
  scrollbar-color: #dcd7d2 transparent;
  scrollbar-width: thin;
}
.questionnaire-redesign .lyrics-editor__text strong { color: #cd6b53; font-weight: 700; }
.questionnaire-redesign .lyrics-editor > p { margin: 20px 0 0; padding: 18px 22px; border: 1px solid #eee7e2; border-radius: 16px; font-size: 14px; }
.questionnaire-redesign .lyrics-editor__actions { flex-wrap: nowrap; }
.questionnaire-redesign .lyrics-editor__tools { margin-top: 14px; }
.questionnaire-redesign .lyrics-editor__tools .button { min-height: 42px; font-size: 14px; }
.questionnaire-redesign .lyrics-editor:has(.lyrics-edit-panel:not([hidden])) > .question-step__actions { display: none; }
.questionnaire-redesign .lyrics-edit-panel { background: #fbf3ed; border-color: #ead6ca; }
.questionnaire-redesign .lyrics-edit-panel > p:not(.field-error) { font-size: 14px; }
.questionnaire-redesign .lyrics-edit-panel__meta { font-size: 12px; }
.questionnaire-redesign .lyrics-error { background: #fbede7; border-color: #e9c3b5; }

.questionnaire-redesign .package-grid { gap: 16px; }
.questionnaire-redesign .package-card { min-height: 305px; padding: 28px; border-color: #eee7e2; border-radius: 18px; color: var(--black); background: #fff; }
.questionnaire-redesign .package-card:hover { transform: none; border-color: #e7b09e; }
.questionnaire-redesign .package-card__top { flex-wrap: wrap; gap: 10px; padding-right: 16px; }
.questionnaire-redesign .package-card__top b { font-size: 20px; font-weight: 600; }
.questionnaire-redesign .package-card__top em { font-size: 9px; letter-spacing: .04em; background: #f8eae0; color: #a46349; font-weight: 600; }
.questionnaire-redesign .package-card > strong { color: var(--black); font-size: 36px; margin: 26px 0; font-weight: 500; }
.questionnaire-redesign .package-card ul { padding-top: 22px; border-color: #eee7e2; }
.questionnaire-redesign .package-card li { font-size: 13px; color: var(--muted); }
.questionnaire-redesign .package-card li::before { color: #bb765c; }
.questionnaire-redesign .video-showcase { color: var(--black); background: #fff; border: 1px solid #eee7e2; box-shadow: none; margin: 0 0 26px; }
.questionnaire-redesign .video-showcase__summary { padding: 20px; }
.questionnaire-redesign .video-showcase__play { background: #fbe9df; color: #be7257; box-shadow: none; }
.questionnaire-redesign .video-showcase__intro small,
.questionnaire-redesign .video-showcase__copy > span { color: #a86750; font-size: 10px; letter-spacing: .06em; }
.questionnaire-redesign .video-showcase__intro b { font-size: 16px; font-weight: 600; }
.questionnaire-redesign .video-showcase__intro > span { color: var(--muted); font-size: 12px; }
.questionnaire-redesign .video-showcase__action { border-color: #e8ded6; font-size: 12px; font-weight: 500; }
.questionnaire-redesign .video-showcase__body { border-color: #eee7e2; background: #fffcf9; }
.questionnaire-redesign .video-showcase__copy h2 { font-family: var(--question-serif); font-size: 26px; line-height: 1.2; font-weight: 400; }
.questionnaire-redesign .video-showcase__copy p { color: var(--muted); font-size: 14px; }
.questionnaire-redesign .video-showcase__copy li { color: var(--muted); border-color: #eadfd7; font-size: 11px; }
.questionnaire-redesign .extra-group { padding: 20px 0; border: 0; border-radius: 0; margin-bottom: 28px; }
.questionnaire-redesign .extra-group legend { padding: 0; font-size: 16px; font-weight: 600; }
.questionnaire-redesign .extra-group legend span { font-size: 12px; }
.questionnaire-redesign .extra-group legend em { font-size: 13px; font-weight: 500; }
.questionnaire-redesign .extra-option { min-height: 92px; padding: 18px 36px 18px 16px; border-color: #eee7e2; border-radius: 14px; background: #fff; }
.questionnaire-redesign .extra-option b { font-size: 14px; font-weight: 600; }
.questionnaire-redesign .extra-option small { font-size: 12px; }
.questionnaire-redesign .cover-preview { padding: 18px; background: #fff; gap: 24px; }
.questionnaire-redesign .cover-preview figcaption small { font-size: 10px; }
.questionnaire-redesign .cover-preview figcaption strong { font-size: 17px; font-weight: 600; }
.questionnaire-redesign .cover-preview figcaption p { font-size: 13px; }
.questionnaire-redesign .summary-card { background: #fff; border-color: #eee7e2; border-radius: 20px; box-shadow: 0 6px 25px #795e4809; }
.questionnaire-redesign .summary-card__header { color: var(--black); background: #fbf0e8; }
.questionnaire-redesign .summary-card__header span { font-weight: 500; }
.questionnaire-redesign .summary-card__header strong { color: var(--black); font-size: 32px; font-weight: 500; }
.questionnaire-redesign .summary-card dl > div { min-height: 68px; }
.questionnaire-redesign .summary-card dt,
.questionnaire-redesign .summary-card dd { font-size: 14px; line-height: 1.5; }
.questionnaire-redesign .summary-card dd { font-weight: 500; }
.questionnaire-redesign .summary-card__secure { font-size: 13px; }
.questionnaire-redesign .resume-choice::backdrop { background: #26354166; }
.questionnaire-redesign .resume-choice__card { background: #fffaf6; }
.questionnaire-redesign .resume-choice h2 { font-size: 34px; }
.questionnaire-redesign > .site-footer {
  --black: #151515;
  --white: #fbfbfb;
  margin-bottom: calc(var(--question-footer-height) + env(safe-area-inset-bottom, 0px));
}

/* The redesigned form uses native scale, but the shared footer must retain
   the same desktop density as the landing and other public pages. */
@media screen and (min-width: 1200px) {
  .questionnaire-redesign > .site-footer {
    zoom: var(--site-desktop-scale);
    width: auto;
    margin-bottom: calc((var(--question-footer-height) + env(safe-area-inset-bottom, 0px)) / var(--site-desktop-scale));
  }
  .questionnaire-redesign > .site-footer .site-footer__inner::before {
    width: min(1739.5px, calc(100vw / var(--site-desktop-scale) - 180px));
  }
}

@media (max-width: 600px) {
  .questionnaire-redesign { --question-footer-height: 82px; }
  .questionnaire-redesign .site-header,
  .questionnaire-redesign .site-header__inner { min-height: 60px; }
  .questionnaire-redesign .site-header__inner { width: calc(100% - 40px); }
  .questionnaire-redesign .brand { width: 135px; }
  .questionnaire-redesign .brand__logo { width: 135px; }
  .questionnaire-redesign .questionnaire-mobile-nav summary span { background: var(--black); }
  .questionnaire-redesign .questionnaire-mobile-nav > nav { background: #fffaf6; border-color: #e9ded5; box-shadow: 0 15px 40px #795e4820; }
  .questionnaire-redesign .questionnaire-mobile-nav nav a { color: var(--black); font-size: 14px; }
  .questionnaire-redesign .questionnaire-mobile-nav nav .questionnaire-mobile-nav__account { border-color: #eee7e2; color: var(--black); }
  .questionnaire-redesign .questionnaire-mobile-nav nav button { font-size: 14px; }
  body.questionnaire-redesign > .page-shell { padding: 21px 20px calc(var(--question-footer-height) + 32px); }
  .questionnaire-redesign .questionnaire__topbar { padding-inline: 2px; }
  .questionnaire-redesign .questionnaire__stage { min-height: calc(100svh - 233px); padding: 34px 0 16px; }
  .questionnaire-redesign .question-step__heading { margin-bottom: 26px; }
  .questionnaire-redesign .question-step h1 { font-size: 31px; }
  .questionnaire-redesign .question-step__heading p { font-size: 14px; line-height: 1.65; margin-top: 13px; }
  .questionnaire-redesign .question-step__eyebrow { font-size: 10px; margin-bottom: 12px; }
  .questionnaire-redesign .choice-grid { gap: 10px; }
  .questionnaire-redesign .choice-card { min-height: 108px; grid-template-columns: minmax(0, 1fr); padding: 16px 14px; gap: 0; }
  /* Stack the existing SVG above the label instead of hiding it on phones. */
  .questionnaire-redesign .choice-card__icon { display: grid; grid-row: auto; margin-bottom: 8px; }
  .questionnaire-redesign .choice-card b,
  .questionnaire-redesign .choice-card small { grid-column: 1; }
  .questionnaire-redesign .choice-card b { font-size: 14px; overflow-wrap: anywhere; }
  .questionnaire-redesign .choice-card small { font-size: 12px; }
  .questionnaire-redesign .choice-card--tall { min-height: 132px; }
  .questionnaire-redesign .choice-grid--two { grid-template-columns: 1fr; }
  .questionnaire-redesign .choice-card--voice { min-height: 94px; grid-template-columns: 36px 1fr; gap: 14px; padding: 18px 36px 18px 20px; }
  .questionnaire-redesign .choice-card--voice .choice-card__icon { display: grid; grid-row: 1 / span 2; margin-bottom: 0; }
  .questionnaire-redesign .choice-card::after,
  .questionnaire-redesign .extra-option::after { width: 16px; height: 16px; right: 8px; font-size: 9px; }
  .questionnaire-redesign .choice-card:not(.choice-card--voice)::after { top: 22px; margin-top: 0; }
  .questionnaire-redesign .story-field textarea { min-height: 220px; padding: 18px; }
  .questionnaire-redesign .story-field__meta { flex-direction: column; gap: 5px; }
  .questionnaire-redesign .question-step__actions,
  .questionnaire-redesign .lyrics-edit-panel__actions { padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
  .questionnaire-redesign .question-step__actions .button { min-height: 50px; min-width: 0; font-size: 14px; padding-inline: 18px; }
  .questionnaire-redesign .question-step__actions [data-back] { padding-inline: 0; white-space: nowrap; }
  .questionnaire-redesign .question-step__actions .button--primary { margin-left: auto; }
  .questionnaire-redesign .lyrics-editor h2 { font-size: 30px; }
  .questionnaire-redesign .lyrics-editor__text { height: 42svh; min-height: 280px; padding: 22px; font-size: 19px; }
  .questionnaire-redesign .lyrics-editor > p { font-size: 13px; padding: 16px; }
  .questionnaire-redesign .lyrics-editor__actions .button { font-size: 13px; padding-inline: 16px; }
  .questionnaire-redesign .lyrics-edit-panel__actions .button { width: auto; min-width: 0; min-height: 50px; font-size: 13px; padding-inline: 16px; }
  .questionnaire-redesign .lyrics-editor__actions #lyrics-edit-open { margin-right: auto; }
  .questionnaire-redesign .lyrics-loading { min-height: 300px; }
  .questionnaire-redesign .lyrics-loading p { font-size: 14px; }
  .questionnaire-redesign .package-grid { grid-template-columns: 1fr; gap: 14px; }
  .questionnaire-redesign .package-card { min-height: 260px; padding: 24px; }
  .questionnaire-redesign .package-card__top { flex-wrap: nowrap; }
  .questionnaire-redesign .package-card > strong { margin: 22px 0; }
  .questionnaire-redesign .extra-group { grid-template-columns: 1fr; padding: 18px 0; }
  .questionnaire-redesign .extra-group--boolean { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .questionnaire-redesign .extra-option { padding: 16px 28px 16px 14px; min-height: 80px; }
  .questionnaire-redesign .extra-group legend { font-size: 15px; line-height: 1.6; }
  .questionnaire-redesign .extra-group legend em { white-space: nowrap; }
  .questionnaire-redesign .video-showcase__summary { padding: 16px 12px; }
  .questionnaire-redesign .video-showcase__intro b { font-size: 14px; }
  .questionnaire-redesign .video-showcase__intro small { font-size: 9px; }
  .questionnaire-redesign .video-showcase__intro > span { font-size: 12px; }
  .questionnaire-redesign .video-showcase__body { grid-template-columns: 1fr; }
  .questionnaire-redesign .cover-preview { grid-template-columns: 98px 1fr; gap: 14px; padding: 12px; }
  .questionnaire-redesign .cover-preview figcaption strong { font-size: 14px; }
  .questionnaire-redesign .cover-preview figcaption p { font-size: 12px; }
  .questionnaire-redesign .summary-card__header { flex-direction: row; align-items: center; }
  .questionnaire-redesign .summary-card__header span { font-size: 14px; }
  .questionnaire-redesign .summary-card__header strong { font-size: 27px; white-space: nowrap; }
  .questionnaire-redesign .summary-card dl > div { min-height: 65px; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .questionnaire-redesign .question-step { animation: none; }
  .questionnaire-redesign .questionnaire__progress span { transition: none; }
}
