:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #0b0b0b;
  background: #fff;
  --lime: #b2eb38;
  --green: #37641a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; background: #fff; }
button, input { font: inherit; }
button { cursor: pointer; }

main {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 40px 20px;
}

.card {
  width: 500px;
  max-width: 100%;
  padding: 32px 40px 40px;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 13px 44px rgb(0 0 0 / 12%);
}

.intro {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.field { position: relative; }
.field label {
  position: absolute;
  top: -8px;
  left: 9px;
  padding: 0 6px;
  background: #fff;
  font-size: 12px;
  line-height: 16px;
  cursor: text;
}

.field input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 8px 15px;
  border: 2px solid #171717;
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: #111;
  font-size: 16px;
}

.field input:focus-visible { box-shadow: 0 0 0 3px rgb(178 235 56 / 40%); }
.field input[aria-invalid="true"] { border-color: #c00; }
.field:has(input[aria-invalid="true"]) label { color: #c00; }
.field input[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px rgb(204 0 0 / 12%); }
.field input[readonly] { color: #555; }
.name-feedback {
  display: flex;
  gap: 8px;
  margin: 10px 0 0;
  color: #c00;
  font-size: 12px;
  line-height: 17px;
}
.name-feedback::before { content: '⚠'; flex-shrink: 0; }

.email-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  margin-bottom: 20px;
  padding: 10px 15px;
  border: 1px solid #999;
  border-radius: 9px;
  font-size: 16px;
}
.email-summary span { min-width: 0; overflow-wrap: anywhere; }
.email-summary .text-button { flex-shrink: 0; font-size: 14px; }

.continue {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 23px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: #173e00;
  font-size: 14px;
  font-weight: 700;
}

.continue:hover { background: #a7e329; }
.continue:active { background: #9fd426; }
.continue:disabled { cursor: wait; opacity: 0.65; }
.notice { margin: 12px 0 0; color: #555; font-size: 12px; line-height: 18px; }
.text-button {
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 1px;
}

.status { margin: 14px 0 0; color: var(--green); font-size: 13px; line-height: 19px; }
.status.error { color: #c00; }
button:focus-visible { outline: 3px solid #719b24; outline-offset: 4px; }

@media (max-width: 560px) {
  main { padding: 32px 20px; }
  .card { padding: 30px 24px 32px; }
  .text-button { margin-left: 0; }
}

@media (max-width: 360px) {
  main { padding-right: 14px; padding-left: 14px; }
  .card { padding-right: 20px; padding-left: 20px; }
}

.model-icon { font-size: 64px; text-align: center; margin-bottom: 20px; }
#model-step h1 { font-size: 19px; text-align: center; margin: 0 0 20px; }
.model-help { text-align: center; font-size: 14px; line-height: 22px; margin: 0 0 28px; }

.registration { margin: 30px 0 0; font-size: 14px; line-height: 20px; }
.registration-link { margin-left: 4px; color: var(--green); font-weight: 700; text-decoration: underline; }

.name-help {
  margin: 17px 4px 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: underline;
}
