/* ==========================================================================
   Seofonyx – enquiry form (shared by index.html and index3.html)
   Frosted-glass card for dark backgrounds. Theme a page by overriding the
   --enq-* properties on .enquiry-card.
   ========================================================================== */
.enquiry-card {
  --enq-accent: #f0b43c;
  --enq-accent-rgb: 240, 180, 60;
  --enq-ink: #0a1f26;
  --enq-radius: 0.5rem;
  --enq-card-radius: 0.75rem;
  --enq-autofill: rgba(16, 52, 63, 0.95);
  --enq-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
/* frosted-glass card over the dark CTA background */
.enquiry-card {
  position: relative;
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--enq-card-radius);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
/* soft gold glow in the corner for depth */
.enquiry-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--enq-accent-rgb), 0.22), transparent 65%);
  pointer-events: none;
}
.enquiry-card > * { position: relative; }
.enquiry-card .text-muted-sx, .enquiry-card .muted { color: rgba(255, 255, 255, 0.68); }
.enquiry-head { border-bottom: 1px solid rgba(255, 255, 255, 0.16); padding-bottom: 1rem; margin-bottom: 1.25rem; }
.enquiry-form .row { --bs-gutter-y: 0.85rem; }
.enquiry-form .form-label { font-size: 0.8125rem; font-weight: 500; margin-bottom: 0.3rem; color: rgba(255, 255, 255, 0.85); }
.enquiry-form .form-control {
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--enq-radius);
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.95rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
/* keep browser autofill from painting fields white */
.enquiry-form .form-control:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 100px var(--enq-autofill) inset;
  caret-color: #fff;
}

/* mobile number: country-code picker joined to the input */
.phone-group { display: flex; }
.phone-group .form-control { border-top-left-radius: 0; border-bottom-left-radius: 0; min-width: 0; }
.dial-picker {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 0;
  border-radius: var(--enq-radius) 0 0 var(--enq-radius);
  background: rgba(255, 255, 255, 0.14);
  transition: border-color .2s, box-shadow .2s;
}
.dial-display { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0 0.7rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.65); white-space: nowrap; pointer-events: none; }
.dial-display b { color: #fff; font-weight: 500; }
/* native dropdown list stays readable (it doesn't inherit the glass) */
.dial-picker select option { color: var(--enq-ink); background: #fff; }
.dial-display .bi { font-size: 0.65rem; }
/* the real <select> sits invisibly on top, so the native picker opens on click/tap */
.dial-picker select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 1rem; }
.dial-picker:focus-within { border-color: var(--enq-accent); box-shadow: 0 0 0 4px rgba(var(--enq-accent-rgb), 0.2); z-index: 1; }
.phone-group.is-invalid .dial-picker { border-color: #ff8a7a; }
.enquiry-form .form-control::placeholder { color: rgba(255, 255, 255, 0.42); }
.enquiry-form .form-control:focus { border-color: var(--enq-accent); background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: 0 0 0 4px rgba(var(--enq-accent-rgb), 0.22); }
.enquiry-form .form-control.is-invalid { border-color: #ff8a7a; background-image: none; }
.enquiry-form .form-control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(255, 138, 122, 0.2); }
.enquiry-form .form-control.is-valid { border-color: #6fd3a0; background-image: none; }
.enquiry-form .invalid-feedback { font-size: 0.82rem; color: #ffb3a8; }
.enquiry-form textarea.form-control { height: auto; resize: vertical; min-height: 5.25rem; }
.char-count { font-size: 0.78rem; padding-top: 0.25rem; white-space: nowrap; flex-shrink: 0; padding-left: 1rem; }
.enquiry-note { font-size: 0.82rem; max-width: 22rem; }
.enquiry-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* honeypot – off-screen rather than display:none so naive bots still see it */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.captcha-row { display: flex; gap: 0.75rem; align-items: flex-start; }
.captcha-box { position: relative; flex-shrink: 0; border-radius: var(--enq-radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.25); background: #f5f1e8; height: 2.75rem; padding-right: 2.6rem; }
.captcha-box img { display: block; width: auto; height: 100%; user-select: none; }
.captcha-refresh {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 0;
  background: rgba(10, 10, 10, 0.75);
  color: var(--enq-accent);
  display: grid;
  place-items: center;
  transition: transform .4s var(--enq-ease), background-color .2s;
}
.captcha-refresh:hover { background: var(--enq-ink); transform: translateY(-50%) rotate(180deg); }
.captcha-refresh.is-spinning .bi { animation: spin .7s linear infinite; }
#enqCaptcha { text-transform: uppercase; letter-spacing: 0.3em; font-weight: 500; }
#enqCaptcha::placeholder { text-transform: none; letter-spacing: normal; font-weight: 400; }
@keyframes spin { to { transform: rotate(360deg); } }

.enquiry-status:empty { display: none; }
.enquiry-status { margin-top: 1.25rem; padding: 0.85rem 1rem; border-radius: var(--enq-radius); font-size: 0.95rem; display: flex; gap: 0.6rem; align-items: flex-start; }
.enquiry-status.is-success { background: rgba(111, 211, 160, 0.16); color: #b8f0d2; border: 1px solid rgba(111, 211, 160, 0.35); }
.enquiry-status.is-error { background: rgba(255, 138, 122, 0.14); color: #ffc4bb; border: 1px solid rgba(255, 138, 122, 0.35); }
.enquiry-status.is-info { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); }

@media (max-width: 575.98px) {
  .captcha-row { flex-direction: column; }
  .captcha-row > .flex-grow-1 { width: 100%; }
  .captcha-box { align-self: flex-start; }
}
