/* =========================================================================
   ENQUIRY CONSENT — partials/enquiryConsent (all enquiry forms)
   .enq-dark = forms on glass / dark backgrounds (home banner)
   ========================================================================= */
.enq-consent {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 14px;
  text-align: left;
}

.enq-check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--pt-slate, #4a5a6b);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.55;
  cursor: pointer;
}

/* native box kept for a11y/keyboard, visually replaced by .enq-box */
.enq-check input {
  position: absolute;
  top: 2px;
  left: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.enq-box {
  flex: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid rgba(10, 26, 47, 0.3);
  border-radius: 5px;
  background: #fff;
  color: transparent;
  font-size: 11px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.enq-check:hover .enq-box {
  border-color: var(--pt-gold-dark, #d99500);
}

.enq-check input:checked + .enq-box {
  border-color: var(--pt-gold, #f8b600);
  background: var(--pt-gold, #f8b600);
  color: var(--pt-ink, #0b1f33);
}

.enq-check input:focus-visible + .enq-box {
  box-shadow: 0 0 0 3px rgba(248, 182, 0, 0.35);
}

.enq-text a {
  color: var(--pt-gold-dark, #d99500);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.enq-error {
  display: block;
  margin: -4px 0 0 28px;
  font-size: 12px;
}

.enq-error:empty {
  display: none;
}

.enq-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 12px 0 0;
  color: rgba(10, 26, 47, 0.35);
  font-size: 12.5px;
  text-align: center;
}

.enq-legal a {
  color: var(--pt-slate, #4a5a6b);
  font-weight: 500;
}

.enq-legal a:hover,
.enq-legal a:focus {
  color: var(--pt-gold-dark, #d99500);
  text-decoration: underline;
}

/* ---- Dark / glass variant ---- */
.enq-dark .enq-check {
  color: rgba(255, 255, 255, 0.82);
}

.enq-dark .enq-box {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.enq-dark .enq-text a,
.enq-legal.enq-dark a:hover,
.enq-legal.enq-dark a:focus {
  color: var(--pt-gold-light, #ffd166);
}

.enq-dark .enq-error {
  color: #ffb4a8 !important;
}

.enq-legal.enq-dark {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.4);
}

.enq-legal.enq-dark a {
  color: rgba(255, 255, 255, 0.8);
}

/* Home banner form is a 12px-gap flex column; tighten around the consent block */
.premium-home .banner-widget .enq-consent {
  margin: 2px 0 0;
}

/* Modal footers: let the legal line drop to its own row */
.modal-footer .enq-legal {
  flex-basis: 100%;
  margin-top: 4px;
}

.modal-footer {
  flex-wrap: wrap;
}
