/* The Ministry, new member survey.
   Matches theministry.com (crush theme): Akkurat, #1a1a1a, white, #a3a3a3,
   1.5px pill outline buttons, square inputs, hairline rules. No accent colour. */

@font-face { font-family: 'Akkurat'; font-weight: 300; font-style: normal; font-display: swap; src: url('fonts/Akkurat-Light.woff2') format('woff2'); }
@font-face { font-family: 'Akkurat'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/Akkurat.woff2') format('woff2'); }
@font-face { font-family: 'Akkurat'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/Akkurat-Bold.woff2') format('woff2'); }

:root {
  --bg: #1a1a1a;
  --text: #ffffff;
  --muted: #a3a3a3;
  --line: #a3a3a3;
  --line-soft: #434343;
  --error: #d4323e;
  --font: 'Akkurat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --wrap: 1194px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }

/* ---------- Ticker (as on theministry.com) ---------- */
.ticker {
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0 13px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ticker__track { display: inline-flex; animation: ticker 70s linear infinite; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ---------- Header / footer ---------- */
.site-header {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px var(--gutter);
}
.logo { display: inline-block; }
.logo img { display: block; width: 44px; height: 44px; }

.site-footer {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--wrap) - 2 * var(--gutter));
  margin: auto auto 0;
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  font-size: 14px;
}
.site-footer strong { display: block; font-weight: 700; font-size: 16px; margin-bottom: 16px; }
.site-footer__address p { margin-bottom: 14px; line-height: 1.6; }
.site-footer a { text-decoration: none; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 10px; font-weight: 700; }
.site-footer__legal a + a::before { content: '|'; padding: 0 6px; font-weight: 400; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.wrap {
  flex: 1;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px var(--gutter) 96px;
}
.screen { display: none; }
.screen.is-active { display: block; }

/* ---------- Type ---------- */
.display {
  margin: 0 0 40px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9;
  font-size: 58px;
  max-width: 10ch;
}
.intro { max-width: 640px; }
.lede { font-size: 20px; line-height: 1.4; margin-bottom: 20px; }
.note { font-size: 14px; color: var(--muted); }

@media (min-width: 781px) {
  .display { font-size: 120px; }
  .lede { font-size: 22px; }
}

/* ---------- Buttons (theministry.com .btn) ---------- */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 169px;
  padding: 0.5em 2.4em;
  border: 1.5px solid var(--text);
  border-radius: 50px;
  background: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  -webkit-appearance: none;
}
.btn:hover, .btn--solid { background: var(--text); color: var(--bg); }
.btn--solid:hover { background: none; color: var(--text); }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 40px; }
.actions--nav { justify-content: space-between; margin-top: 0; padding-top: 40px; border-top: 1px solid var(--line); }

/* ---------- Progress ---------- */
.progress {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.progress__bar { height: 1px; background: var(--line-soft); }
.progress__bar span { display: block; height: 1px; width: 0; background: var(--text); transition: width 0.3s; }

/* ---------- Sections and questions ---------- */
.section { display: none; }
.section.is-active { display: block; }
.section-title {
  margin: 0;
  padding-bottom: 40px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
  font-size: 40px;
}
@media (min-width: 781px) { .section-title { font-size: 60px; } }

.q { padding: 36px 0 40px; border-top: 1px solid var(--line-soft); }
.q[hidden] { display: none; }
.q__title { margin: 0 0 20px; font-size: 20px; font-weight: 400; line-height: 1.35; max-width: 760px; }
.q__req { color: var(--muted); margin-left: 4px; }
.q__hint { margin: -12px 0 20px; font-size: 14px; color: var(--muted); }
.q__err { display: none; margin-top: 12px; font-size: 14px; color: var(--error); font-weight: 400; }
.q.has-error .q__err { display: block; }

/* Choice and multi: pills, filled white when selected */
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.65em 1.6em;
  border: 1.5px solid var(--line);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt:hover { border-color: var(--text); }
.opt:has(input:checked) { background: var(--text); border-color: var(--text); color: var(--bg); }
.opt:has(input:focus-visible) { outline: 1px solid var(--text); outline-offset: 4px; }
.q.has-error .opt { border-color: var(--error); }

/* 1 to 10 scale: one row of square cells */
.scale { display: grid; grid-template-columns: repeat(10, 1fr); border: 1px solid var(--line); }
.scale__btn {
  height: 52px;
  border: 0;
  border-left: 1px solid var(--line);
  background: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.scale__btn:first-child { border-left: 0; }
.scale__btn:hover { background: #2a2a2a; }
.scale__btn.is-on { background: var(--text); color: var(--bg); }
.scale__btn:focus-visible { outline: 1px solid var(--text); outline-offset: -4px; }
.q.has-error .scale { border-color: var(--error); }
.scale__labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.scale__skip {
  margin-top: 18px;
  padding: 0.5em 1.6em;
  border: 1.5px solid var(--line);
  border-radius: 50px;
  background: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.scale__skip:hover { border-color: var(--text); color: var(--text); }
.scale__skip.is-on { background: var(--text); border-color: var(--text); color: var(--bg); }
.scale__skip:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; }
@media (max-width: 560px) {
  .scale { grid-template-columns: repeat(5, 1fr); }
  .scale__btn:nth-child(6) { border-left: 0; }
  .scale__btn:nth-child(n+6) { border-top: 1px solid var(--line); }
}

/* Text inputs: square, thin border, as the site's forms */
.textarea, .textinput {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: none;
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-appearance: none;
}
.textarea { min-height: 120px; resize: vertical; }
.textinput { max-width: 480px; }
.textarea::placeholder, .textinput::placeholder { color: #6f6f6f; letter-spacing: 0.06em; }
.textarea:focus, .textinput:focus { outline: none; border-color: var(--text); }
.q.has-error .textinput { border-color: var(--error); }

/* ---------- Misc ---------- */
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { margin-top: 20px; font-size: 14px; color: var(--error); }

@media (max-width: 480px) {
  .actions--nav .btn { min-width: 0; flex: 1; }
}

/* ---------- Embedded in the Nexudus portal ---------- */
.is-embedded body { min-height: 0; }
.is-embedded .ticker,
.is-embedded .site-header,
.is-embedded .site-footer { display: none; }
.is-embedded .progress { padding-top: 24px; }
.is-embedded .wrap { padding-top: 24px; padding-bottom: 48px; }
