:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1c302b;
  background: #f5f7f4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --green: #17664f;
  --muted: #687771;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse at 50% -15%, #e3f1e9 0, transparent 42rem), #f5f7f4;
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  width: min(100% - 32px, 540px);
  margin: 0 auto;
  padding: max(32px, env(safe-area-inset-top)) 0 max(28px, env(safe-area-inset-bottom));
}

.page-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  background: var(--green);
  color: #fff;
  font-size: 24px;
  font-weight: 750;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(24px, 7vw, 30px);
  letter-spacing: -.04em;
}

.intro {
  margin: 24px 0 18px;
  color: #566760;
  font-size: 15px;
  line-height: 1.6;
}

.demo-notice {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #c7d9ca;
  border-radius: 14px;
  background: #edf6ef;
  color: #315343;
  font-size: 12px;
  line-height: 1.5;
}

.demo-notice strong {
  color: var(--green);
  font-size: 13px;
}

.form-card {
  margin: 14px 0;
  padding: 20px;
  border: 1px solid rgba(222, 232, 226, .8);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 24px rgba(25, 58, 44, .045);
}

.auth-card {
  margin-bottom: 20px;
}

.auth-card > .section-heading {
  margin-bottom: 14px;
}

.auth-card .section-heading h2 {
  margin: 0 0 5px;
}

.auth-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 17px;
  padding: 4px;
  border-radius: 12px;
  background: #f0f4f1;
}

.auth-method {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #53645c;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.auth-method.active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(25, 58, 44, .1);
  color: var(--green);
}

.auth-card input {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-bottom: 14px;
  padding: 0 12px;
  border: 1px solid #dce5df;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: #1c302b;
  font-size: 15px;
}

.auth-card input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 102, 79, .11);
}

.auth-submit {
  justify-content: center;
  margin-top: 7px;
}

.auth-submit:disabled,
.secondary-button:disabled,
.auth-link:disabled {
  cursor: wait;
  opacity: .7;
}

.auth-link-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
}

.auth-link,
.secondary-button {
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.resend-code {
  margin-top: 10px;
}

.signed-in-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.signed-in-identity {
  overflow-wrap: anywhere;
}

#auth-signed-in .secondary-button {
  display: block;
  margin-top: 8px;
  color: #a33e38;
}

.auth-panel {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.auth-panel > a {
  display: inline-block;
  margin-top: 8px;
  color: var(--green);
  font-weight: 650;
}

.verification-note {
  margin: 12px 0 2px;
  color: #8b5b20;
  font-size: 12px;
  line-height: 1.5;
}

#email-verification-required .auth-link {
  display: block;
}

#recaptcha-container {
  position: absolute;
}

.status-message.error {
  background: #fff1ef;
  color: #a33e38;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.step-number {
  display: grid;
  flex: 0 0 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #e9f4ed;
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
}

.section-heading h2 {
  margin: 1px 0 4px;
  font-size: 17px;
  letter-spacing: -.02em;
}

.section-heading p,
.privacy-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.photo-picker {
  display: grid;
  min-height: 174px;
  overflow: hidden;
  place-items: center;
  border: 1.5px dashed #a9c2b4;
  border-radius: 14px;
  background: #f5faf6;
  cursor: pointer;
  text-align: center;
}

.photo-picker:hover {
  border-color: var(--green);
}

.photo-picker img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.photo-prompt {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 22px;
  color: var(--muted);
  font-size: 12px;
}

.photo-prompt strong {
  color: #25463a;
  font-size: 14px;
}

.camera-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 3px;
  place-items: center;
  border-radius: 13px;
  background: #e4f1e9;
  color: var(--green);
  font-size: 28px;
}

#photo {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.text-button {
  margin-top: 10px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #a33e38;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.field-label,
.contact-options legend {
  display: block;
  margin-bottom: 8px;
  color: #2e443c;
  font-size: 13px;
  font-weight: 700;
}

textarea {
  width: 100%;
  border: 1px solid #dce5df;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: #1c302b;
  font-size: 15px;
}

textarea {
  min-height: 112px;
  padding: 12px 13px;
  resize: vertical;
}

textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 102, 79, .11);
}

textarea::placeholder {
  color: #9aa7a1;
}

.character-count {
  margin-top: 6px;
  color: #84918b;
  font-size: 11px;
  text-align: right;
}

.contact-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.contact-options legend {
  grid-column: 1 / -1;
  padding: 0;
}

.contact-option {
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid #dce5df;
  border-radius: 12px;
  cursor: pointer;
}

.contact-option:has(input:checked) {
  border-color: var(--green);
  background: #f2f8f4;
  box-shadow: inset 0 0 0 1px var(--green);
}

.contact-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green);
}

.option-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 10px;
  background: #eaf3ed;
  color: var(--green);
  font-size: 17px;
}

.contact-option strong,
.contact-option small {
  display: block;
}

.contact-option strong {
  font-size: 12px;
}

.contact-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.privacy-note {
  margin-top: 12px;
  font-size: 12px;
}

.submit-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 0 19px;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  box-shadow: 0 8px 16px rgba(23, 102, 79, .18);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.submit-button:hover {
  background: #105540;
}

.submit-button:focus-visible,
.text-button:focus-visible,
.contact-option:focus-within {
  outline: 3px solid rgba(23, 102, 79, .32);
  outline-offset: 3px;
}

.status-message {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: #edf6ef;
  color: #315343;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.status-message:empty {
  display: none;
}

footer {
  padding: 24px 0 0;
  color: #84918b;
  font-size: 12px;
  text-align: center;
}

@media (min-width: 600px) {
  .app-shell {
    padding-top: 48px;
  }

  .form-card {
    padding: 24px;
  }
}
