/* ============================================================
   Public prospect form -- styles
   Mastermind Marketing, Inc.
   Mobile-first: most people land here from a phone QR scan.
   Reuses the brand variables defined in ../css/styles.css.
   ============================================================ */

.apply-body {
  background: var(--bg);
  padding: 0;
}

.apply-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.apply-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 6px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
}

/* ---------- Header ---------- */
.apply-head { text-align: center; margin-bottom: 22px; }
.apply-head .dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--green); color: #fff; font-weight: 800; font-size: 20px;
  margin-bottom: 12px;
}
.apply-head h1 { font-size: 24px; margin: 0 0 6px; color: var(--ink); }
.apply-head .lead { margin: 0; color: var(--ink-soft); font-size: 15px; }
.apply-head .ref { margin: 10px 0 0; font-size: 13px; color: var(--ink-faint); }
.apply-head .ref b { color: var(--green-dark); }

/* ---------- Text fields ---------- */
.grp { margin-bottom: 16px; }
.lbl {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.req { color: var(--green-dark); }
.fld {
  width: 100%; padding: 12px 14px; font-size: 16px;  /* 16px avoids iOS zoom */
  font-family: var(--font); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fld:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,157,107,.15);
}
.fld.invalid { border-color: #d8453b; box-shadow: 0 0 0 3px rgba(216,69,59,.12); }
.fld-short { max-width: 140px; }

/* ---------- Auto-derived "25+ years" chip ---------- */
.auto-25 {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 10px; padding: 6px 12px 6px 6px;
  border: 1px dashed var(--line); border-radius: 999px;
  color: var(--ink-faint); font-size: 13px; font-weight: 600;
  transition: all .15s ease;
}
.auto-25 .auto-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid #cdd5da; background: #fff;
  color: var(--ink-faint); font-size: 12px; font-weight: 700;
}
.auto-25.lit {
  border-style: solid; border-color: var(--green);
  background: #f0faf5; color: var(--green-dark);
}
.auto-25.lit .auto-dot {
  background: var(--green); border-color: var(--green); color: #fff;
}

.rule { border: none; border-top: 1px solid var(--line); margin: 22px 0 18px; }
.qintro { font-weight: 600; color: var(--ink); margin: 0 0 12px; }

/* ---------- Yes / No criterion boxes ---------- */
.qbox {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 12px; background: #fff;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
/* The highlight: applied automatically when "Yes" is chosen. */
.qbox.lit {
  border-color: var(--green); background: #f0faf5;
  box-shadow: inset 4px 0 0 var(--green);
}
.qbox .q { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--ink); }

.yn { display: flex; gap: 10px; }
.yn label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink-soft);
  background: #fff; transition: all .12s ease; user-select: none;
}
.yn input { accent-color: var(--green); width: 18px; height: 18px; margin: 0; }
.yn label:hover { border-color: var(--green); }
/* Selected pill styling */
.yn label:has(input:checked) {
  border-color: var(--green); color: var(--green-dark); background: #eafaf2;
}

/* ---------- Errors + submit ---------- */
.form-err {
  margin: 4px 0 14px; color: #b3261e; font-size: 14px; font-weight: 600;
  background: #fdecea; border: 1px solid #f5c6c2; border-radius: 10px; padding: 10px 12px;
}
.submit-btn {
  width: 100%; padding: 15px 18px; font-size: 16px; font-weight: 700;
  font-family: var(--font); color: #fff; background: var(--green);
  border: none; border-radius: 12px; cursor: pointer; margin-top: 6px;
  box-shadow: var(--shadow); transition: background .15s ease, box-shadow .15s ease;
}
.submit-btn:hover { background: var(--green-dark); box-shadow: var(--shadow-hover); }
.submit-btn:disabled { opacity: .6; cursor: default; }

.legal { text-align: center; color: var(--ink-faint); font-size: 12px; margin-top: 18px; }

/* Fallback for browsers without :has() -- JS also toggles .checked-pill */
.yn label.checked-pill {
  border-color: var(--green); color: var(--green-dark); background: #eafaf2;
}
