/* Glassmorphic inline "quick enquiry" form — shared component dropped onto
   location pages, application pages, and the homepage just above the FAQ.
   See lib/render-inline-enquiry-form.js. Self-contained on layout.css's
   --xrt-* tokens only, so it works on the homepage too (no solutions.css
   or location.css dependency). */

.xrt-enq {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: var(--xrt-space-lg) 0;
  padding: var(--xrt-space-lg) 24px;
  background: linear-gradient(135deg, var(--xrt-deep) 0%, var(--xrt-deep-d) 55%, #0a241d 100%);
}

.xrt-enq::before,
.xrt-enq::after {
  content: '';
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.32;
  pointer-events: none;
}
.xrt-enq::before { width: 420px; height: 420px; background: var(--xrt-lime); top: -160px; left: -120px; }
.xrt-enq::after { width: 380px; height: 380px; background: var(--xrt-teal); bottom: -160px; right: -100px; }

.xrt-enq__inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }

.xrt-enq__head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.xrt-enq__eyebrow {
  font-family: var(--xrt-font-h);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--xrt-lime);
  margin: 0 0 10px;
}
.xrt-enq__title {
  font-family: var(--xrt-font-h);
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 12px;
}
.xrt-enq__sub { font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, 0.72); margin: 0; }

.xrt-enq__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

/* Visual panel — stacks above the form on mobile (value/proof before the
   ask), sits to its left on desktop. Image + a scrim-backed caption/trust
   list, not decorative filler: it answers "why should I bother" right next
   to the form instead of making the visitor infer it. */
.xrt-enq__visual {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: 220px;
}
.xrt-enq__visual-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xrt-enq__visual-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 18px;
  background: linear-gradient(0deg, rgba(5, 20, 16, 0.92) 0%, rgba(5, 20, 16, 0.55) 60%, rgba(5, 20, 16, 0) 100%);
}
.xrt-enq__visual-tag {
  display: inline-block;
  font-family: var(--xrt-font-h);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--xrt-lime-ink);
  background: var(--xrt-lime);
  border-radius: 999px;
  padding: 4px 10px;
  margin: 0 0 8px;
}
.xrt-enq__visual-caption { font-size: 14.5px; line-height: 1.45; color: #fff; margin: 0 0 10px; max-width: 420px; }
.xrt-enq__visual-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.xrt-enq__visual-trust li {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
  padding-left: 18px;
  position: relative;
}
.xrt-enq__visual-trust li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--xrt-lime);
}

.xrt-enq__form-col { flex: 1 1 auto; padding: 32px; min-width: 0; }

.xrt-enq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.xrt-enq__field--full { grid-column: 1 / -1; }

.xrt-enq__label {
  display: block;
  font-family: var(--xrt-font-h);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 7px;
}
.xrt-enq__label small { text-transform: none; letter-spacing: 0; font-weight: 500; color: rgba(255, 255, 255, 0.4); }

.xrt-enq__input,
.xrt-enq__select,
.xrt-enq__textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #fff;
  font: 15px/1.4 var(--xrt-font-b);
  padding: 13px 14px;
  min-height: 48px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.xrt-enq__textarea { min-height: 96px; resize: vertical; }
.xrt-enq__input::placeholder,
.xrt-enq__textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.xrt-enq__input:focus,
.xrt-enq__select:focus,
.xrt-enq__textarea:focus {
  outline: none;
  border-color: var(--xrt-lime);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(200, 243, 106, 0.18);
}
.xrt-enq__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M5 7l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}
.xrt-enq__select option { color: #14231e; }

.xrt-enq__file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  padding: 13px 14px;
  min-height: 48px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.65);
  font: 14px/1.3 var(--xrt-font-b);
  transition: border-color 0.15s, background 0.15s;
}
.xrt-enq__file:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.08); }
.xrt-enq__file svg { flex: 0 0 auto; opacity: 0.7; }
.xrt-enq__file input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.xrt-enq__file-name { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Honeypot — hidden from real visitors (and screen readers via aria-hidden
   on the wrapping field, set in the markup), left visible to form-filling
   bots that don't render CSS. */
.xrt-enq__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.xrt-enq__actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.xrt-enq__submit {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--xrt-lime);
  color: var(--xrt-lime-ink);
  font: 800 15px var(--xrt-font-h);
  padding: 15px 30px;
  min-height: 50px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(200, 243, 106, 0.25);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.xrt-enq__submit:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(200, 243, 106, 0.35); }
.xrt-enq__submit:disabled { opacity: 0.6; cursor: default; transform: none; }
.xrt-enq__privacy { font-size: 12px; color: rgba(255, 255, 255, 0.45); margin: 0; }

.xrt-enq__msg {
  grid-column: 1 / -1;
  font-size: 13.5px;
  font-weight: 600;
  display: none;
  padding: 11px 14px;
  border-radius: 10px;
}
.xrt-enq__msg--error { display: block; background: rgba(255, 90, 70, 0.15); color: #ffb4a6; border: 1px solid rgba(255, 90, 70, 0.3); }
.xrt-enq__msg--ok { display: block; background: rgba(200, 243, 106, 0.15); color: var(--xrt-lime); border: 1px solid rgba(200, 243, 106, 0.3); }

.xrt-enq__success { display: none; text-align: center; padding: 30px 10px; }
.xrt-enq__success--show { display: block; }
.xrt-enq__success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--xrt-lime);
  color: var(--xrt-lime-ink);
}
.xrt-enq__success h3 { font-family: var(--xrt-font-h); font-weight: 800; font-size: 20px; color: #fff; margin: 0 0 6px; }
.xrt-enq__success p { font-size: 14px; color: rgba(255, 255, 255, 0.65); margin: 0; }

/* Side-by-side split above this breakpoint — chosen so the form column
   still has enough room to keep its 2-column field grid even after losing
   width to the visual panel (below it, the grid itself drops to 1 column
   anyway, so a side-by-side split would just cramp both halves). */
@media (min-width: 881px) {
  .xrt-enq__card { flex-direction: row; align-items: stretch; }
  .xrt-enq__visual { flex: 0 0 42%; width: 42%; height: auto; }
  .xrt-enq__visual-overlay { padding: 22px 24px; }
  .xrt-enq__visual-caption { font-size: 15.5px; }
}

@media (max-width: 720px) {
  .xrt-enq { padding: var(--xrt-space-md) 16px; margin: var(--xrt-space-md) 0; }
  .xrt-enq__card { border-radius: 18px; }
  .xrt-enq__form-col { padding: 22px 18px; }
  .xrt-enq__visual { height: 180px; }
  .xrt-enq__grid { grid-template-columns: 1fr; }
  .xrt-enq__submit { width: 100%; }
  .xrt-enq__actions { flex-direction: column; align-items: stretch; }
}
