/* !GNITE January 2027 event survey */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-Italic-W800.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-W400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Italic-W400.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-W500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-W600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-W700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ignite-blue: #13359C;
  --ignite-red: #E31E24;
  --ignite-orange: #EF7F1A;
  --graphite: #3A3F47;
  --slate: #7A818C;
  --mist: #ECEEF1;
  --white: #FFFFFF;
  --onyx: #121417;
  --line: #D8DCE3;
  --focus: #13359C;
  --danger: #E31E24;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Archivo", "Arial Black", sans-serif;
  --radius: 12px;
  --header-h: 4.5rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--graphite);
  background: var(--mist);
  min-height: 100dvh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea {
  font: inherit;
  font-size: 1rem; /* avoids iOS zoom on focus */
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 20;
  background: var(--white);
  color: var(--ignite-blue);
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Graphic only: the logo colour sequence, slanted at the wordmark angle. */
.brand-ribbon {
  height: 8px;
  width: 100%;
  overflow: hidden;
  background: var(--ignite-blue);
}

.brand-ribbon::after {
  content: "";
  display: block;
  height: 100%;
  width: 42%;
  margin-left: auto;
  background: linear-gradient(90deg, var(--ignite-red) 0 52%, var(--ignite-orange) 52% 100%);
  transform: skewX(-12.5deg);
  transform-origin: bottom left;
}

.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 32.5rem;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(18, 20, 23, 0.04);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(0.85rem + var(--safe-top)) 1.25rem 0.75rem;
  background: var(--white);
}

.logo-link {
  display: block;
  flex: 0 0 auto;
}

.logo {
  width: 132px;
  height: auto;
}

.progress-wrap {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 10.5rem;
  margin-left: auto;
}

.progress-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--graphite);
  margin: 0 0 0.3rem;
  text-align: right;
}

.progress {
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #D8DCE3;
  overflow: hidden;
}

.progress::-webkit-progress-bar {
  background: #D8DCE3;
  border-radius: 999px;
}

.progress::-webkit-progress-value {
  background: var(--ignite-blue);
  border-radius: 999px;
}

.progress::-moz-progress-bar {
  background: var(--ignite-blue);
  border-radius: 999px;
}

.progress-wrap[hidden],
.progress-wrap.is-hidden {
  visibility: hidden;
}

main {
  flex: 1 1 auto;
  padding: 0.25rem 1.25rem 1.5rem;
}

.screen[data-screen="question"] {
  padding-bottom: 5.5rem;
}

.screen {
  animation: rise 280ms ease-out;
}

@keyframes rise {
  from { transform: translateY(8px); }
  to { transform: none; }
}

.intro-copy,
.thanks-copy,
.helper,
.question-text,
.option-text,
.instruction {
  overflow-wrap: anywhere;
}

.intro-copy,
.thanks-copy {
  margin: 0.75rem 0 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--graphite);
}

.thanks-copy {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.85rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #13359C;
  opacity: 1;
}

.question-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ignite-blue);
  margin: 0.15rem 0 0;
}

.instruction {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--graphite);
}

.helper {
  margin: 0.85rem 0 0;
  padding: 0.85rem 0.95rem;
  background: var(--mist);
  border-left: 4px solid var(--ignite-orange);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--graphite);
}

.helper p {
  margin: 0;
}

.helper p + p {
  margin-top: 0.7rem;
}

.tel-link {
  color: var(--ignite-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.tel-link:hover,
.tel-link:focus-visible {
  color: #0f2b82;
}

.intro-copy + .intro-copy {
  margin-top: 0.85rem;
}

.limit-note {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--graphite);
}

.options {
  border: 0;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.options legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.9rem 1rem;
  min-height: 3.25rem;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--onyx);
  font-weight: 500;
  line-height: 1.4;
}

.option:hover {
  border-color: var(--ignite-blue);
}

.option:has(input:checked) {
  border-color: var(--ignite-blue);
  background: #eef1fa;
  box-shadow: inset 4px 0 0 var(--ignite-blue);
}

.option input {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: var(--ignite-blue);
}

.option-text {
  flex: 1 1 auto;
  padding-top: 0.05rem;
}

.other-box {
  margin: 0.15rem 0 0;
}

.other-box[hidden] {
  display: none;
}

.other-box label,
.short-answer label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--onyx);
  margin-bottom: 0.4rem;
}

textarea {
  width: 100%;
  min-height: 7rem;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--onyx);
  resize: vertical;
  line-height: 1.45;
}

textarea:focus,
button:focus-visible,
.skip-link:focus-visible,
.logo-link:focus-visible,
.option:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

textarea:focus {
  border-color: var(--ignite-blue);
}

.short-answer {
  margin-top: 1.15rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.4rem;
  padding: 0.75rem 0 calc(0.5rem + var(--safe-bottom));
}

.screen[data-screen="question"] .actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 1.4rem -1.25rem 0;
  padding: 0.75rem 1.25rem calc(0.75rem + var(--safe-bottom));
  background: var(--white);
  border-top: 1px solid var(--line);
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  flex: 1 1 0;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--ignite-blue);
  color: var(--white);
}

.btn-primary:hover:not(:disabled) {
  background: #0f2b82;
}

.btn-accent {
  background: var(--ignite-red);
  color: var(--white);
}

.btn-accent:hover:not(:disabled) {
  background: #c4181e;
}

.btn-secondary {
  background: var(--white);
  color: var(--ignite-blue);
  border: 1.5px solid var(--ignite-blue);
  flex: 0 0 auto;
  min-width: 6.5rem;
}

.btn-secondary:hover:not(:disabled) {
  background: #eef1fa;
}

.btn-secondary[hidden] {
  display: none;
}

.error {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  background: #fdecec;
  color: #8b1216;
  font-weight: 500;
  font-size: 0.95rem;
}

.error[hidden] {
  display: none;
}

.status {
  margin: 0.85rem 0 0;
  font-weight: 500;
}

.site-footer {
  padding: 0.5rem 1.25rem calc(1rem + var(--safe-bottom));
  margin-top: auto;
}

.lockup {
  width: min(100%, 17.5rem);
  height: auto;
  margin-left: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 380px) {
  .question-text {
    font-size: 1.25rem;
  }

  .thanks-copy {
    font-size: 1.55rem;
  }

  .logo {
    width: 118px;
  }
}
