:root {
  --navy: #061f62;
  --blue: #123ecb;
  --yellow: #ffb814;
  --green: #08772a;
  --ink: #081842;
  --muted: #647089;
  --line: #cbd5e3;
  --paper: #ffffff;
  --focus: #ffcf46;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: radial-gradient(circle at top, #123c96 0, var(--navy) 52%, #03143e 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
body.menu-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.page {
  position: relative;
  width: 100%;
  max-width: 1020px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
}
.art-wrap { position: relative; width: 100%; }
.master-art { display: block; width: 100%; height: auto; }

.hot-phone,
.hot-menu,
.hot-call-lower,
.hot-whatsapp,
.hot-email {
  position: absolute;
  z-index: 20;
  display: block;
  border: 0;
  background: transparent;
}
.hot-phone { top: 0; left: 54%; width: 33%; height: clamp(50px, 12.8vw, 82px); }
.hot-menu { top: 0; right: 0; width: 13%; height: clamp(50px, 12.8vw, 82px); cursor: pointer; }
.hot-email { z-index: 22; }
.hot-phone:focus-visible,
.hot-menu:focus-visible,
.hot-call-lower:focus-visible,
.hot-whatsapp:focus-visible,
.hot-email:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: -4px;
  border-radius: 10px;
}

.overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  background: rgb(0 0 0 / 58%);
  transition: opacity .2s ease, visibility .2s ease;
}
.overlay.open { visibility: visible; opacity: 1; }
.drawer {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  width: min(286px, 82vw);
  max-height: 100dvh;
  padding: 60px 14px 24px;
  overflow-y: auto;
  visibility: hidden;
  transform: translateX(105%);
  border-radius: 0 0 0 22px;
  background: #fff;
  box-shadow: -10px 0 34px rgb(0 0 0 / 35%);
  transition: transform .22s ease, visibility .22s ease;
}
.drawer.open { visibility: visible; transform: translateX(0); }
.drawer a {
  display: block;
  margin: 7px 0;
  padding: 12px 14px;
  border-radius: 11px;
  background: #edf3ff;
  color: var(--navy);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}
.drawer a[aria-current="page"] { background: var(--yellow); color: #101010; }
.drawer a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.close-menu {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.menu-paw { display: flex; justify-content: center; margin-top: 24px; color: var(--navy); }
.menu-paw svg { width: 58px; height: 52px; filter: drop-shadow(0 2px 0 rgb(6 31 98 / 15%)); }

.form-shell { padding: 8px 18px 42px; background: #fff; }
.form-card { max-width: 900px; margin: 0 auto; }
.form-intro { margin: 4px 0 20px; text-align: center; color: var(--muted); font-size: 14px; }
.field-label { display: block; margin: 16px 0 7px; color: var(--navy); font-weight: 900; }
.req { color: #d21c24; }
.optional { color: var(--muted); font-size: .82em; font-weight: 700; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 2px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: var(--navy);
  font-size: 16px;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(18 62 203 / 14%); }
textarea { min-height: 112px; resize: vertical; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.uploads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.upload {
  position: relative;
  display: flex;
  min-height: 102px;
  margin: 0;
  padding: 7px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px dashed #aebbd0;
  border-radius: 12px;
  background: #f5f8fe;
  color: var(--blue);
  text-align: center;
  cursor: pointer;
}
.upload:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(18 62 203 / 14%); }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload .plus { position: relative; z-index: 2; font-size: 28px; font-weight: 900; line-height: 1; }
.upload small { position: relative; z-index: 2; width: 100%; margin-top: 6px; overflow: hidden; color: #5e6c87; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.upload img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgb(0 0 0 / 72%)); }
.upload.has-image .plus, .upload.has-image small { color: #fff; text-shadow: 0 1px 2px #000; }
.upload-help { margin: 8px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

.replygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reply { padding: 13px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.reply.active { border-color: var(--yellow); background: #fff7df; }
.reply-title { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; color: var(--navy); font-weight: 900; }
.reply input[type="radio"] { width: 20px; height: 20px; accent-color: var(--blue); }

.submit {
  display: block;
  width: 100%;
  min-height: 58px;
  margin: 24px auto 0;
  padding: 15px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(#0b8b31, #056522);
  box-shadow: 0 4px 0 #034a19;
  color: #fff;
  font-size: clamp(19px, 3vw, 23px);
  font-weight: 900;
  cursor: pointer;
}
.submit:hover { filter: brightness(1.05); }
.submit:active { transform: translateY(2px); box-shadow: 0 2px 0 #034a19; }
.submit:disabled { opacity: .65; cursor: wait; }
.status { min-height: 24px; margin-top: 14px; text-align: center; font-weight: 800; }
.status.error, .status.success { padding: 13px; border-radius: 11px; }
.status.error { border: 1px solid #e79b9b; background: #fff0f0; color: #8a1616; }
.status.success { border: 1px solid #65c57c; background: #eaf9ee; color: #176b2c; }

.thankyou-effects { position: absolute; z-index: 5; inset: 0; overflow: hidden; pointer-events: none; }
.confetti {
  position: absolute;
  top: -6%;
  left: var(--x);
  width: var(--w);
  height: calc(var(--w) * 1.7);
  border-radius: 2px;
  opacity: 0;
  background: var(--colour);
  animation: confettiFall var(--duration) var(--delay) cubic-bezier(.2,.65,.45,1) forwards;
}
@keyframes confettiFall {
  0% { opacity: 1; transform: translate3d(0,-5vh,0) rotate(0deg); }
  100% { opacity: 0; transform: translate3d(var(--drift),105vh,0) rotate(900deg); }
}

.noscript { margin: 0; padding: 16px; background: #fff4cf; color: #5c4300; text-align: center; font-weight: 800; }

.contact-prompt {
  width: min(430px, calc(100vw - 28px));
  padding: 30px 24px 24px;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 22px 70px rgb(0 0 0 / 42%);
  color: var(--ink);
  text-align: center;
}
.contact-prompt::backdrop { background: rgb(3 20 62 / 78%); backdrop-filter: blur(3px); }
.contact-prompt.fallback-open { position: fixed; z-index: 300; inset: 50% auto auto 50%; display: block; transform: translate(-50%, -50%); }
.contact-prompt h1 { margin: 5px 0 8px; color: var(--navy); font-size: clamp(24px, 6vw, 31px); }
.contact-prompt > p { margin: 0 0 18px; color: var(--muted); line-height: 1.45; }
.contact-prompt-paw { color: var(--navy); font-size: 34px; line-height: 1; }
.contact-prompt-close { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #edf3ff; color: var(--navy); font-size: 25px; cursor: pointer; }
.contact-prompt dl { margin: 0 0 19px; padding: 13px 16px; border-radius: 13px; background: #f2f6ff; text-align: left; }
.contact-prompt dl div { display: grid; grid-template-columns: 72px 1fr; gap: 8px; padding: 5px 0; }
.contact-prompt dt { color: var(--navy); font-weight: 900; }
.contact-prompt dd { margin: 0; overflow-wrap: anywhere; }
.contact-save, .contact-continue { display: block; width: 100%; min-height: 50px; padding: 14px; border-radius: 12px; font-weight: 900; text-align: center; cursor: pointer; }
.contact-save { background: linear-gradient(#0b8b31, #056522); color: #fff; text-decoration: none; }
.contact-continue { margin-top: 10px; border: 2px solid var(--navy); background: #fff; color: var(--navy); }
.contact-save:focus-visible, .contact-continue:focus-visible, .contact-prompt-close:focus-visible { outline: 4px solid var(--focus); outline-offset: 2px; }

@media (max-width: 600px) {
  .form-shell { padding-inline: 15px; }
  .uploads { gap: 7px; }
  .upload { min-height: 82px; }
  .replygrid { grid-template-columns: 1fr; }
}
@media (max-width: 370px) {
  .uploads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  body { padding: 28px; }
  .page { min-height: calc(100vh - 56px); overflow: hidden; border-radius: 24px; box-shadow: 0 22px 60px rgb(0 0 0 / 36%); }
  .form-shell { padding-inline: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
