:root {
  color-scheme: light;
  --charcoal: #343a36;
  --sage: #7f8f7a;
  --deep-sage: #596952;
  --gold: #bda36a;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: Inter, system-ui, sans-serif;
  color: var(--charcoal);
  font-family: var(--body);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 18%, #fffbf5 0%, transparent 72%),
    linear-gradient(125deg, #f4e7d7, #eee1d2 55%, #f7eddc);
}
body::before, body::after {
  position: absolute;
  z-index: -1;
  top: 0;
  width: min(39vw, 490px);
  height: min(29vw, 355px);
  content: "";
  background: url("assets/evergreen.png") top left / contain no-repeat;
  mask-image: radial-gradient(ellipse at top left, #000 35%, #000 49%, transparent 76%);
  pointer-events: none;
}
body::before {
  left: 0;
  background:
    url("assets/evergreen.png") top left / auto 100% no-repeat,
    url("assets/evergreen-top.png") top left / 100% auto no-repeat;
}
body::after {
  right: 0;
  width: min(22vw, 270px);
  background: url("assets/lights.png") top right / 100% auto no-repeat;
  mask-image:
    radial-gradient(ellipse at top right, #000 26%, transparent 88%),
    linear-gradient(to right, transparent 0%, #000 44%);
  mask-composite: intersect;
}
body { position: relative; isolation: isolate; }
.page { width: min(100% - 64px, 1060px); margin: auto; padding: 24px 0 42px; }
.hero { text-align: center; margin-bottom: 30px; }
.logo-row, .divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 3vw, 33px);
}
.logo-row::before, .logo-row::after, .divider::before, .divider::after {
  content: "";
  width: clamp(22px, 12vw, 130px);
  height: 1px;
  background: var(--gold);
}
.logo-row img { width: clamp(150px, 25vw, 270px); height: auto; }
.logo-row::before, .logo-row::after { transform: translateY(24px); }
h1, h2, h3, h4, p { margin: 0; }
h1 {
  color: #292b28;
  font: 600 clamp(3.25rem, 10.6vw, 7.7rem)/.94 var(--display);
  letter-spacing: -.045em;
  margin: 14px 0 12px;
}
.divider img { width: clamp(125px, 22vw, 232px); mix-blend-mode: multiply; }
.subtitle { font: italic 600 clamp(1.35rem, 3vw, 2.06rem)/1.18 var(--display); margin: 9px 0 8px; }
.deadline { font-size: .93rem; font-weight: 650; color: #4b5946; }
.layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(245px, 2.8fr); align-items: stretch; gap: 25px; }
.panel {
  min-width: 0;
  background: rgba(255, 252, 247, .88);
  border: 1px solid #fff8ef;
  border-radius: 15px;
  box-shadow: 0 9px 25px #604a3421;
  padding: clamp(20px, 3.7vw, 40px);
}
.ruled { display: flex; align-items: center; gap: 18px; margin-bottom: 17px; }
.ruled::after { content: ""; flex: 1; height: 1px; min-width: 12px; background: var(--gold); }
h2 { color: #292b28; font: 700 clamp(1.86rem, 3.55vw, 2.55rem)/1 var(--display); letter-spacing: -.025em; }
form label { min-width: 0; display: block; font-size: .98rem; font-weight: 650; color: #242824; }
form label small { font-size: .82em; font-weight: 500; }
.required { color: #886014; }
input, select, textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  padding: 9px 13px;
  border: 1px solid #888c83;
  border-radius: 6px;
  background: rgba(255, 255, 255, .42);
  color: var(--charcoal);
  font: 400 1rem/1.35 var(--body);
}
input::placeholder, textarea::placeholder { color: #60635e; opacity: 1; }
textarea { min-height: 106px; resize: vertical; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.child { position: relative; display: grid; gap: 16px; }
.child + .child { border-top: 1px solid #dac49d; margin-top: 20px; padding-top: 9px; }
.child legend, .address legend { padding: 0; margin: 0 0 11px; font-weight: 700; }
.child legend { padding-right: 12px; }
.child-row, .address-row { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px 23px; }
.address-row { grid-template-columns: 1.3fr 1fr 1fr; gap: 13px; }
button { font: 650 1rem/1.15 var(--body); cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
.add, .remove { min-height: 42px; color: #43553d; background: transparent; border: 1px solid var(--deep-sage); border-radius: 7px; padding: 7px 13px; }
.add { margin-top: 20px; }
.remove { justify-self: start; font-size: .86rem; }
.guardian { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--gold); }
.guardian > label, .address > label { margin-bottom: 14px; }
.address { margin-top: 20px; }
.submit {
  width: 100%;
  margin-top: 26px;
  min-height: 53px;
  border: 1px solid #4f6148;
  border-radius: 9px;
  background: var(--deep-sage);
  color: white;
  padding: 10px;
}
.submit:hover:enabled { background: #465842; }
.add:hover:enabled, .remove:hover { background: #edf0e8; }
:focus-visible { outline: 2px solid #40543b; outline-offset: 3px; }
.privacy { margin-top: 16px; display: flex; align-items: baseline; justify-content: center; gap: 10px; font-size: .81rem; font-style: italic; line-height: 1.5; }
.lock { position: relative; top: 1px; width: 11px; height: 10px; flex: 0 0 11px; border: 1.5px solid #886014; border-radius: 2px; }
.lock::before { position: absolute; content: ""; top: -6px; left: 1px; right: 1px; height: 5px; border: 1.5px solid #886014; border-bottom: 0; border-radius: 5px 5px 0 0; }
.side { position: relative; padding-top: 22px; min-width: 0; }
.contact {
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-align: center;
  border: 2px solid #d4b67b;
  border-radius: 19px;
  background: radial-gradient(ellipse, #fffbf3, #f5e7d2);
}
.contact-top { position: relative; padding: 23px 9px 24px; background: radial-gradient(ellipse at top, #647456, #4d5b45); color: white; }
.contact-top::after {
  position: absolute;
  content: "";
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 21px;
  background: #4e5c46;
  border-radius: 0 0 58% 28%;
  transform: skewY(-3deg);
}
.phone-mark { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border: 2px solid #ecc686; border-radius: 50%; font-size: 1.48rem; color: #ecc686; }
.contact h2 { color: white; font-style: italic; font-weight: 600; font-size: clamp(1.95rem, 3.7vw, 2.64rem); line-height: .99; }
.contact h2 em { font-weight: 700; }
.contact-top p { margin-top: 12px; font-size: .8rem; }
.contact-bottom { display: grid; justify-items: center; gap: 7px; padding: 30px 6px 18px; }
.contact a { color: #303c2d; text-underline-offset: 3px; }
.phone-number { font: 700 clamp(1.65rem, 2.9vw, 2.05rem)/1 var(--display); text-decoration: none; }
.phone-number span { font: 500 .7em var(--body); color: var(--deep-sage); }
.office { font-size: .8rem; overflow-wrap: anywhere; }
.contact-bottom img { width: 132px; max-width: 72%; margin-top: 7px; mix-blend-mode: multiply; mask-image: radial-gradient(ellipse, #000 52%, transparent 83%); }
.lantern { display: block; position: absolute; width: calc(100% + 32px); max-width: 370px; max-height: 610px; object-fit: contain; object-position: bottom right; bottom: -22px; right: -32px; mask-image: radial-gradient(ellipse at 83% 59%, #000 32%, #000 45%, transparent 74%), linear-gradient(to left, transparent 0%, #000 26%), linear-gradient(to top, transparent 0%, #000 16%); mask-composite: intersect; }
.errors { border: 1px solid #ab735f; border-radius: 7px; background: #fff1e8; padding: 13px 16px; margin-bottom: 22px; }
.errors ul { margin: 7px 0 0; padding-left: 20px; }
.confirmation { text-align: center; }
.confirmation h2 { margin: 8px 0 9px; }
.confirmation p { line-height: 1.5; }
.success-mark { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: white; background: var(--deep-sage); font-size: 1.6rem; }
.confirmation h3, .confirmation h4 { font: 700 1.65rem/1.12 var(--display); padding-top: 15px; margin: 19px 0 8px; border-top: 1px solid var(--gold); }
.receipt { text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.52; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 720px) {
  .page { width: min(100% - 28px, 540px); padding-top: 20px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero { margin-bottom: 21px; }
  .side { padding-top: 0; padding-bottom: 25px; }
  .contact { width: min(100%, 302px); margin: auto; }
  .lantern { width: min(42%, 180px); right: -14px; bottom: 0; }
  .panel { padding: 19px; }
  h1 { font-size: clamp(2.77rem, 11vw, 5.25rem); }
  .logo-row::before, .logo-row::after { transform: translateY(14px); }
}
@media (max-width: 480px) {
  .address-row, .child-row { grid-template-columns: minmax(0, 1fr); }
  .ruled { gap: 8px; }
  .deadline { font-size: .86rem; }
}
