:root {
  --forest-950: #07281f;
  --forest-900: #0b3d2e;
  --forest-800: #10513c;
  --forest-700: #1a654b;
  --forest-600: #2c7a5d;
  --sage-300: #c7d8c8;
  --sage-200: #dce7dd;
  --sage-100: #edf3ec;
  --cream: #f4efe3;
  --cream-deep: #ece4d2;
  --paper: #fffdf8;
  --gold: #c7a15a;
  --gold-soft: #e7c98b;
  --gold-dark: #987231;
  --ink: #18261f;
  --muted: #65736b;
  --muted-light: #8a958e;
  --line: #e3ddcf;
  --line-strong: #cfc6b4;
  --danger: #a84535;
  --danger-soft: #f7e9e5;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --shadow-card: 0 30px 80px rgba(7, 40, 31, 0.12), 0 4px 18px rgba(7, 40, 31, 0.05);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 22%, rgba(199, 161, 90, 0.08), transparent 30%),
    radial-gradient(circle at 88% 68%, rgba(26, 101, 75, 0.08), transparent 34%);
}

::selection {
  color: var(--paper);
  background: var(--forest-700);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--paper);
  background: var(--forest-900);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ------------------------------------------------------------------ */
/*  Header                                                            */
/* ------------------------------------------------------------------ */

.site-header {
  position: relative;
  z-index: 5;
  color: var(--paper);
  background: var(--forest-950);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 64px));
  min-height: 78px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  color: var(--forest-950);
  background: var(--gold-soft);
  border: 1px solid rgba(255, 253, 248, 0.45);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  place-items: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand-text small {
  margin-top: 3px;
  color: rgba(255, 253, 248, 0.56);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8px;
  letter-spacing: 0.22em;
}

.header-tag {
  padding: 6px 13px;
  color: rgba(255, 253, 248, 0.74);
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* ------------------------------------------------------------------ */
/*  Hero                                                              */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 18%, rgba(199, 161, 90, 0.16), transparent 27%),
    radial-gradient(circle at 18% 104%, rgba(44, 122, 93, 0.4), transparent 38%),
    linear-gradient(135deg, var(--forest-950) 0%, #0b3529 54%, #104534 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -110px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(231, 201, 139, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 58px rgba(231, 201, 139, 0.025), 0 0 0 116px rgba(231, 201, 139, 0.018);
}

.hero::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 14%;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 9px rgba(199, 161, 90, 0.12);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: center;
  width: min(1120px, calc(100% - 64px));
  padding: 72px 0 142px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 720px;
  animation: rise-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: 0.24em;
}

.eyebrow-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5.3vw, 68px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.015em;
}

.hero h1 em {
  color: var(--gold-soft);
  font-style: normal;
}

.hero-lead {
  max-width: 590px;
  margin: 26px 0 0;
  color: rgba(255, 253, 248, 0.68);
  font-size: 15px;
  line-height: 1.95;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 31px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 253, 248, 0.52);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.hero-meta span + span::before {
  content: "";
  width: 1px;
  height: 12px;
  margin: 0 18px;
  background: rgba(255, 253, 248, 0.2);
}

.hero-meta b {
  color: rgba(255, 253, 248, 0.9);
  font-weight: 500;
}

.hero-seal {
  display: flex;
  justify-content: center;
  animation: seal-in 950ms 120ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.seal-ring {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 258px;
  height: 258px;
  border: 1px solid rgba(231, 201, 139, 0.48);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 9px rgba(231, 201, 139, 0.035),
    inset 0 0 0 10px rgba(231, 201, 139, 0.18);
}

.seal-ring::before,
.seal-ring::after {
  content: "✦";
  position: absolute;
  color: var(--gold);
  font-size: 11px;
}

.seal-ring::before {
  top: 36px;
  left: 48px;
}

.seal-ring::after {
  right: 48px;
  bottom: 36px;
}

.seal-top,
.seal-bottom {
  color: rgba(231, 201, 139, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8px;
  letter-spacing: 0.24em;
}

.seal-big {
  margin: 9px 0 8px;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
}

.seal-line {
  width: 34px;
  height: 1px;
  margin-bottom: 10px;
  background: rgba(231, 201, 139, 0.55);
}

.hero-rule {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  color: rgba(231, 201, 139, 0.56);
}

.hero-rule::before,
.hero-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 201, 139, 0.22));
}

.hero-rule::after {
  background: linear-gradient(90deg, rgba(231, 201, 139, 0.22), transparent);
}

.hero-rule span {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes seal-in {
  from { opacity: 0; transform: scale(0.9) rotate(-5deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

/* ------------------------------------------------------------------ */
/*  Layout                                                            */
/* ------------------------------------------------------------------ */

.page-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  width: min(1120px, calc(100% - 64px));
  margin: -88px auto 0;
  padding-bottom: 64px;
}

.form-column {
  min-width: 0;
}

.progress-card {
  position: sticky;
  top: 24px;
  padding: 25px 22px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(7, 40, 31, 0.06);
  backdrop-filter: blur(12px);
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress-kicker {
  color: var(--muted-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8px;
  letter-spacing: 0.18em;
}

.progress-count {
  color: var(--muted);
  font-size: 12px;
}

.progress-count b {
  color: var(--forest-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}

.progress-count span {
  margin-left: 3px;
  color: var(--muted-light);
  font-size: 10px;
}

.progress-track {
  overflow: hidden;
  height: 4px;
  margin: 15px 0 22px;
  background: var(--sage-100);
  border-radius: 99px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--forest-700), var(--gold));
  border-radius: inherit;
  transition: width 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.progress-list {
  display: grid;
  gap: 2px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.progress-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  color: var(--muted-light);
  font-size: 12px;
  transition: color 180ms ease;
}

.progress-list li span {
  color: var(--line-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  transition: color 180ms ease;
}

.progress-list li.is-current {
  color: var(--forest-800);
  font-weight: 600;
}

.progress-list li.is-current span {
  color: var(--gold-dark);
}

.progress-list li.is-done {
  color: var(--forest-700);
}

.progress-list li.is-done span {
  color: var(--forest-600);
}

.progress-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding-top: 17px;
  margin: 15px 0 0;
  color: var(--muted-light);
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.6;
}

.progress-note svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--forest-600);
}

.returning-note {
  padding: 11px 16px;
  margin-bottom: 12px;
  color: var(--forest-700);
  background: var(--sage-100);
  border: 1px solid var(--sage-200);
  border-radius: 10px;
  font-size: 12px;
}

/* ------------------------------------------------------------------ */
/*  Form shell                                                        */
/* ------------------------------------------------------------------ */

.survey-form {
  padding: 46px 50px 42px;
  background: var(--paper);
  border: 1px solid rgba(227, 221, 207, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.form-intro {
  padding-bottom: 30px;
}

.form-kicker {
  margin: 0 0 10px;
  color: var(--gold-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: 0.22em;
}

.form-intro h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.form-intro > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.req {
  color: var(--gold-dark);
  font-weight: 600;
}

.form-error-banner {
  padding: 12px 16px;
  margin-bottom: 6px;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(168, 69, 53, 0.18);
  border-radius: 10px;
  font-size: 13px;
}

.question-block {
  padding: 34px 0 8px;
  border-top: 1px solid var(--line);
}

.question-block:first-of-type {
  border-top: 0;
}

.question-head {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.q-index {
  flex: 0 0 auto;
  padding-top: 1px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.q-index--small {
  font-size: 19px;
}

.q-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.015em;
}

.q-help {
  margin: 5px 0 0;
  color: var(--muted-light);
  font-size: 12px;
  line-height: 1.6;
}

.sub-question {
  padding-top: 30px;
  margin-top: 27px;
  border-top: 1px dashed var(--line);
}

.fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.fieldset[data-field="campus"],
.fieldset[data-field="targetScore"],
.fieldset[data-field="abroadIntent"],
.fieldset[data-field="purposes"] {
  padding-left: 0;
}

/* ------------------------------------------------------------------ */
/*  Choice cards                                                      */
/* ------------------------------------------------------------------ */

.choice-grid {
  display: grid;
  gap: 10px;
}

.choice-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 14px 14px 14px 17px;
  background: #fbf9f2;
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.choice-card:hover {
  border-color: var(--sage-300);
  background: var(--sage-100);
  transform: translateY(-1px);
}

.choice-card:has(input:checked) {
  background: var(--sage-100);
  border-color: var(--forest-700);
  box-shadow: inset 0 0 0 1px var(--forest-700);
}

.choice-card.is-selected {
  background: var(--sage-100);
  border-color: var(--forest-700);
  box-shadow: inset 0 0 0 1px var(--forest-700);
}

.choice-card:has(input:checked) .choice-icon {
  color: var(--paper);
  background: var(--forest-700);
  border-color: var(--forest-700);
}

.choice-card.is-selected .choice-icon {
  color: var(--paper);
  background: var(--forest-700);
  border-color: var(--forest-700);
}

.choice-card:has(input:focus-visible) {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-right: 18px;
}

.choice-icon {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 4px;
  color: var(--forest-700);
  background: var(--paper);
  border: 1px solid var(--sage-200);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 13px;
  place-items: center;
  transition: color 180ms ease, background 180ms ease;
}

.choice-card:has(input:checked) .choice-icon {
  color: var(--paper);
  background: var(--forest-700);
  border-color: var(--forest-700);
}

.choice-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.choice-note {
  color: var(--muted-light);
  font-size: 10px;
  line-height: 1.5;
}

.choice-check {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  width: 17px;
  height: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  place-items: center;
  transition: border-color 180ms ease, background 180ms ease;
}

.choice-check::after {
  content: "";
  width: 7px;
  height: 4px;
  border-bottom: 1.5px solid var(--paper);
  border-left: 1.5px solid var(--paper);
  opacity: 0;
  transform: translateY(-1px) rotate(-45deg);
  transition: opacity 180ms ease;
}

.choice-card:has(input:checked) .choice-check {
  background: var(--forest-700);
  border-color: var(--forest-700);
}

.choice-card.is-selected .choice-check,
.choice-card input:checked ~ .choice-check {
  background: var(--forest-700);
  border-color: var(--forest-700);
}

.choice-card:has(input:checked) .choice-check::after {
  opacity: 1;
}

.choice-card.is-selected .choice-check::after,
.choice-card input:checked ~ .choice-check::after {
  opacity: 1;
}

.choice-card--compact {
  min-height: 78px;
}

.choice-card--compact .choice-label {
  font-size: 16px;
}

/* Score */

.score-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.score-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  padding: 12px 6px;
  background: #fbf9f2;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.score-card:hover {
  background: var(--sage-100);
  border-color: var(--sage-300);
  transform: translateY(-1px);
}

.score-card:has(input:checked) {
  color: var(--paper);
  background: var(--forest-800);
  border-color: var(--forest-800);
  box-shadow: 0 7px 16px rgba(11, 61, 46, 0.18);
}

.score-card.is-selected {
  color: var(--paper);
  background: var(--forest-800);
  border-color: var(--forest-800);
  box-shadow: 0 7px 16px rgba(11, 61, 46, 0.18);
}

.score-card:has(input:focus-visible) {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

.score-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.score-value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.score-unit {
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 9px;
  letter-spacing: 0.12em;
  transition: color 180ms ease;
}

.score-card:has(input:checked) .score-unit {
  color: rgba(255, 253, 248, 0.64);
}

.score-card.is-selected .score-unit,
.score-card input:checked ~ .score-unit {
  color: rgba(255, 253, 248, 0.64);
}

/* Purposes */

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.purpose-card {
  position: relative;
  display: flex;
  gap: 11px;
  align-items: center;
  min-height: 50px;
  padding: 11px 14px;
  color: var(--ink);
  background: #fbf9f2;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.purpose-card:hover {
  background: var(--sage-100);
  border-color: var(--sage-300);
}

.purpose-card:has(input:checked) {
  background: var(--sage-100);
  border-color: var(--forest-600);
}

.purpose-card.is-selected {
  background: var(--sage-100);
  border-color: var(--forest-600);
}

.purpose-card:has(input:focus-visible) {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

.purpose-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.purpose-box {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  transition: background 180ms ease, border-color 180ms ease;
}

.purpose-box::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 5px;
  width: 4px;
  height: 7px;
  border-right: 1.6px solid var(--paper);
  border-bottom: 1.6px solid var(--paper);
  opacity: 0;
  transform: rotate(42deg);
  transition: opacity 150ms ease;
}

.purpose-card:has(input:checked) .purpose-box {
  background: var(--forest-700);
  border-color: var(--forest-700);
}

.purpose-card.is-selected .purpose-box,
.purpose-card input:checked ~ .purpose-box {
  background: var(--forest-700);
  border-color: var(--forest-700);
}

.purpose-card:has(input:checked) .purpose-box::after {
  opacity: 1;
}

.purpose-card.is-selected .purpose-box::after,
.purpose-card input:checked ~ .purpose-box::after {
  opacity: 1;
}

.other-purpose-wrap {
  padding: 15px;
  margin-top: 12px;
  background: var(--sage-100);
  border: 1px dashed var(--sage-300);
  border-radius: 10px;
}

.small-label {
  display: block;
  margin-bottom: 7px;
  color: var(--forest-700);
  font-size: 11px;
  font-weight: 600;
}

/* ------------------------------------------------------------------ */
/*  Text inputs                                                       */
/* ------------------------------------------------------------------ */

.text-area,
.text-input {
  display: block;
  width: 100%;
  color: var(--ink);
  background: #fbf9f2;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.text-area {
  min-height: 96px;
  padding: 13px 15px;
  line-height: 1.75;
  resize: vertical;
}

.text-input {
  height: 46px;
  padding: 0 14px;
}

.text-area::placeholder,
.text-input::placeholder {
  color: #a7afa9;
  font-size: 12px;
}

.text-area:hover,
.text-input:hover {
  border-color: var(--sage-300);
}

.text-area:focus,
.text-input:focus {
  background: var(--paper);
  border-color: var(--forest-600);
  box-shadow: 0 0 0 3px rgba(26, 101, 75, 0.1);
}

.field-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  color: var(--muted-light);
  font-size: 10px;
}

.char-count {
  font-variant-numeric: tabular-nums;
}

.price-input-wrap {
  position: relative;
}

.price-prefix {
  position: absolute;
  top: 50%;
  left: 15px;
  color: var(--gold-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  transform: translateY(-50%);
}

.price-input {
  padding-left: 33px;
}

/* ------------------------------------------------------------------ */
/*  Errors                                                           */
/* ------------------------------------------------------------------ */

.field-error {
  display: none;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.5;
}

.field-error:not(:empty) {
  display: block;
}

.fieldset.has-error .choice-card,
.fieldset.has-error .score-card,
.fieldset.has-error .purpose-card,
.fieldset.has-error .text-area,
.fieldset.has-error .text-input {
  border-color: rgba(168, 69, 53, 0.52);
}

.fieldset.has-error .choice-card,
.fieldset.has-error .score-card,
.fieldset.has-error .purpose-card {
  background: #fffaf8;
}

/* ------------------------------------------------------------------ */
/*  Submit                                                           */
/* ------------------------------------------------------------------ */

.form-submit-area {
  padding-top: 33px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.privacy-line {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-bottom: 19px;
  color: var(--muted-light);
  font-size: 10px;
  line-height: 1.65;
}

.privacy-line svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--forest-600);
}

.submit-button {
  position: relative;
  display: flex;
  gap: 13px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 58px;
  padding: 0 28px;
  overflow: hidden;
  color: var(--paper);
  background: var(--forest-900);
  border: 1px solid var(--forest-900);
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.submit-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -35%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 253, 248, 0.13), transparent);
  transform: skewX(-20deg);
  transition: left 600ms ease;
}

.submit-button:hover {
  background: var(--forest-800);
  box-shadow: 0 12px 28px rgba(7, 40, 31, 0.2);
  transform: translateY(-1px);
}

.submit-button:hover::before {
  left: 105%;
}

.submit-button:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.8;
  transform: none;
}

.submit-arrow {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  transition: transform 180ms ease;
}

.submit-button:hover .submit-arrow {
  transform: translateX(3px);
}

.submit-spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 253, 248, 0.3);
  border-top-color: var(--paper);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.submit-button.is-loading .submit-arrow {
  display: none;
}

.submit-button.is-loading .submit-spinner {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.submit-hint {
  margin: 10px 0 0;
  color: var(--muted-light);
  font-size: 9px;
  text-align: center;
  letter-spacing: 0.03em;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------------ */
/*  Success                                                          */
/* ------------------------------------------------------------------ */

.success-card {
  padding: 54px 52px 46px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  animation: rise-in 480ms ease both;
}

.success-mark {
  width: 62px;
  height: 62px;
  margin-bottom: 24px;
  color: var(--forest-700);
}

.success-mark svg {
  width: 100%;
  height: 100%;
}

.success-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.success-lead {
  max-width: 520px;
  margin: 12px 0 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.receipt {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  padding: 13px 16px;
  background: var(--sage-100);
  border: 1px solid var(--sage-200);
  border-radius: 10px;
  font-size: 11px;
}

.receipt span {
  color: var(--muted);
}

.receipt code {
  color: var(--forest-800);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.answer-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  margin: 22px 0 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.answer-summary div {
  padding: 13px 15px;
  background: var(--paper);
}

.answer-summary dt {
  margin-bottom: 3px;
  color: var(--muted-light);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.answer-summary dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.success-actions {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 28px;
}

.secondary-button {
  height: 42px;
  padding: 0 20px;
  color: var(--forest-800);
  background: transparent;
  border: 1px solid var(--forest-700);
  border-radius: 8px;
  font-size: 12px;
  transition: background 180ms ease, color 180ms ease;
}

.secondary-button:hover {
  color: var(--paper);
  background: var(--forest-700);
}

.text-link {
  color: var(--muted);
  font-size: 11px;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--forest-700);
}

.page-footnote {
  padding: 20px 4px 0;
  color: var(--muted-light);
  font-size: 10px;
  line-height: 1.8;
  text-align: center;
}

.page-footnote span {
  color: #a8b0aa;
  font-size: 9px;
}

/* ------------------------------------------------------------------ */
/*  Footer and toast                                                  */
/* ------------------------------------------------------------------ */

.site-footer {
  color: rgba(255, 253, 248, 0.55);
  background: var(--forest-950);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 64px));
  min-height: 76px;
  margin: 0 auto;
  font-size: 10px;
}

.footer-brand {
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 50;
  max-width: calc(100% - 32px);
  padding: 11px 18px;
  color: var(--paper);
  background: var(--forest-950);
  border: 1px solid rgba(231, 201, 139, 0.25);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(7, 40, 31, 0.24);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------------ */
/*  Responsive                                                        */
/* ------------------------------------------------------------------ */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 20px;
  }

  .seal-ring {
    width: 205px;
    height: 205px;
  }

  .seal-big {
    font-size: 46px;
  }

  .seal-top,
  .seal-bottom {
    font-size: 6px;
  }

  .seal-ring::before {
    top: 29px;
    left: 38px;
  }

  .seal-ring::after {
    right: 38px;
    bottom: 29px;
  }

  .page-shell {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 24px;
  }

  .survey-form {
    padding: 38px 34px 34px;
  }

  .score-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner,
  .hero-inner,
  .page-shell,
  .footer-inner {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
    font-size: 10px;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .brand-text small {
    font-size: 7px;
  }

  .header-tag {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 44px 0 112px;
  }

  .hero h1 {
    font-size: clamp(38px, 10vw, 52px);
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.85;
  }

  .hero-meta {
    margin-top: 23px;
  }

  .hero-meta span {
    font-size: 10px;
  }

  .hero-meta span + span::before {
    margin: 0 12px;
  }

  .hero-seal {
    display: none;
  }

  .hero-rule {
    bottom: 26px;
    width: calc(100% - 32px);
  }

  .page-shell {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: -72px;
    padding-bottom: 42px;
  }

  .progress-card {
    position: static;
    padding: 17px 18px;
  }

  .progress-track {
    margin: 10px 0 11px;
  }

  .progress-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: space-between;
  }

  .progress-list li {
    padding: 0;
    font-size: 9px;
  }

  .progress-list li span {
    font-size: 8px;
  }

  .progress-note {
    display: none;
  }

  .survey-form {
    padding: 28px 20px 26px;
    border-radius: 18px;
  }

  .form-intro {
    padding-bottom: 22px;
  }

  .form-intro h2 {
    font-size: 25px;
  }

  .question-block {
    padding-top: 27px;
  }

  .q-index {
    font-size: 21px;
  }

  .q-title {
    font-size: 18px;
  }

  .q-help {
    font-size: 11px;
  }

  .choice-card {
    min-height: 82px;
    padding: 12px 10px;
  }

  .choice-icon {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .choice-label {
    font-size: 12px;
    white-space: normal;
  }

  .choice-note {
    font-size: 9px;
  }

  .choice-check {
    top: 10px;
    right: 9px;
    width: 15px;
    height: 15px;
  }

  .score-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .score-card {
    min-height: 69px;
  }

  .score-value {
    font-size: 21px;
  }

  .purpose-grid {
    grid-template-columns: 1fr;
  }

  .purpose-card {
    min-height: 47px;
  }

  .sub-question {
    padding-top: 24px;
    margin-top: 23px;
  }

  .success-card {
    padding: 36px 24px 32px;
    border-radius: 18px;
  }

  .success-card h2 {
    font-size: 26px;
  }

  .answer-summary {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    min-height: 68px;
    font-size: 9px;
  }
}

@media (max-width: 390px) {
  .choice-grid--3 {
    gap: 7px;
  }

  .choice-card {
    min-height: 78px;
    padding: 10px 8px;
  }

  .choice-icon {
    width: 23px;
    height: 23px;
    margin-bottom: 2px;
    font-size: 11px;
  }

  .choice-label {
    font-size: 11px;
  }

  .choice-note {
    font-size: 8px;
  }

  .choice-check {
    top: 8px;
    right: 7px;
  }

  .q-title {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
