/* Scoped to the two Potters enquiry dialogs; existing page widgets are untouched. */
#potters-repellent-waitlist,
#potters-corporate-booking {
  display: none;
  box-sizing: border-box;
  width: min(680px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 32px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(33, 72, 63, .14);
  border-radius: 22px;
  background: #fffdf8;
  color: #17392f;
  box-shadow: 0 24px 80px rgba(9, 34, 26, .3);
  font-family: inherit;
  text-align: left;
}

#potters-repellent-waitlist[open],
#potters-corporate-booking[open] { display: block; }

#potters-repellent-waitlist::backdrop,
#potters-corporate-booking::backdrop {
  background: rgba(10, 34, 27, .66);
  backdrop-filter: blur(3px);
}

body.potters-enquiry-open { overflow: hidden; }

:is(#potters-repellent-waitlist, #potters-corporate-booking) *,
:is(#potters-repellent-waitlist, #potters-corporate-booking) *::before,
:is(#potters-repellent-waitlist, #potters-corporate-booking) *::after { box-sizing: border-box; }

:is(#potters-repellent-waitlist, #potters-corporate-booking) h2 {
  margin: 0 32px 12px 0;
  color: #21483f;
  font: inherit;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.025em;
}

:is(#potters-repellent-waitlist, #potters-corporate-booking) p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
}

:is(#potters-repellent-waitlist, #potters-corporate-booking) [data-potters-close] {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid #c8d2c9;
  border-radius: 50%;
  background: #fffdf8;
  color: #21483f;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

:is(#potters-repellent-waitlist, #potters-corporate-booking) [data-potters-close]:hover { background: #f5e6b5; }

:is(#potters-repellent-waitlist, #potters-corporate-booking) form { margin: 20px 0 0; }

:is(#potters-repellent-waitlist, #potters-corporate-booking) .potters-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

:is(#potters-repellent-waitlist, #potters-corporate-booking) .potters-field { min-width: 0; }
:is(#potters-repellent-waitlist, #potters-corporate-booking) .potters-field--full { grid-column: 1 / -1; }

:is(#potters-repellent-waitlist, #potters-corporate-booking) label {
  display: block;
  margin: 0 0 6px;
  color: #21483f;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

:is(#potters-repellent-waitlist, #potters-corporate-booking) :is(input:not([type="checkbox"]):not([type="hidden"]), select, textarea) {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #a6b7ae;
  border-radius: 9px;
  background: #fff;
  color: #17392f;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  box-shadow: none;
}

:is(#potters-repellent-waitlist, #potters-corporate-booking) textarea { resize: vertical; min-height: 108px; }
:is(#potters-repellent-waitlist, #potters-corporate-booking) select { appearance: auto; }
:is(#potters-repellent-waitlist, #potters-corporate-booking) input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 3px 0 0;
  accent-color: #21483f;
}

:is(#potters-repellent-waitlist, #potters-corporate-booking) .potters-permission {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

:is(#potters-repellent-waitlist, #potters-corporate-booking) .potters-permission label {
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
}

:is(#potters-repellent-waitlist, #potters-corporate-booking) .potters-form-note {
  margin-top: 14px;
  color: #49675c;
  font-size: 13px;
  line-height: 1.55;
}

:is(#potters-repellent-waitlist, #potters-corporate-booking) small {
  display: block;
  margin-top: 6px;
  color: #49675c;
  font-size: 13px;
  line-height: 1.5;
}

:is(#potters-repellent-waitlist, #potters-corporate-booking) .potters-form-actions { margin-top: 20px; }

:is(#potters-repellent-waitlist, #potters-corporate-booking) button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 20px;
  border: 1px solid #d2ab44;
  border-radius: 10px;
  background: #ecc45f;
  color: #17392f;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(137, 99, 23, .12);
}

:is(#potters-repellent-waitlist, #potters-corporate-booking) button[type="submit"]:hover { background: #f3d17c; }
:is(#potters-repellent-waitlist, #potters-corporate-booking) button[type="submit"]:disabled { cursor: wait; opacity: .75; }

:is(#potters-repellent-waitlist, #potters-corporate-booking) :is(input, textarea, select, button, a):focus-visible {
  outline: 3px solid #21483f;
  outline-offset: 3px;
}

:is(#potters-repellent-waitlist, #potters-corporate-booking) [aria-invalid="true"] { border-color: #a53b2b; }
:is(#potters-repellent-waitlist, #potters-corporate-booking) [data-potters-error-for] {
  display: block;
  margin: 6px 0 0;
  color: #942b22;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

:is(#potters-repellent-waitlist, #potters-corporate-booking) [data-potters-status] {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.5;
}

:is(#potters-repellent-waitlist, #potters-corporate-booking) [data-potters-state="success"] { color: #21483f; background: #e8f2e9; border-color: #b3ceb6; }
:is(#potters-repellent-waitlist, #potters-corporate-booking) [data-potters-state="error"] { color: #84291f; background: #fff0eb; border-color: #e6b1a6; }
:is(#potters-repellent-waitlist, #potters-corporate-booking) :is([data-potters-status], [data-potters-error-for]):empty { display: none; }

:is(#potters-repellent-waitlist, #potters-corporate-booking) :is(.potters-honeypot, .potters-field--honeypot) {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 540px) {
  #potters-repellent-waitlist,
  #potters-corporate-booking {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 26px 18px 22px;
    border-radius: 17px;
  }
  :is(#potters-repellent-waitlist, #potters-corporate-booking) .potters-form-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  :is(#potters-repellent-waitlist, #potters-corporate-booking) [data-potters-close] { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  :is(#potters-repellent-waitlist, #potters-corporate-booking),
  :is(#potters-repellent-waitlist, #potters-corporate-booking) * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
