:root {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: #21342a;
  background: #edf3ed;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    linear-gradient(
      180deg,
      #085a2f 0,
      #085a2f 180px,
      #edf3ed 180px
    );
}

button,
input,
select {
  font: inherit;
}

.signup-shell {
  width: min(680px, 100%);
  margin: 0 auto;

  padding:
    max(28px, env(safe-area-inset-top))
    14px
    max(36px, env(safe-area-inset-bottom));
}

.signup-card {
  overflow: hidden;

  border-radius: 18px;
  background: #fff;

  box-shadow:
    0 20px 55px
    rgba(15, 53, 33, .18);
}

.signup-head {
  display: flex;
  gap: 15px;
  align-items: flex-start;

  padding: 22px;

  border-bottom:
    1px solid #e4eae5;
}

.signup-head img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
}

.eyebrow {
  display: block;
  margin-bottom: 4px;

  color: #138347;

  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 7px;
  color: #0b4d2b;
  font-size: 25px;
}

.signup-head p {
  margin-bottom: 0;
  color: #617069;
  font-size: 13px;
  line-height: 1.5;
}

#signup-form {
  padding: 20px 22px 24px;
}

.form-section {
  padding: 18px 0 22px;

  border-bottom:
    1px solid #e6ebe7;
}

.form-section:first-child {
  padding-top: 2px;
}

.section-heading {
  display: flex;
  gap: 11px;
  align-items: flex-start;

  margin-bottom: 15px;
}

.section-heading > span {
  flex: 0 0 auto;

  width: 27px;
  height: 27px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #e3f1e6;
  color: #11683a;

  font-size: 12px;
  font-weight: 900;
}

.section-heading h2 {
  margin-bottom: 3px;
  color: #173e2f;
  font-size: 18px;
}

.section-heading p {
  margin-bottom: 0;
  color: #6b7771;
  font-size: 12px;
  line-height: 1.45;
}

label {
  display: block;
  margin-top: 13px;
}

label > span {
  display: block;
  margin-bottom: 6px;

  color: #33443b;

  font-size: 12px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 44px;

  padding: 9px 11px;

  border:
    1px solid #c9d4cc;

  border-radius: 9px;

  color: #22352b;
  background: #fff;
}

input:focus,
select:focus {
  outline:
    2px solid #91c6a3;

  outline-offset: 1px;

  border-color: #4c8b64;
}

.person-card {
  position: relative;

  margin-top: 12px;
  padding: 14px;

  border:
    1px solid #dbe3dd;

  border-radius: 11px;

  background: #fafcfa;
}

.person-card:first-child {
  margin-top: 0;
}

.person-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;

  margin-bottom: 4px;
}

.person-card-head strong {
  color: #173e2f;
  font-size: 13px;
}

.person-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 10px;
}

.remove-person {
  border: 0;
  background: none;
  color: #8b3636;

  font-size: 12px;
  font-weight: 800;

  cursor: pointer;
}

.add-person {
  margin-top: 11px;
  padding: 8px 0;

  border: 0;
  background: none;

  color: #0c7040;

  font-size: 13px;
  font-weight: 900;

  cursor: pointer;
}

.review-note {
  margin-top: 20px;
  padding: 13px 14px;

  border-radius: 10px;

  background: #f1f6f1;

  color: #536159;

  font-size: 12px;
  line-height: 1.5;
}

.review-note strong {
  display: block;
  margin-bottom: 3px;
  color: #1d4e33;
}

.review-note p {
  margin-bottom: 0;
}

.form-error {
  margin-top: 18px;
  padding: 11px 13px;

  border-radius: 9px;

  background: #fdeaea;
  color: #8c2626;

  font-size: 13px;
}

.submit-button {
  display: block;
  width: 100%;

  margin-top: 19px;
  padding: 12px 15px;

  border: 0;
  border-radius: 10px;

  background: #085a2f;
  color: #fff;

  font-size: 14px;
  font-weight: 900;

  text-align: center;
  text-decoration: none;

  cursor: pointer;
}

.submit-button:disabled {
  opacity: .55;
  cursor: default;
}

.back-link {
  display: block;
  margin-top: 14px;

  color: #4f6258;

  font-size: 12px;
  font-weight: 700;

  text-align: center;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus {
  text-decoration: underline;
}

.success-state {
  padding: 36px 24px;
  text-align: center;
}

.success-icon {
  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 14px;

  border-radius: 50%;

  background: #168447;
  color: #fff;

  font-size: 25px;
  font-weight: 900;
}

.success-state h2 {
  color: #173e2f;
  font-size: 22px;
}

.success-state p {
  max-width: 470px;
  margin: 0 auto;

  color: #617069;

  font-size: 13px;
  line-height: 1.55;
}

.success-button {
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 560px) {
  .person-grid {
    grid-template-columns: 1fr;
  }

  .signup-head {
    padding: 18px;
  }

  #signup-form {
    padding-left: 17px;
    padding-right: 17px;
  }
}

/* =========================================================
   CHILD RIDE / LOGIN OPTIONS
   ========================================================= */

.child-booster-field {
  grid-column: 1 / -1;
}

.child-login-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  cursor: pointer;
}

.child-login-toggle input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: #168447;
}

.child-login-toggle > span {
  margin: 0;
  color: #244334;
  font-size: 12px;
  font-weight: 850;
}

.child-login-note {
  display: block;
  margin: 5px 0 0 26px;
  color: #66756d;
  font-size: 11px;
  line-height: 1.45;
}

.child-login-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e3e9e4;
}

.child-default-guardian-field {
  grid-column: 1 / -1;
}

.child-default-guardian-field > small {
  display: block;
  margin-top: 5px;
  color: #6b7771;
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 560px) {
  .child-login-fields {
    grid-template-columns: 1fr;
  }
}
