:root {
  color-scheme: light;
  --ink: #022937;
  --paper: #f3e1c7;
  --white: #fffefb;
  --pink: #ed5a57;
  --sage: #909574;
  --sage-soft: #d6d9c2;
  --muted: #596b70;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  position: relative;
  margin: 0;
  padding: 0 clamp(18px, 4vw, 56px);
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 3% 10%, rgba(237, 90, 87, .18), transparent 28rem),
    radial-gradient(circle at 96% 68%, rgba(144, 149, 116, .25), transparent 34rem),
    var(--paper);
}

body::before,
body::after {
  content: "";
  width: 50%;
  height: 100vh;
  position: fixed;
  z-index: 0;
  top: 0;
  pointer-events: none;
  opacity: .25;
  background-image: url("assets/season-doodles-v2.png");
  background-repeat: no-repeat;
  background-size: max(100vw, 1450px) auto;
}

body::before {
  left: 0;
  background-position: left center;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 55%, transparent 100%);
}

body::after {
  right: 0;
  background-position: right center;
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to left, #000 0%, #000 55%, transparent 100%);
}

a { color: inherit; }

.topbar,
main,
footer {
  width: min(1120px, 100%);
  position: relative;
  z-index: 1;
  margin-inline: auto;
}

.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar::before,
footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10px -15px;
  border-radius: 20px;
  background: rgba(243, 225, 199, .84);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: clamp(108px, 11vw, 132px);
  height: auto;
  display: block;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(2, 41, 55, .14);
  border-radius: 11px;
  background: rgba(255, 255, 255, .5);
  transition: transform .2s ease, background .2s ease;
}

.back-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .82);
}

main {
  min-height: calc(100vh - 220px);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(540px, 1.15fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
  padding: clamp(52px, 7vw, 90px) 0 clamp(72px, 9vw, 115px);
}

.intro {
  position: relative;
  isolation: isolate;
}

.intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -30px -34px;
  border-radius: 26px;
  background: linear-gradient(90deg, rgba(243, 225, 199, .97), rgba(243, 225, 199, .8) 78%, rgba(243, 225, 199, .15));
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.eyebrow {
  margin: 0;
  color: var(--pink);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  max-width: 570px;
  margin: 15px 0 0;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  line-height: .94;
  letter-spacing: -.06em;
}

.intro-copy {
  max-width: 560px;
  margin: 29px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.7;
}

.location-note {
  max-width: 500px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 31px;
  padding: 18px 20px;
  border: 1px solid rgba(2, 41, 55, .1);
  border-radius: 16px;
  background: rgba(214, 217, 194, .82);
}

.location-note > span {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  font-size: 1.35rem;
  border-radius: 50%;
  background: var(--sage);
}

.location-note p {
  margin: 0;
  color: #455e58;
  font-size: .88rem;
  line-height: 1.55;
}

.form-card {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(2, 41, 55, .12);
  border-radius: 28px;
  background: rgba(255, 254, 251, .88);
  box-shadow: 0 22px 65px rgba(2, 41, 55, .1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.form-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.form-heading > p:last-child {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.form-status {
  margin: 25px 0 0;
  padding: 14px 16px;
  font-size: .88rem;
  line-height: 1.55;
  border-radius: 12px;
}

.form-status-success { color: #24543d; background: #dce9d9; }
.form-status-error { color: #7d2726; background: #f8d9d6; }

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-full,
.consent,
.submit-button {
  grid-column: 1 / -1;
}

.field label {
  font-size: .79rem;
  font-weight: 800;
}

.field label span {
  color: var(--muted);
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  font-size: .93rem;
  border: 1px solid rgba(2, 41, 55, .19);
  border-radius: 11px;
  outline: none;
  background: rgba(255, 255, 255, .84);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--pink);
  background: white;
  box-shadow: 0 0 0 4px rgba(237, 90, 87, .12);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.5;
}

.consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--pink);
}

.consent a { text-underline-offset: 3px; }

.submit-button {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 19px;
  color: white;
  font: inherit;
  font-size: .88rem;
  font-weight: 850;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  background: var(--pink);
  box-shadow: 0 10px 25px rgba(237, 90, 87, .22);
  transition: transform .2s ease, background .2s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  background: #d94b49;
}

.submit-button:focus-visible,
.back-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.direct-contact {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.5;
}

.direct-contact a { font-weight: 800; text-underline-offset: 3px; }

.form-trap {
  width: 1px !important;
  height: 1px !important;
  position: absolute !important;
  left: -10000px !important;
  overflow: hidden !important;
}

footer {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #66767c;
  font-size: .79rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 21px;
}

footer a { text-underline-offset: 3px; }

@media (max-width: 930px) {
  main {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .intro { max-width: 700px; }
}

@media (max-width: 560px) {
  body { padding-inline: 14px; }
  body::before,
  body::after {
    opacity: .17;
    background-size: 900px auto;
  }
  .topbar { min-height: 76px; }
  .brand img { width: 102px; }
  .back-link { padding-inline: 10px; }
  main {
    gap: 40px;
    padding-top: 52px;
  }
  .intro::before {
    inset: -22px -18px;
    background: rgba(243, 225, 199, .93);
  }
  h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .form-card {
    padding: 25px 20px;
    border-radius: 22px;
  }
  .fields { grid-template-columns: 1fr; }
  .field-full,
  .consent,
  .submit-button {
    grid-column: auto;
  }
  footer {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    text-align: center;
  }
  footer nav {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
