/* Enquiry pop-up. Colours follow the site theme (--theme-color) when it exists.
   To force a colour: .enq-modal { --enq-accent: #0b6e4f; } */
.enq-modal {
  --enq-accent: var(--theme-color, #1f3864);
  --enq-ink: #1f2937;
  --enq-muted: #6b7280;
  --enq-line: #d9dee7;
  --enq-bad: #b42318;
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  font-family: inherit; color: var(--enq-ink);
}
.enq-modal[hidden] { display: none; }
.enq-lock { overflow: hidden; }

.enq-backdrop { position: absolute; inset: 0; background: rgba(10, 18, 32, .62); opacity: 0; transition: opacity .18s ease; }
.enq-card {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  overflow-y: auto; background: #fff; border-radius: 16px; padding: 28px 28px 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
  transform: translateY(14px) scale(.98); opacity: 0; transition: transform .2s ease, opacity .2s ease;
}
.enq-in .enq-backdrop { opacity: 1; }
.enq-in .enq-card { transform: none; opacity: 1; }

.enq-x {
  position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: #f1f3f7; color: var(--enq-ink); font-size: 24px; line-height: 1; cursor: pointer;
}
.enq-x:hover { background: #e4e8ef; }

.enq-head { padding-right: 34px; margin-bottom: 16px; }
.enq-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--enq-accent); }
.enq-head h3 { margin: 4px 0 6px; font-size: 22px; line-height: 1.25; color: var(--enq-ink); }
.enq-sub { margin: 0; font-size: 14px; color: var(--enq-muted); }

.enq-row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 560px) { .enq-row { grid-template-columns: 1fr 1fr; } }

.enq-field { margin-bottom: 12px; }
.enq-field label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; color: var(--enq-ink); }
.enq-field label em { font-style: normal; font-weight: 400; color: var(--enq-muted); }
.enq-field input, .enq-field textarea {
  display: block; width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--enq-line); border-radius: 10px; background: #fff; color: var(--enq-ink);
  font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.enq-field textarea { resize: vertical; min-height: 80px; }
.enq-field input:focus, .enq-field textarea:focus { outline: 0; border-color: var(--enq-accent); box-shadow: 0 0 0 3px rgba(31, 56, 100, .15); }
.enq-field input[aria-invalid="true"], .enq-field textarea[aria-invalid="true"] { border-color: var(--enq-bad); background: #fffafa; }
.enq-msg { display: block; min-height: 0; margin-top: 4px; font-size: 12px; color: var(--enq-bad); }

.enq-alert { margin: 2px 0 12px; padding: 10px 12px; border-radius: 10px; background: #fdecea; color: var(--enq-bad); font-size: 14px; }
.enq-alert[hidden] { display: none; }

.enq-submit {
  display: block; width: 100%; min-height: 48px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--enq-accent); color: #fff; font: inherit; font-size: 16px; font-weight: 700;
}
.enq-submit:hover { filter: brightness(1.08); }
.enq-submit:disabled { opacity: .65; cursor: wait; }
.enq-safe { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--enq-muted); }

.enq-done { text-align: center; padding: 14px 6px 4px; }
.enq-done[hidden] { display: none; }
.enq-done h3 { margin: 10px 0 6px; font-size: 22px; color: var(--enq-ink); }
.enq-done p { margin: 0 0 18px; color: var(--enq-muted); }
.enq-tick { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: #dcfce7; color: #166534; font-size: 34px; line-height: 64px; font-weight: 700; }

/* honeypot: invisible to people, bots fill it in */
.enq-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 559px) {
  .enq-modal { align-items: flex-end; padding: 0; }
  .enq-card { max-width: none; border-radius: 18px 18px 0 0; padding: 24px 18px 20px; max-height: 94vh; max-height: 94dvh; }
}
@media (prefers-reduced-motion: reduce) {
  .enq-backdrop, .enq-card { transition: none; }
}
