/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #5cb85c;
  --green-dark: #3a7a3a;
  --green-dim: rgba(92, 184, 92, 0.2);
  --green-border: rgba(92, 184, 92, 0.28);
  --bg: #18100a;
  --bg-card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.11);
  --text: #e8e0d0;
  --text-muted: #908070;
  --text-dim: #6a7a5a;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 8px;
  --max-w: 560px;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 70% 50% at 15% 15%, rgba(30, 55, 15, 0.55) 0%, transparent 65%),
    radial-gradient(ellipse 60% 45% at 85% 85%, rgba(40, 25, 5, 0.6) 0%, transparent 65%);
  font-family: var(--font-body);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Screen-reader only ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Leaf decorations ── */
.leaf {
  position: fixed;
  width: 260px; height: 260px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 5 C20 5 5 30 5 50 C5 70 20 90 50 95 C80 90 95 70 95 50 C95 30 80 5 50 5Z M50 5 L50 95 M50 5 C35 20 25 35 30 55 M50 5 C65 20 75 35 70 55' stroke='%2355aa55' stroke-width='2' fill='none' opacity='0.5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
}
.leaf-tl { top: -40px; left: -50px; transform: rotate(-25deg); }
.leaf-tr { top: -40px; right: -50px; transform: rotate(25deg) scaleX(-1); }
.leaf-bl { bottom: 280px; left: -40px; transform: rotate(20deg); }
.leaf-br { bottom: 280px; right: -40px; transform: rotate(-20deg) scaleX(-1); }

/* ── Layout wrapper ── */
.wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  position: relative;
  z-index: 1;
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 3rem 0 1.75rem;
  animation: fadeUp 0.7s ease both;
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(42px, 12vw, 64px);
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1;
}
.logo .white { color: #fff; }
.logo .green { color: var(--green); }

.tagline {
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 500;
  color: var(--text);
  margin-top: 0.6rem;
  letter-spacing: 0.2px;
}
.tagline .green { color: var(--green); }

.divider-line {
  width: 180px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  border-radius: 2px;
  margin: 1.1rem auto;
}

.serving {
  font-size: 15px;
  color: #b0a898;
  font-weight: 400;
}
.serving .green { color: var(--green); font-weight: 700; }

/* ── STATUS BOX ── */
.status-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem 0.85rem;
  margin: 1.5rem 0;
  animation: fadeUp 0.7s 0.1s ease both;
}

.status-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.status-icon { flex-shrink: 0; font-size: 15px; margin-top: 1px; }
.status-label .green { color: var(--green); }

.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.steps {
  display: flex;
  justify-content: space-between;
  list-style: none;
  font-size: 11.5px;
  gap: 4px;
}
.step {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-dim);
}
.step.active { color: var(--text); font-weight: 600; }
.check { color: var(--green); }
.check.dim { color: var(--text-dim); }

/* ── SIGN UP SECTION ── */
.signup-section {
  text-align: center;
  padding: 0.5rem 0 1.5rem;
  animation: fadeUp 0.7s 0.2s ease both;
}

.signup-section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 38px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.signup-section h2 .green { color: var(--green); }

.signup-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0.6rem 0 1.4rem;
  line-height: 1.6;
}

/* ── FORM ── */
#signup-form { text-align: left; }

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.input-wrap {
  flex: 1;
  position: relative;
}
.input-wrap.full { margin-bottom: 10px; }

.input-wrap input,
.input-wrap select {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.72rem 1rem;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.input-wrap input::placeholder { color: var(--text-muted); }

.input-wrap input:focus,
.input-wrap select:focus {
  border-color: var(--green);
  background: rgba(92, 184, 92, 0.06);
}

.input-wrap input:focus::placeholder { color: var(--text-dim); }

/* select arrow */
.select-wrap select { padding-right: 2.2rem; cursor: pointer; }
.select-caret {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  font-size: 12px;
  pointer-events: none;
}

/* select option text in dark dropdown */
.input-wrap select option {
  background: #1e1408;
  color: var(--text);
}

/* Referral field */
.referral-wrap {
  display: flex;
  align-items: center;
  background: rgba(92, 184, 92, 0.055);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 0 1rem;
  margin-bottom: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.referral-wrap:focus-within {
  border-color: var(--green);
  background: rgba(92, 184, 92, 0.09);
}
.referral-icon { font-size: 14px; margin-right: 8px; flex-shrink: 0; }
.referral-wrap input {
  background: transparent;
  border: none;
  padding: 0.72rem 0;
  flex: 1;
}
.referral-wrap input:focus { background: transparent; border: none; }
.referral-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid var(--green-border);
  border-radius: 4px;
  padding: 3px 7px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Submit button */
.btn-notify {
  width: 100%;
  background: var(--green-dark);
  border: 1px solid #4a8a4a;
  border-radius: var(--radius);
  padding: 0.9rem;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #e8fae8;
  margin-top: 0.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.1s;
}
.btn-notify:hover { background: #3d7a3d; }
.btn-notify:active { transform: scale(0.985); }
.btn-notify.loading { opacity: 0.7; cursor: not-allowed; }
.btn-arrow { font-size: 20px; line-height: 1; }

/* Form feedback message */
.form-msg {
  text-align: center;
  font-size: 13px;
  margin-top: 0.65rem;
  min-height: 1.4em;
  transition: color 0.2s;
}
.form-msg.success { color: var(--green); }
.form-msg.error { color: #e07070; }

/* ── SECTION DIVIDER ── */
.section-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 0.5rem 0 1.25rem;
}

/* ── DIRECTORY SECTION ── */
.directory-section {
  animation: fadeUp 0.7s 0.3s ease both;
}

.directory-section h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 6vw, 28px);
  color: #fff;
  text-align: center;
  font-weight: 700;
}

.dir-sub {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: 0.3rem 0 1.1rem;
}

.search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 0.85rem;
  transition: border-color 0.2s;
}
.search-input-wrap:focus-within { border-color: var(--green); }
.search-icon { font-size: 14px; flex-shrink: 0; }

.search-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.65rem 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  outline: none;
}
.search-input-wrap input::placeholder { color: var(--text-muted); }

.location-tag {
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s;
}
.location-tag:hover { background: rgba(92,184,92,0.3); }

/* Dispensary cards */
.dispensary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.disp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.disp-card:hover {
  border-color: rgba(92,184,92,0.3);
  background: rgba(255,255,255,0.07);
}

.disp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}
.disp-name { font-weight: 700; font-size: 15px; color: #fff; }
.disp-badge { font-size: 12px; color: var(--green); font-weight: 700; }

.stars {
  color: #f0c040;
  font-size: 12px;
  margin: 3px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.rating-num { color: var(--text-muted); font-size: 11px; }

.disp-desc { font-size: 12px; color: var(--text-muted); margin: 4px 0 3px; line-height: 1.5; }
.disp-meta { font-size: 11px; color: var(--text-dim); display: flex; align-items: center; gap: 5px; }

.view-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--green);
  margin-top: 0.9rem;
  cursor: pointer;
  padding: 0.4rem;
  transition: opacity 0.2s;
}
.view-all-btn:hover { opacity: 0.75; }

/* ── FOOTER ── */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  font-size: 12px;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}

/* ── Contact hint ── */
.contact-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-align: left;
}
.contact-hint .green { color: var(--green); }

/* Required field highlight (when neither email nor phone filled) */
.field-required input {
  border-color: #c05050 !important;
  background: rgba(200, 80, 80, 0.07) !important;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 400px) {
  .steps { font-size: 10px; gap: 2px; }
  .form-row { flex-direction: column; }
}
