/* Ascent - ERP readiness questionnaire
   Standalone stylesheet. The page shares the brand tokens with the main site but
   none of its layout: one question fills the screen, so nothing competes with it. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/jakarta-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  --ink: #1C2430;
  --slate: #56606E;
  --mute: #8A94A2;
  --rule: #DCE3EC;
  --mist: #F4F7FA;
  --paper: #FFFFFF;
  --blue: #005BEA;
  --blue-deep: #0E6AFF;
  --blue-soft: #EAF1FF;
  --err: #C0392B;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.erp {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Radial wash, so a plain white screen does not feel like an unstyled document */
body.erp::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(0, 91, 234, .07), transparent 60%),
    radial-gradient(700px 520px at 100% 108%, rgba(14, 106, 255, .06), transparent 62%);
}

/* ------------------------------------------------------------- chrome */
.erp-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--rule); z-index: 20;
}
.erp-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-deep));
  transition: width .45s cubic-bezier(.22, .8, .3, 1);
}

.erp-top {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px clamp(20px, 5vw, 56px) 0;
}
.erp-logo { display: block; height: 22px; width: auto; }
.erp-step { margin: 0; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }

/* ------------------------------------------------------------ screens */
.erp-form { position: relative; flex: 1; display: flex; }

.erp-screen { display: none; flex: 1; align-items: center; padding: clamp(28px, 6vh, 64px) clamp(20px, 5vw, 56px) clamp(40px, 8vh, 80px); }
.erp-screen.is-on { display: flex; animation: erpIn .5s cubic-bezier(.22, .8, .3, 1) both; }
.erp-screen.is-on.is-back { animation-name: erpBack; }

@keyframes erpIn   { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
@keyframes erpBack { from { opacity: 0; transform: translate3d(0, -20px, 0); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .erp-screen.is-on { animation: none; }
  .erp-progress i { transition: none; }
}

.erp-inner { width: 100%; max-width: 680px; margin: 0 auto; }

/* --------------------------------------------------------- typography */
.erp-eyebrow {
  margin: 0 0 14px; font-family: var(--font-head); font-size: 12.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
}
.erp-inner h1 {
  margin: 0 0 18px; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(30px, 5.2vw, 46px); line-height: 1.12; letter-spacing: -.022em;
}
.erp-num {
  margin: 0 0 10px; font-family: var(--font-head); font-size: 14px; font-weight: 700;
  color: var(--blue); letter-spacing: .02em;
}
.erp-num span { margin-left: 2px; opacity: .65; }
.erp-q {
  margin: 0 0 10px; font-family: var(--font-head); font-weight: 650;
  font-size: clamp(22px, 3.4vw, 31px); line-height: 1.24; letter-spacing: -.016em;
}
.erp-lead { margin: 0 0 14px; font-size: clamp(16px, 1.6vw, 17.5px); color: var(--slate); max-width: 58ch; }
.erp-help { margin: 0 0 20px; font-size: 14.5px; color: var(--mute); max-width: 60ch; }
.erp-note { margin: 0 0 28px; font-size: 13.5px; color: var(--mute); max-width: 58ch; }

/* ------------------------------------------------------------ options */
.erp-opts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 9px; }

.erp-opt {
  position: relative; display: flex; align-items: center; gap: 13px;
  padding: 13px 44px 13px 13px;
  border: 1.5px solid var(--rule); border-radius: 9px;
  background: var(--paper); cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.erp-opt:hover { border-color: #B9C8DC; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(28, 36, 48, .06); }
.erp-opt input { position: absolute; opacity: 0; width: 0; height: 0; }

.erp-key {
  flex: none; display: grid; place-items: center;
  width: 25px; height: 25px; border-radius: 5px;
  border: 1px solid var(--rule); background: var(--mist);
  font-size: 12px; font-weight: 600; color: var(--slate);
  transition: inherit;
}
.erp-opt-label { font-size: 15.5px; line-height: 1.45; }

.erp-tick {
  position: absolute; right: 14px; top: 50%; width: 15px; height: 15px;
  margin-top: -8px; opacity: 0; transform: scale(.6); transition: opacity .16s ease, transform .16s ease;
}
.erp-tick::after {
  content: ""; display: block; width: 6px; height: 11px; margin: 1px auto 0;
  border: solid var(--blue); border-width: 0 2px 2px 0; transform: rotate(43deg);
}

.erp-opt:has(input:checked) {
  border-color: var(--blue); background: var(--blue-soft);
  box-shadow: 0 4px 16px rgba(0, 91, 234, .12);
}
.erp-opt:has(input:checked) .erp-key { border-color: var(--blue); background: var(--blue); color: #fff; }
.erp-opt:has(input:checked) .erp-tick { opacity: 1; transform: scale(1); }
.erp-opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }

/* An exclusive option contradicts the others, so it is set a little apart */
.erp-opt.is-solo { margin-top: 5px; border-style: dashed; }

/* ------------------------------------------------------- text, chips */
.erp-fields { display: grid; gap: 15px; margin: 24px 0 0; }
@media (min-width: 620px) { .erp-fields { grid-template-columns: 1fr 1fr; } }

.erp-field { display: block; }
.erp-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 550; color: var(--slate); }
.erp-label i { font-style: normal; font-weight: 400; color: var(--mute); }

.erp-field input, .erp-field textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 15.5px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--rule); border-radius: 8px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.erp-field textarea { resize: vertical; min-height: 64px; }
.erp-field input:focus, .erp-field textarea:focus {
  outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 91, 234, .13);
}
.erp-field.is-bad input, .erp-field.is-bad textarea { border-color: var(--err); }
.erp-follow { margin-top: 22px; }

.erp-extra { margin-top: 24px; }
.erp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.erp-chip { position: relative; cursor: pointer; }
.erp-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.erp-chip span {
  display: inline-block; padding: 8px 15px; font-size: 14.5px;
  border: 1.5px solid var(--rule); border-radius: 999px; background: var(--paper);
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.erp-chip:hover span { border-color: #B9C8DC; }
.erp-chip:has(input:checked) span { border-color: var(--blue); background: var(--blue); color: #fff; }
.erp-chip:has(input:focus-visible) span { outline: 2px solid var(--blue); outline-offset: 3px; }

.erp-consent { display: flex; gap: 11px; align-items: flex-start; margin: 22px 0 0; font-size: 15px; cursor: pointer; }
.erp-consent input { margin: 3px 0 0; width: 17px; height: 17px; accent-color: var(--blue); flex: none; }

/* ------------------------------------------------------------ actions */
.erp-actions { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.erp-btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 12px 22px; font: inherit; font-family: var(--font-head);
  font-size: 15.5px; font-weight: 650; color: #fff; cursor: pointer;
  background: var(--blue); border: 0; border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 91, 234, .24);
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.erp-btn:hover { background: var(--blue-deep); transform: translateY(-1px); box-shadow: 0 9px 24px rgba(0, 91, 234, .3); }
.erp-btn:active { transform: none; }
.erp-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.erp-btn[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; }

.erp-kbd {
  padding: 2px 7px; font-family: var(--font-body); font-size: 11.5px; font-weight: 500;
  background: rgba(255, 255, 255, .2); border-radius: 4px; letter-spacing: .02em;
}
@media (max-width: 560px) { .erp-kbd { display: none; } }

.erp-back {
  padding: 6px 2px; font: inherit; font-size: 14.5px; color: var(--mute);
  background: 0; border: 0; cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: var(--rule);
}
.erp-back:hover { color: var(--slate); }

/* ------------------------------------------------------------- errors */
.erp-err { display: none; margin-top: 7px; font-size: 13px; color: var(--err); }
.erp-err.is-on { display: block; }
.erp-server-error { margin: 18px 0 0; font-size: 14px; color: var(--err); }

.erp-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------- done */
.erp-done { text-align: center; }
.erp-check {
  display: block; width: 54px; height: 54px; margin: 0 auto 22px;
  border-radius: 50%; background: var(--blue-soft); position: relative;
}
.erp-check::after {
  content: ""; position: absolute; left: 20px; top: 14px;
  width: 11px; height: 20px; border: solid var(--blue); border-width: 0 2.5px 2.5px 0;
  transform: rotate(43deg);
}
.erp-done .erp-lead, .erp-done .erp-note { margin-left: auto; margin-right: auto; }

.erp-recaptcha { margin: 20px 0 0; font-size: 12px; color: var(--mute); }
.erp-recaptcha a { color: var(--blue); }
.grecaptcha-badge { visibility: hidden; }

/* Without the script every screen is shown at once, so the form still works as
   one ordinary long page that posts normally. The thank-you screen stays hidden. */
html.no-js .erp-screen { display: flex; }
html.no-js .erp-screen[data-screen="done"] { display: none; }
html.no-js .erp-progress, html.no-js .erp-kbd, html.no-js .erp-back, html.no-js [data-next] { display: none; }
html.no-js .erp-form { flex-direction: column; }

/* A list of nine or ten options is tall enough to push the Continue button off
   the screen, so the longer ones run in two columns once there is room. */
@media (min-width: 760px) {
  .erp-opts.is-two { grid-template-columns: 1fr 1fr; }
}

.erp-turnstile { margin-top: 30px; }

.erp-redirect { margin: 22px 0 0; font-size: 13px; color: var(--mute); }
