/* ===================================================================
   Orgramic — consumer page (get fresh food)
   The first step of the future "browse farmers near you" marketplace.
   =================================================================== */

.consumer-body {
  min-height: 100%;
  background:
    radial-gradient(60% 40% at 85% 0%, rgba(166,206,57,.16), transparent 60%),
    radial-gradient(50% 40% at 0% 100%, rgba(46,125,50,.08), transparent 60%),
    var(--canvas);
  animation: cIn .45s var(--ease) both;
}
@keyframes cIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- top bar ---------- */
.consumer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 28px);
  padding-top: max(16px, env(safe-area-inset-top));
}
.consumer-top .brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.consumer-back { color: var(--muted); font-size: 1.2rem; line-height: 1; }
.consumer-top-right { display: flex; align-items: center; gap: 12px; }

/* ---------- layout ---------- */
.consumer-main {
  max-width: 520px; margin: 0 auto;
  padding: 8px clamp(18px, 5vw, 24px) 56px;
}
.consumer-hero { text-align: center; margin: 18px 0 26px; }
.consumer-emoji { font-size: 3rem; line-height: 1; filter: drop-shadow(0 8px 18px rgba(14,58,22,.16)); }
.consumer-title {
  font-family: var(--font-head); font-weight: 700; color: var(--emerald);
  font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em;
  margin: 12px 0 10px;
}
.consumer-sub { color: var(--muted); font-size: 1.02rem; line-height: 1.55; }

/* ---------- form card ---------- */
.consumer-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 5vw, 28px);
  display: flex; flex-direction: column; gap: 16px;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.c-field { display: block; }
.c-label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 7px; }
.c-label em { color: #c0392b; font-style: normal; }
.c-field input {
  width: 100%; font-family: var(--font-body); font-size: 1.05rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 15px; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.c-field input:focus { outline: none; border-color: var(--grass-action); box-shadow: var(--ring); }
.c-field input:invalid:not(:placeholder-shown) { border-color: #e2b4ad; }

.consumer-form .btn-primary { margin-top: 4px; }
.form-status { text-align: center; font-size: .92rem; min-height: 1.1em; margin: 0; }
.form-status.err { color: #c0392b; }
.form-status.ok { color: var(--grass-action-d); font-weight: 600; }

/* divider + WhatsApp */
.c-or { position: relative; text-align: center; color: var(--muted); font-size: .85rem; }
.c-or::before, .c-or::after {
  content: ""; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--line);
}
.c-or::before { left: 0; } .c-or::after { right: 0; }
.c-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  text-decoration: none; font-weight: 600; font-size: 1rem;
  color: #128C7E; background: rgba(18,140,126,.08);
  border: 1.5px solid rgba(18,140,126,.25); border-radius: var(--radius-sm);
  padding: 13px 16px; transition: background .2s, transform .15s;
}
.c-wa:hover { background: rgba(18,140,126,.14); }
.c-wa:active { transform: scale(.98); }

.consumer-soon {
  text-align: center; color: var(--muted); font-size: .9rem;
  margin: 22px auto 0; max-width: 40ch;
}
.consumer-form.sent { opacity: .96; }

/* leaving transition (back to split) */
.consumer-body.is-leaving { transition: opacity .28s ease; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .consumer-body { animation: none; }
  .consumer-body.is-leaving { transition: none; }
}
