body {
  min-height: 100vh;
  font-family: var(--font-myanmar);
}

.site-header {
  height: 66px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 7px;
}

.header-inner > div:last-child {
  display: grid;
  line-height: 1.25;
}

.header-inner strong {
  font-family: var(--font-ui);
  font-size: 16px;
}

.header-inner span {
  color: var(--muted);
  font-size: 12px;
}

.survey-main {
  width: min(100% - 32px, 760px);
  margin: 36px auto 64px;
}

.survey-intro {
  margin-bottom: 24px;
  padding-left: 20px;
  border-left: 4px solid var(--gold);
}

.site-kicker {
  margin: 0 0 7px;
  color: var(--primary-dark);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.survey-intro h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.45;
}

.survey-intro > p:not(.site-kicker) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.survey-period {
  margin-top: 16px;
  padding: 10px 12px;
  color: #765716;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.survey-period strong {
  display: block;
  color: #5e430f;
  font-size: 11px;
}

.completion {
  margin-top: 20px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
}

.completion-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.completion-track {
  height: 7px;
  overflow: hidden;
  background: #dfe7e3;
  border-radius: 4px;
}

.completion-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--primary);
  transition: width 160ms ease;
}

.survey-form {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.questions {
  display: grid;
  gap: 26px;
}

.question-item {
  display: grid;
  gap: 10px;
}

.question-label-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.question-label-row label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

.required-badge {
  flex: 0 0 auto;
  padding: 3px 7px;
  color: #9b3c2e;
  background: var(--coral-soft);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.counter-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.counter-row .over-limit {
  color: var(--coral);
  font-weight: 700;
}

.identity-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.section-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.uid-guidance {
  display: grid;
  gap: 8px;
}

.uid-help-trigger {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: var(--primary-dark);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.6;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.uid-help-trigger:hover {
  color: var(--primary);
}

.uid-help-trigger:focus-visible {
  outline: 3px solid rgba(21, 122, 85, 0.22);
  outline-offset: 3px;
}

.uid-warning {
  margin: 0;
  padding: 9px 10px;
  color: #903728;
  background: var(--coral-soft);
  border-left: 3px solid var(--coral);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.required-dot {
  color: var(--coral);
}

.wizard-navigation {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.wizard-button {
  width: 100%;
  min-width: 0;
}

.wizard-button.is-invisible {
  visibility: hidden;
  pointer-events: none;
}

.privacy-note {
  margin: 24px 0;
  padding: 13px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #765716;
  background: var(--gold-soft);
  border: 1px solid #ead8a7;
  border-radius: 6px;
}

.privacy-note p {
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
}

.submit-button {
  width: 100%;
  min-height: 50px;
  font-size: 15px;
}

.uid-help-dialog {
  width: min(calc(100% - 32px), 520px);
  max-height: min(80vh, 560px);
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(18, 32, 26, 0.24);
  overflow: auto;
}

.uid-help-dialog::backdrop {
  background: rgba(16, 25, 21, 0.58);
}

.dialog-header {
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.dialog-close {
  min-height: 36px;
  padding: 0 11px;
  flex: 0 0 auto;
  font-size: 12px;
}

.uid-help-dialog > p {
  margin: 0;
  padding: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.error-summary {
  margin-bottom: 22px;
  padding: 12px 14px;
  color: #903728;
  background: var(--coral-soft);
  border: 1px solid #e8bdb4;
  border-left: 4px solid var(--coral);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.6;
}

.state-panel,
.success-panel {
  min-height: 360px;
  padding: 48px 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.state-panel h1,
.success-panel h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.6;
}

.state-panel p,
.success-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

#error-state > .icon {
  color: var(--coral);
}

.success-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
}

.reference-row {
  margin-top: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--canvas);
  border-radius: 6px;
  font-size: 12px;
}

.reference-row strong {
  font-family: var(--font-ui);
}

.site-footer {
  padding: 0 16px 28px;
  color: var(--muted);
  text-align: center;
  font-family: var(--font-ui);
  font-size: 11px;
}

@media (max-width: 640px) {
  .site-header {
    height: 62px;
  }

  .survey-main {
    width: min(100% - 24px, 760px);
    margin-top: 24px;
  }

  .survey-intro {
    padding-left: 14px;
  }

  .survey-intro h1 {
    font-size: 23px;
  }

  .survey-form {
    padding: 20px 16px;
  }

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

  .input,
  .textarea {
    font-size: 16px;
  }

  .question-label-row {
    display: grid;
  }

  .required-badge {
    width: fit-content;
  }

  .wizard-button {
    padding: 0 10px;
    font-size: 13px;
    white-space: normal;
  }

  .dialog-header,
  .uid-help-dialog > p {
    padding: 16px;
  }
}
