/* ============================================================
   Anuva Organics — inquiry / lead form
   Self-contained styles using the site's palette so the form
   matches the design without relying on compiled utilities.
   ============================================================ */

:root {
  --inq-forest: oklch(0.32 0.06 145);
  --inq-forest-deep: oklch(0.27 0.05 145);
  --inq-gold: oklch(0.82 0.15 80);
  --inq-gold-deep: oklch(0.68 0.16 60);
  --inq-ink: oklch(0.28 0.02 60);
  --inq-muted: oklch(0.48 0.02 60);
  --inq-line: oklch(0.9 0.03 85);
  --inq-cream: oklch(0.985 0.012 90);
}

/* ---------- left column ---------- */
.inq-points {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.85rem;
  list-style: none;
  padding: 0;
}
.inq-points li {
  position: relative;
  padding-left: 2.1rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--inq-muted);
}
.inq-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 0.7rem no-repeat,
    linear-gradient(135deg, var(--inq-gold), var(--inq-gold-deep));
  box-shadow: 0 6px 14px -6px oklch(0.7 0.15 70 / 0.55);
}

.inq-direct {
  margin-top: 2.2rem;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  border: 1px solid var(--inq-line);
  background: color-mix(in oklab, var(--inq-cream) 70%, white);
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  color: var(--inq-muted);
}
.inq-direct a {
  font-weight: 700;
  color: var(--inq-forest);
  text-decoration: none;
}
.inq-direct a:hover {
  color: var(--inq-gold-deep);
}

/* ---------- form card ---------- */
.inq-card {
  position: relative;
  border: 1px solid var(--inq-line);
  background: white;
  border-radius: 1.75rem;
  padding: 2rem;
  box-shadow: 0 30px 60px -30px oklch(0.5 0.08 60 / 0.35);
}
@media (min-width: 768px) {
  .inq-card { padding: 2.5rem; }
}
.inq-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  border-radius: 1.75rem 1.75rem 0 0;
  background: linear-gradient(90deg, var(--inq-gold), var(--inq-gold-deep));
}

.inq-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 1rem;
}
@media (min-width: 640px) {
  .inq-row { grid-template-columns: 1fr 1fr; }
}
/* vertical rhythm lives on the rows/blocks, never on fields inside a
   row — so side-by-side fields always align flush */
.inq-row .inq-group { margin-top: 0; }
.inq-card > .inq-row + .inq-row,
.inq-card > .inq-group,
.inq-card > .inq-row + .inq-group,
.inq-card > .inq-hint + .inq-row { margin-top: 1.1rem; }
/* labels stay one line so paired inputs start at the same height */
.inq-label { white-space: nowrap; }

.inq-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--inq-forest);
  margin-bottom: 0.45rem;
}
.inq-label small {
  color: var(--inq-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: none;
}

.inq-field {
  width: 100%;
  border: 1px solid var(--inq-line);
  background: var(--inq-cream);
  border-radius: 0.9rem;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--inq-ink);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  appearance: none;
}
select.inq-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1rem;
  padding-right: 2.6rem;
}
/* an untouched required dropdown should read like a placeholder, not like
   a real answer the visitor already gave */
select.inq-field:required:invalid { color: oklch(0.62 0.02 60); }
select.inq-field option { color: var(--inq-ink); }
/* the area list stays locked until a city is chosen */
select.inq-field:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: color-mix(in oklab, var(--inq-cream) 85%, var(--inq-line));
}
textarea.inq-field {
  min-height: 6.5rem;
  resize: vertical;
}
.inq-field::placeholder { color: oklch(0.62 0.02 60); }
.inq-field:focus {
  border-color: var(--inq-gold-deep);
  background: white;
  box-shadow: 0 0 0 4px oklch(0.82 0.15 80 / 0.25);
}
.inq-field.inq-error {
  border-color: oklch(0.6 0.2 25);
  box-shadow: 0 0 0 4px oklch(0.6 0.2 25 / 0.15);
}

/* per-field inline validation message (shown by inquiry.js) */
.inq-err {
  display: none;
  margin: 0.4rem 0 0;
  padding-left: 0.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  color: oklch(0.5 0.19 25);
}
.inq-err.inq-show { display: block; }

/* honeypot — invisible to humans, tempting to bots */
.inq-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.inq-btn {
  margin-top: 1.5rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 0;
  border-radius: 999px;
  padding: 1.05rem 2rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--inq-cream);
  background: linear-gradient(135deg, var(--inq-forest), var(--inq-forest-deep));
  cursor: pointer;
  box-shadow: 0 18px 35px -15px oklch(0.32 0.06 145 / 0.6);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s, opacity 0.25s;
}
.inq-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 45px -18px oklch(0.32 0.06 145 / 0.7);
}
.inq-btn:active { transform: translateY(0); }
.inq-btn[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* delivery-area notice sitting between the address row and the product row */
.inq-hint {
  margin: 0.9rem 0 0;
  border: 1px dashed var(--inq-line);
  background: color-mix(in oklab, var(--inq-cream) 70%, white);
  border-radius: 0.8rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--inq-muted);
}
.inq-hint strong { color: var(--inq-forest); font-weight: 700; }

.inq-note {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--inq-muted);
}

.inq-status {
  margin-top: 1rem;
  border-radius: 0.9rem;
  padding: 0.85rem 1.1rem;
  font-size: 0.92rem;
  display: none;
}
.inq-status.inq-show { display: block; }
.inq-status.inq-ok {
  background: oklch(0.95 0.05 145);
  color: var(--inq-forest);
  border: 1px solid oklch(0.85 0.08 145);
}
.inq-status.inq-bad {
  background: oklch(0.96 0.03 25);
  color: oklch(0.45 0.18 25);
  border: 1px solid oklch(0.85 0.08 25);
}

/* ---------- success panel ---------- */
.inq-success {
  text-align: center;
  padding: 2.5rem 1rem;
  animation: inq-pop 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes inq-pop {
  0% { opacity: 0; transform: translateY(18px) scale(0.96); }
  100% { opacity: 1; transform: none; }
}
.inq-success-badge {
  width: 4.2rem;
  height: 4.2rem;
  margin: 0 auto 1.3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--inq-gold), var(--inq-gold-deep));
  box-shadow: 0 18px 40px -14px oklch(0.7 0.15 70 / 0.7);
}
.inq-success-badge svg { width: 2rem; height: 2rem; }
.inq-success h3 {
  font-family: Fraunces, serif;
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--inq-ink);
}
.inq-success p {
  margin-top: 0.6rem;
  color: var(--inq-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ==========================================================================
   WhatsApp submission
   The form no longer posts to a server; it hands the enquiry to WhatsApp.
   The button keeps the brand gradient rather than turning WhatsApp green —
   a flat green block would fight the cream/forest palette and read as a
   third-party widget bolted on. The official mark carries the meaning, and
   a green edge-light on hover hints at the destination.
   ========================================================================== */
.inq-btn-wa {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.inq-btn-whatsapp {
  position: relative;
  overflow: hidden;
}
/* sweep of WhatsApp green across the gradient on hover */
.inq-btn-whatsapp::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #25d366 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.32s ease;
  pointer-events: none;
}
.inq-btn-whatsapp:hover::after,
.inq-btn-whatsapp:focus-visible::after { opacity: 0.22; }
/* keep the label and mark above the sweep */
.inq-btn-whatsapp > * { position: relative; z-index: 1; }

/* success badge switches from the generic tick to the WhatsApp mark */
.inq-success-wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
}
.inq-success-wa svg { width: 1.9rem; height: 1.9rem; }

/* fallback route when a popup blocker swallows the WhatsApp window */
.inq-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 10px 24px -12px oklch(0.32 0.06 145 / 0.8);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s;
}
.inq-wa-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -14px oklch(0.32 0.06 145 / 0.9);
}

@media (prefers-reduced-motion: reduce) {
  .inq-btn-whatsapp::after { transition-duration: 0.01ms; }
  .inq-wa-link { transition-duration: 0.12s; }
}

/* Brief highlight on the pack select when a product CTA has chosen it for the
   visitor — without it the pre-selection happens off-screen during the scroll
   and they arrive unsure whether anything was set. */
.inq-prefilled {
  border-color: #25d366 !important;
  box-shadow: 0 0 0 3px oklch(0.72 0.19 150 / 0.25);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
@media (prefers-reduced-motion: reduce) {
  .inq-prefilled { transition-duration: 0.01ms; }
}
