.wa-enquiry-trigger,
.wa-enquiry {
  --wa-right: max(18px, env(safe-area-inset-right));
  --wa-bottom: max(18px, env(safe-area-inset-bottom));
}

.wa-enquiry-trigger {
  position: fixed;
  right: var(--wa-right);
  bottom: var(--wa-bottom);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  color: #fff;
  font: 700 14px/1 'DM Sans', sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.wa-enquiry-label {
  paint-order: stroke fill;
  -webkit-text-stroke: 2px #0a1616;
  text-shadow: 0 1px 3px #07110ed9;
}

.wa-enquiry-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid #b8ffd1;
  border-radius: 50%;
  background: #15824a;
  box-shadow: 0 6px 22px #06181052;
}

.wa-enquiry-trigger:hover .wa-enquiry-icon { background: #0b6d3d; }
.wa-enquiry-icon svg { width: 34px; height: 34px; }

.platform .wa-enquiry {
  --wa-hero-rise: clamp(76px, 15dvh, 118px);
  position: fixed;
  inset: auto var(--wa-right) var(--wa-bottom) auto;
  width: min(440px, calc(100% - var(--wa-right) - 16px));
  max-width: none;
  max-height: none;
  margin: 0;
  padding: var(--wa-hero-rise) 0 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: #eff7f5;
  color-scheme: dark;
}

.wa-enquiry-panel {
  max-height: calc(100dvh - var(--wa-bottom) - var(--wa-hero-rise) - 16px);
  padding: 18px 16px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #2f4543;
  border-top-color: #659585;
  border-radius: 18px;
  background: #101c22;
  box-shadow: 0 16px 60px #0008;
}

.wa-enquiry::backdrop { background: #050a12a3; }

.wa-enquiry-heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.wa-enquiry-symbol { display: grid; place-items: center; color: #9bf7bb; }
.wa-enquiry-symbol svg { width: 30px; height: 30px; }

.platform .wa-enquiry h2 {
  margin: 0;
  color: inherit;
  font: 600 17px/1.35 'Space Grotesk', 'DM Sans', sans-serif;
  letter-spacing: -.02em;
}

.wa-enquiry-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #e3eeeb;
  font: 24px/1 'DM Sans', sans-serif;
  border: 1px solid #34494d;
  border-radius: 50%;
  background: #192b32;
  cursor: pointer;
}

.wa-enquiry-close:hover { background: #2b4146; }
.wa-enquiry-hero {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  width: auto;
  max-width: 90%;
  height: calc(var(--wa-hero-rise) + 14px);
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
  filter: drop-shadow(0 5px 8px #0008);
  pointer-events: none;
}

.wa-enquiry form { display: grid; gap: 8px; }
.wa-enquiry-field { display: grid; gap: 6px; }
.wa-enquiry-field label { font-size: 13px; font-weight: 600; }

.wa-enquiry-field :is(input, textarea) {
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  background: #09151b;
  border: 1px solid #456062;
  border-radius: 8px;
  color: #eff7f5;
  font: 16px/1.35 'DM Sans', sans-serif;
}

.wa-enquiry-categories {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.wa-enquiry-categories legend { margin-bottom: 6px; padding: 0; font-size: 13px; font-weight: 600; }
.wa-enquiry-categories legend span { color: #b4c8c5; font-weight: 400; }

.wa-enquiry-categories label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #456062;
  border-radius: 8px;
  background: #09151b;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
}

.wa-enquiry-categories label:has(input:checked) { border-color: #9bf7bb; background: #153129; }
.wa-enquiry-categories input { width: 16px; height: 16px; margin: 0; accent-color: #9bf7bb; }

.wa-enquiry-field textarea { resize: vertical; min-height: 72px; }
.platform .wa-enquiry p { margin: 0; color: #b4c8c5; font-size: 12px; line-height: 1.5; }

.wa-enquiry-send {
  min-height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: #abf4c3;
  color: #113525;
  font: 700 14px/1.4 'DM Sans', sans-serif;
  cursor: pointer;
}

.wa-enquiry-send:hover { background: #cdfbda; }
.wa-enquiry-send svg { width: 22px; height: 22px; }

@media (max-width: 480px) {
  .wa-enquiry-trigger,
  .wa-enquiry {
    --wa-right: max(12px, env(safe-area-inset-right));
    --wa-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .wa-enquiry-icon { width: 54px; height: 54px; }
}
