:root {
  color-scheme: light;
  --page: #07131c;
  --panel: #ffffff;
  --text: #15191f;
  --muted: #8b9098;
  --line: #d9dde3;
  --soft: #f5f7fa;
  --danger: #d93025;
  --success: #067647;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
}

.page-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0;
}

.registration-panel {
  min-height: 100vh;
  background: var(--panel);
  border-radius: 0 0 6px 6px;
  padding: 18px 20px 20px;
}

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

.brand-logo {
  display: block;
  width: min(70vw, 250px);
  height: auto;
  margin-bottom: 14px;
}

h1 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

form {
  display: grid;
  gap: 24px;
}

.field-block,
.conditional-fields {
  display: grid;
  gap: 10px;
}

.conditional-fields[hidden] {
  display: none;
}

.field-block label,
.field-block > label {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 800;
}

b {
  color: var(--danger);
  font-weight: 800;
}

.field-block p {
  font-size: 17px;
}

input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 0 13px;
  outline: none;
}

input:focus {
  border-color: #7f8fa6;
  box-shadow: 0 0 0 2px rgba(127, 143, 166, 0.12);
}

input::placeholder {
  color: #9aa0a8;
}

.radio-list {
  display: grid;
  gap: 8px;
}

.radio-card {
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #fff;
  font-size: 17px;
  font-weight: 500;
}

.radio-card input[type="radio"] {
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  margin: 0;
  accent-color: #111820;
}

.radio-card:has(input[type="radio"]:checked) {
  border-color: #111820;
}

.suffix-input {
  position: relative;
}

.suffix-input input {
  padding-right: 40px;
}

.suffix-input span {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text);
  font-size: 16px;
}

.submit-button {
  border: 0;
  border-radius: 4px;
  min-height: 56px;
  padding: 12px 18px;
  background: #020b12;
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  cursor: pointer;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.status-message {
  min-height: 22px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.status-message.success {
  color: var(--success);
}

.status-message.error {
  color: var(--danger);
}

.privacy-note {
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(7, 19, 28, 0.62);
}

.dialog-backdrop[hidden] {
  display: none;
}

.submission-card {
  width: min(100%, 338px);
  border-radius: 8px;
  background: #fff;
  padding: 26px 22px 22px;
  box-shadow: 0 24px 70px rgba(7, 19, 28, 0.28);
  text-align: center;
}

.submission-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e7f8ef;
  color: var(--success);
  font-size: 34px;
  font-weight: 900;
}

.submission-card h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.25;
}

.submission-card p {
  color: #4d5560;
  font-size: 16px;
  line-height: 1.6;
}

.dialog-button {
  width: 100%;
  min-height: 50px;
  margin-top: 20px;
  border: 0;
  border-radius: 5px;
  background: #020b12;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.dialog-button:focus {
  outline: 2px solid rgba(2, 11, 18, 0.25);
  outline-offset: 3px;
}

@media (min-width: 640px) {
  body {
    background: #eef2f7;
  }

  .page-shell {
    padding: 0;
  }
}
