/* =====================================================
   PARTICIPATE PAGE — participate.css
   Research study sign-up form. Layout mirrors /demo/.
   ===================================================== */

/* ── Full-page section ──────────────────────────────── */
.participate-section {
  min-height: calc(100vh - 80px); /* fill viewport below nav */
  display: flex;
  align-items: center;
  padding: 80px 0;
  box-sizing: border-box;
}

.participate-container {
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 60px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 80px;
  box-sizing: border-box;
}

/* ── Left: text column ──────────────────────────────── */
.participate-text {
  flex: 0 0 40%;
  min-width: 0;
}

.participate-heading {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--senseye-white);
  margin: 0 0 20px;
}

.participate-subheading {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--senseye-white);
  margin: 0 0 20px;
  opacity: 0.6;
}

.participate-text p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--senseye-white);
  margin: 0 0 16px;
  opacity: 0.9;
}

/* ── Right: form column ─────────────────────────────── */
.participate-form-wrap {
  flex: 1;
  min-width: 0;
}

.participate-form-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--senseye-teal);
  margin: 0 0 24px;
}

/* The page toggles messages with the `hidden` attribute; class rules that set
   `display` would otherwise beat the browser's default [hidden] style. */
.participate-section [hidden] {
  display: none;
}

/* Honeypot — off-screen for humans, still in the DOM for bots */
.participate-honeypot {
  position: absolute;
  left: -9999px;
}

.participate-field {
  margin-bottom: 16px;
}

.participate-field label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--senseye-white);
  margin-bottom: 6px;
}

.participate-optional {
  font-weight: 400;
  opacity: 0.6;
}

.participate-field input,
.participate-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  background: var(--senseye-white);
  border: 2px solid transparent;
  border-radius: 2px;
  font-size: 16px;
  font-family: 'Source Sans 3', sans-serif;
  color: #333;
}

.participate-field input.is-invalid {
  border-color: #d9534f;
}

.participate-field textarea {
  min-height: 120px;
  resize: vertical;
}

.participate-field-error {
  display: block;
  font-size: 14px;
  color: #d9534f;
  margin-top: 4px;
}

.participate-consent {
  font-size: 14px;
  line-height: 1.5;
  color: var(--senseye-white);
  opacity: 0.75;
  margin: 8px 0 16px;
}

.participate-consent a,
.participate-status a {
  color: var(--senseye-teal);
}

.participate-submit {
  display: inline-block;
  padding: 12px 32px;
  background: var(--senseye-teal);
  color: var(--senseye-white);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.participate-submit:hover {
  background: var(--senseye-navy-deep);
}

.participate-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* ── Success / error messages ───────────────────────── */
.participate-status {
  text-align: center;
  padding: 40px 0;
}

.participate-status h3 {
  font-size: 24px;
  margin: 0 0 12px;
}

.participate-status--success h3 {
  color: var(--senseye-teal);
}

.participate-status--error h3 {
  font-size: 20px;
  color: #d9534f;
}

.participate-status p {
  font-size: 18px;
  color: var(--senseye-white);
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 860px) {
  .participate-section {
    padding: 50px 0;
    align-items: flex-start;
  }

  .participate-container {
    flex-direction: column;
    padding: 0 24px;
    gap: 40px;
  }

  .participate-text {
    flex: none;
  }

  .participate-heading {
    font-size: 30px;
  }

  .participate-subheading {
    font-size: 18px;
  }
}
