:root {
  --red: #b42522;
  --deep-red: #8d1f1d;
  --gold: #c99535;
  --text: #2c2119;
  --muted: #766c61;
  --line: #eadfce;
  --bg: #f7f1e6;
  --paper: #fffaf2;
  --danger: #e34949;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fff8eb 0, #f7f1e6 42%, #efe5d6 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.page {
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.survey {
  width: min(100%, 390px);
  margin: 0;
  padding: 34px 10px 36px;
  background: rgba(255, 250, 242, 0.92);
  border: 1px solid rgba(219, 196, 158, 0.55);
  box-shadow: 0 14px 34px rgba(96, 62, 27, 0.08);
}

h1 {
  margin: 0 16px 22px;
  color: var(--deep-red);
  font-size: 23px;
  line-height: 1.55;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.intro {
  margin: 0 10px 32px;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid rgba(201, 149, 53, 0.18);
  background: #fff4df;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 900;
}

.intro p {
  margin: 0;
}

.intro span,
.required label span,
.required .question span {
  color: var(--red);
}

.field {
  margin: 0 8px 34px;
}

.field label,
.question {
  display: block;
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
}

.required label span,
.required .question span {
  margin-right: 2px;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
}

.input-shell svg {
  width: 18px;
  height: 18px;
  margin: 0 11px;
  fill: #8f8f8f;
  flex: 0 0 auto;
}

input[type="text"],
input[type="tel"],
input:not([type]) {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  font: inherit;
  padding: 6px 8px 6px 0;
  background: transparent;
}

.choice-grid {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fffdf8;
}

.choice-grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.choice-grid.two label + label {
  border-left: 1px solid var(--line);
}

.choice-grid label {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: #73777f;
  font-size: 16px;
  font-weight: 700;
}

.choice-grid.stacked label + label {
  border-top: 1px solid var(--line);
}

input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.choice-grid i {
  width: 18px;
  height: 18px;
  border: 1.5px solid #c7cbd1;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #fff;
}

.choice-grid input:checked + i {
  border-color: var(--red);
  box-shadow: inset 0 0 0 5px #fff;
  background: var(--red);
}

.role {
  margin: 0 8px 40px;
  padding: 16px;
  border: 1px solid rgba(219, 196, 158, 0.55);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(96, 62, 27, 0.05);
}

.role-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 800;
}

.role-copy {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
  white-space: pre-line;
}

.error {
  min-height: 0;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
}

.error:not(:empty) {
  min-height: 18px;
}

.role-error {
  margin: -18px 8px 16px;
}

.actions {
  margin: 0 8px;
  display: grid;
  gap: 10px;
}

button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  font: inherit;
  font-weight: 800;
}

button:disabled {
  opacity: 0.7;
}

.submit {
  background: linear-gradient(135deg, var(--red), #d98530);
  color: #fff;
  box-shadow: 0 14px 28px rgba(121, 53, 26, 0.18);
}

.secondary {
  color: var(--red);
  background: #fff7f2;
  border: 1px solid #ffd6c0;
}

.notice {
  margin: 14px 8px 0;
  color: #2f7d4f;
  font-size: 14px;
  font-weight: 700;
}

@media (min-width: 520px) {
  .survey {
    margin: 24px 0;
    border-radius: 18px;
  }
}
