:root {
  --purple: #5b2c8e;
  --deep: #462170;
  --gold: #c9962b;
  --cream: #fffaf2;
  --wash: #f6f0fb;
  --mist: #ede4f5;
  --ink: #1b1230;
  --slate: #4a4458;
  --error: #a52c3b;
  --body: "DM Sans", system-ui, sans-serif;
  --display: "Playfair Display", Georgia, serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: var(--purple);
}
button {
  cursor: pointer;
}
button,
input,
select,
textarea,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}
button {
  transition:
    background 0.2s,
    transform 0.2s;
}
button:active {
  transform: translateY(1px);
}
.page {
  min-height: 100dvh;
  padding: 36px 24px 48px;
  border-top: 5px solid var(--purple);
}
.shell {
  max-width: 760px;
  margin: auto;
}
.page-header {
  margin-bottom: 28px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--purple);
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
}
.brand-lockup img {
  object-fit: contain;
  flex-shrink: 0;
}
.header-main {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--purple);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.eyebrow:before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
h1 {
  font-size: 44px;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
.header-copy > p:last-child {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  max-width: 390px;
}
.header-art {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}
#intakeForm {
  background: white;
  border: 1px solid var(--mist);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(91, 44, 142, 0.07);
}
.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
}
.form-intro {
  padding: 20px 32px;
  background: var(--purple);
  color: white;
  position: relative;
}
.form-intro:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
}
.form-intro p {
  margin: 0;
  font-size: 13px;
  color: #eee3f8;
}
.form-intro p:first-child {
  font-size: 15px;
  color: white;
  font-weight: 700;
  margin-bottom: 3px;
}
.form-body {
  padding: 32px 32px 12px;
}
.form-actions {
  padding: 12px 32px 32px;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--mist);
  border-radius: 12px;
  color: var(--purple);
  background: var(--cream);
  flex-shrink: 0;
}
.section-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.7;
}
.section-heading h2 {
  font-size: 22px;
  margin: 0;
  flex: 1;
}
.section-number {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--purple);
  align-self: center;
}
.optional {
  font-family: var(--body);
  font-size: 12px;
  color: var(--slate);
  font-weight: 400;
  white-space: nowrap;
}
.section-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate);
  margin: -10px 0 20px 52px;
}
.divider {
  height: 1px;
  background: var(--mist);
  margin: 30px 0;
}
.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}
.full-width {
  grid-column: 1/-1;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  min-width: 0;
}
.field input,
.field select,
.field textarea {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  min-height: 50px;
  background: #fff;
  border: 1px solid #c9bed5;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.field textarea {
  resize: vertical;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--purple);
}
input::placeholder,
textarea::placeholder {
  color: #6c6279;
  opacity: 1;
}
.location-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 10px;
  border: 1px solid #c9bed5;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  min-height: 76px;
}
.location-option:has(input:checked) {
  border-color: var(--purple);
  background: var(--wash);
  box-shadow: inset 3px 0 var(--purple);
}
.location-option > span > span {
  display: block;
  font-size: 13px;
  color: var(--slate);
}
.location-option > span > span:first-child {
  color: var(--purple);
  font-weight: 700;
  font-size: 14px;
}
input[type="radio"],
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--purple);
  flex-shrink: 0;
  margin: 0;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 26px;
  padding: 20px;
  background: var(--wash);
  border: 1px solid var(--mist);
  border-radius: 8px;
  cursor: pointer;
}
.consent input {
  margin-top: 3px;
}
.consent > span {
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
}
#addPersonBtn,
#addAnotherBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  min-height: 48px;
  color: var(--purple);
  background: transparent;
  border: 1px solid #b59ccf;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}
#addPersonBtn:hover,
#addAnotherBtn:hover {
  background: var(--wash);
}
#peopleList:empty:before {
  content: "No additional people yet. Add anyone you trust to pick up your child.";
  display: block;
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 2px solid var(--mist);
}
.person-row {
  background: var(--cream);
  border: 1px solid var(--mist);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
}
.person-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.person-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 700;
}
.removePerson {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--error);
  font-size: 13px;
  font-weight: 600;
}
.removePerson:hover {
  background: #f9e9ec;
}
#submitBtn {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  background: var(--purple);
  color: white;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(91, 44, 142, 0.2);
}
#submitBtn:hover {
  background: var(--deep);
}
#submitBtn:disabled {
  cursor: wait;
  background: var(--deep);
  opacity: 0.75;
}
.form-actions > p {
  font-size: 12px;
  text-align: center;
  color: var(--slate);
  margin: 14px 0 0;
  line-height: 1.6;
}
.footer {
  text-align: center;
  font-size: 12px;
  color: var(--slate);
  margin: 24px 0 0;
}
.thankyou {
  background: white;
  border: 1px solid var(--mist);
  border-radius: 14px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(91, 44, 142, 0.07);
}
.success-art {
  display: block;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 20px;
}
.thankyou h2 {
  font-size: 32px;
  margin: 0 0 16px;
}
.thankyou p {
  font-size: 15px;
  max-width: 460px;
  margin: 0 auto 16px;
  color: var(--slate);
}
.contact-help {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--purple);
  font-size: 13px;
  padding: 14px 0;
}
.thankyou #addAnotherBtn {
  margin-top: 18px;
}
#errorBox {
  background: #fff1f2;
  border: 1px solid #c78d95;
  border-left: 4px solid var(--error);
  color: var(--error);
  padding: 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}
.field-error {
  display: block;
  color: var(--error);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  flex-basis: 100%;
}
[aria-invalid="true"] {
  border-color: var(--error) !important;
}
.consent:has([aria-invalid="true"]) {
  border-color: var(--error);
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .page {
    padding: 22px 16px 36px;
  }
  .brand-lockup {
    font-size: 18px;
    gap: 10px;
  }
  .brand-lockup img {
    width: 48px;
    height: 48px;
  }
  .header-main {
    grid-template-columns: 1fr 110px;
    gap: 8px;
    margin-top: 26px;
    align-items: start;
  }
  .header-art {
    margin-top: 38px;
    width: 126px;
    max-width: 100%;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }
  .header-copy {
    display: contents;
  }
  .header-copy .eyebrow {
    grid-column: 1/-1;
    margin-bottom: 4px;
  }
  .header-copy h1 {
    grid-column: 1;
    font-size: 36px;
    margin: 0;
  }
  .header-copy > p:last-child {
    grid-column: 1/-1;
    font-size: 14px;
    margin-top: 8px;
  }
  .header-art {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    align-self: center;
  }
  .page-header {
    margin-bottom: 24px;
  }
  .form-intro {
    padding: 18px 20px;
  }
  .form-body {
    padding: 26px 20px 10px;
  }
  .form-actions {
    padding: 12px 20px 24px;
  }
  .field-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .section-heading {
    gap: 10px;
    margin-bottom: 18px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .section-note {
    margin-left: 0;
    font-size: 13px;
  }
  .section-number {
    font-size: 10px;
  }
  .section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .divider {
    margin: 26px 0;
  }
  .consent {
    padding: 16px;
  }
  .thankyou {
    padding: 30px 20px;
  }
  .thankyou h2 {
    font-size: 29px;
  }
  .contact-help {
    font-size: 12px;
  }
  .person-row {
    padding: 14px;
  }
  .optional {
    display: block;
    margin-top: 4px;
  }
  #submitBtn {
    font-size: 15px;
  }
  .location-option {
    padding: 14px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
