.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  color: var(--green);
  font-family: var(--font-round);
  font-weight: 700;
  text-decoration: none;
  border: var(--line) solid var(--green);
  border-radius: 999px;
}

.apply {
  padding: 2rem 0 4rem;
}

.apply__wrap {
  width: min(100% - 2.5rem, 40rem);
  margin-inline: auto;
}

.apply__intro {
  text-align: center;
}

.apply__logo {
  margin: 0 auto 0.75rem;
}

.apply__intro h1 {
  margin: 0;
  font-family: var(--font-round);
  font-size: 2rem;
  line-height: 1.4;
  color: var(--green);
}

.apply__lead {
  margin: 0.75rem 0 0;
  text-align: left;
}

.apply__steps {
  margin: 1.75rem 0 2rem;
}

.apply__steps ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apply__steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--paper);
  border: var(--line) solid var(--green);
  border-radius: 18px;
  font-family: var(--font-round);
  font-weight: 700;
}

.apply__steps b {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--orange-deep);
  border-radius: 50%;
}

.apply__steps figcaption {
  margin-top: 8px;
  font-size: var(--text-small);
  color: var(--ink-soft);
}

.apply-form fieldset {
  margin: 0 0 1.75rem;
  padding: 1.25rem 1.25rem 0.5rem;
  background: var(--paper);
  border: var(--line) solid var(--gray);
  border-radius: var(--radius);
}

.apply-form legend {
  padding: 0 8px;
  font-family: var(--font-round);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--green);
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.need,
.opt {
  display: inline-block;
  margin-left: 6px;
  padding: 0 8px;
  font-size: var(--text-small);
  font-weight: 700;
  line-height: 1.7;
  border-radius: 6px;
}

.need {
  color: #fff;
  background: var(--orange-deep);
}

.opt {
  color: var(--ink-soft);
  background: var(--cream-deep);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  font: inherit;
  font-size: 1.125rem;
  color: var(--ink);
  background: #fff;
  border: var(--line) solid #8b8475;
  border-radius: 10px;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field .short {
  max-width: 12rem;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.field--check input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.field [aria-invalid="true"] {
  border-color: #b3261e;
  background: #fff4f2;
}

.hint {
  margin: 6px 0 0;
  font-size: var(--text-small);
  color: var(--ink-soft);
  line-height: 1.6;
}

.field--check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.field--check input {
  flex: none;
  width: 26px;
  height: 26px;
  margin: 0;
  accent-color: var(--green);
}

.field--check label {
  margin: 0;
}

.privacy {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--cream-deep);
  border-radius: var(--radius);
}

.privacy h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-round);
  font-size: 1.25rem;
}

.privacy ul {
  margin: 0 0 1rem;
  padding-left: 1.2em;
}

.privacy li + li {
  margin-top: 4px;
}

.field--agree {
  padding: 10px 14px;
  background: var(--paper);
  border-radius: 12px;
}

.form-error {
  margin: 0 0 1rem;
  padding: 12px 16px;
  color: #8a1c14;
  font-weight: 700;
  background: #fff4f2;
  border: var(--line) solid #d9a19b;
  border-radius: 12px;
}

.apply-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 60px;
  padding: 0 24px;
  font: inherit;
  font-family: var(--font-round);
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  background: var(--orange-deep);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.apply-submit:hover {
  background: var(--green);
}

.apply-submit:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.apply-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.apply-submit--ghost {
  color: var(--green);
  background: var(--paper);
  border: var(--line) solid var(--green);
}

.apply-done,
.apply-wait {
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--paper);
  border: var(--line) solid var(--green);
  border-radius: var(--radius);
}

.apply-done h2,
.apply-wait h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-round);
  color: var(--green);
}

.apply-done p,
.apply-wait p {
  margin: 0 0 1.5rem;
  text-align: left;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  font-family: var(--font-round);
  font-size: 1.125rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  background: var(--orange-deep);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--green);
  transition: transform 0.15s ease;
}

.cta:hover {
  background: var(--green);
  box-shadow: 0 3px 0 var(--orange-deep);
}

.cta:active {
  transform: translateY(2px);
}

.cta:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.cta::after {
  content: "→";
  font-weight: 700;
}

.hero__cta {
  margin-top: 1rem;
}

.cta-band {
  padding: 2rem 0;
  text-align: center;
}

.cta-band p {
  margin: 0 0 0.75rem;
  font-family: var(--font-round);
  font-weight: 700;
}

.join__cta {
  margin-top: 1.5rem;
  text-align: center;
}

.sticky-join {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgb(247 240 225 / 0.96);
  border-top: 1px solid var(--gray);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}

.sticky-join[data-show] {
  transform: translateY(0);
}

.sticky-join .cta {
  width: min(100%, 26rem);
  box-shadow: none;
}

@media (min-width: 900px) {
  .sticky-join {
    display: none;
  }
}

@media (max-width: 899px) {
  body:has(.sticky-join) {
    padding-bottom: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-join,
  .cta {
    transition: none;
  }
}

.doc {
  padding: 2rem 0 4rem;
}

.doc__wrap {
  width: min(100% - 2.5rem, 44rem);
  margin-inline: auto;
  padding: 1.75rem 1.5rem 2rem;
  background: var(--paper);
  border: var(--line) solid var(--gray);
  border-radius: var(--radius);
}

.doc h1 {
  margin: 0 0 1rem;
  font-family: var(--font-round);
  font-size: 1.75rem;
  line-height: 1.4;
  color: var(--green);
}

.doc h1 small {
  display: block;
  font-size: 1rem;
  color: var(--ink-soft);
}

.doc h2 {
  margin: 2.25rem 0 0.75rem;
  padding-bottom: 6px;
  font-family: var(--font-round);
  font-size: 1.3rem;
  color: var(--green);
  border-bottom: var(--line) solid var(--cream-deep);
}

.doc h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.0625rem;
}

.doc p,
.doc ul,
.doc ol {
  margin: 0 0 0.75rem;
}

.doc ul,
.doc ol {
  padding-left: 1.4em;
}

.doc li + li {
  margin-top: 4px;
}

.doc a {
  color: var(--green);
}

.doc__toc {
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--cream);
  border-radius: 16px;
}

.doc__toc ol {
  margin: 0;
}

.doc__toc a {
  display: inline-block;
  min-height: 32px;
}

.doc__table {
  margin: 0;
}

.doc__table div {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--cream-deep);
}

.doc__table dt {
  font-weight: 700;
}

.doc__table dd {
  margin: 0;
}

.doc__date {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  text-align: right;
}

@media (max-width: 480px) {
  .doc__table div {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: inherit;
}

.privacy__more {
  margin: 0 0 1rem;
}

.privacy__more a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--green);
  font-weight: 700;
}
