:root {
  --blue: #0467e0;
  --blue-active: #055cc6;
  --text: #404040;
  --muted: #262626;
  --danger: #d9534f;
  --warning: #f0ad4e;
  --success: #23ff00;
  --container: 1120px;
  --gutter: 20px;
  --scorebar-height: 84px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  padding-bottom: calc(var(--scorebar-height) + 36px);
}

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

a {
  color: #0074db;
  text-decoration: none;
}

.btn:focus-visible,
.scorebar__reset:focus-visible {
  outline: 3px solid rgba(4, 103, 224, 0.35);
  outline-offset: 3px;
}

.choice input:focus-visible + .choice__control {
  outline: 3px solid rgba(4, 103, 224, 0.35);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 75px 0;
}

.topbar {
  background: var(--blue);
  padding: 20px 0;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.brand {
  color: #fff;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.tagline {
  color: #fff;
  font-weight: 500;
  margin: 0;
}

.hero {
  padding: 0 0 45px;
}

.hero__title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
  margin: 50px 0 32px;
  color: #111;
}

.hero__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: center;
}

.hero__para {
  font-size: 25px;
  line-height: 1.4;
  margin: 0 0 25px;
}

.hero__para--warning {
  margin-bottom: 40px;
  font-weight: 400;
  color: #cc0000;
}

.hero__emph {
  font-weight: 600;
}

.hero__underline {
  border-bottom: 2px solid currentColor;
}

.btn {
  display: inline-block;
  font-weight: 500;
  font-size: 23px;
  background: var(--blue);
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1.1;
  padding: 15px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.btn:active {
  background: var(--blue-active);
}

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

.btn__spinner {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.55);
  border-right-color: #ffffff;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

.btn[data-state="loading"] .btn__spinner {
  display: inline-block;
  animation: spin-inline 0.8s linear infinite;
}

.btn[data-state="loading"] .btn__label {
  opacity: 0;
}

@keyframes spin-inline {
  to {
    transform: translate(-50%, -50%) rotate(1turn);
  }
}

.btn--small {
  font-size: 14px;
  padding: 10px 12px;
}

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn--ghost:active {
  background: rgba(255, 255, 255, 0.08);
}

.step {
  font-size: 50px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 5px;
}

.subheading {
  font-size: 26px;
  line-height: 1.4;
  margin: 0 0 57px;
  color: var(--blue);
  font-weight: 500;
}

.options-grid {
  display: grid;
  gap: 25px 40px;
}

.options-grid--3 {
  display: block;
  column-count: 3;
  column-gap: 40px;
}

.options-grid--2 {
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 40px;
}

.group {
  border: 0;
  padding: 14px 16px 6px;
  margin: 0;
  border-radius: 8px;
  background: #f7f9fc;
  position: relative;
}

.group__label {
  display: block;
  float: left;
  width: 100%;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 18px;
  color: #262626;
  padding: 0;
  background: transparent;
  border-radius: 0;
  transform: none;
}

.group > label.choice:first-of-type {
  clear: both;
}

.options-grid--3 > .group {
  break-inside: avoid;
  page-break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 40px;
}

.choice {
  --choice-color: #bdc3c7;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  line-height: 1.4;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice__control {
  width: 20px;
  height: 20px;
  border: 2px solid #bdc3c7;
  border-radius: 999px;
  margin-top: 1px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.choice__control::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: scale(0);
  transition: transform 120ms ease;
  background: var(--choice-color);
}

.choice input[type="checkbox"] + .choice__control {
  border-radius: 6px;
}

.choice input[type="checkbox"] + .choice__control::after {
  width: 10px;
  height: 6px;
  border-radius: 0;
  background: transparent;
  border-left: 3px solid var(--choice-color);
  border-bottom: 3px solid var(--choice-color);
  transform: rotate(-45deg) scale(0);
}

.choice input:checked + .choice__control {
  border-color: var(--choice-color);
}

.choice input:checked + .choice__control::after {
  transform: scale(1);
}

.choice input[type="checkbox"]:checked + .choice__control::after {
  transform: rotate(-45deg) scale(1);
}

.choice--danger {
  --choice-color: var(--danger);
}

.choice--warning {
  --choice-color: var(--warning);
}

.choice--success {
  --choice-color: #5cb85c;
}

.text-input {
  width: 100%;
  font-family: inherit;
  font-size: 25px;
  border: 2px solid #bec3c7;
  border-radius: 4px;
  line-height: 1.1;
  padding: 5px 9px 4px;
  color: #353535;
}

.generateRow {
  position: relative;
  display: flex;
  align-items: center;
}

.scorebar {
  position: fixed;
  inset: auto 0 0 0;
  background: #2b2b2b;
  visibility: hidden;
}

.scorebar[data-visible="true"] {
  visibility: visible;
}

.scorebar__inner {
  padding: 20px 0;
}

.scorebar__row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
  color: #fff;
}

.scorebar__label,
.scorebar__level {
  font-size: 17px;
  line-height: 1.1;
  white-space: nowrap;
}

.scorebar__bg {
  width: 100%;
  background: #161616;
  height: 15px;
  border-radius: 8px;
  padding: 3px;
}

.scorebar__bar {
  height: 100%;
  width: 0%;
  max-width: 100%;
  border-radius: 5px;
  background: var(--blue);
  transition: width 300ms ease, background-color 300ms ease;
}

.scorebar__reset {
  margin-left: auto;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.scorebar__reset:active {
  background: rgba(255, 255, 255, 0.08);
}

/* Waiver page */
.waiverHeader {
  background: var(--muted);
  color: #fff;
  padding: 75px 0;
}

.waiverDisclaimer {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.82;
  max-width: 66ch;
}

.waiverHeader__title {
  margin: 0 0 32px;
  font-size: 54px;
  font-weight: 700;
  line-height: 1.2;
}

.waiverHeader__subtitle {
  margin: 0;
  color: #ffae00;
  font-size: 47px;
  font-weight: 700;
  line-height: 1.1;
}

.waiverHeader__meta {
  margin: 18px 0 0;
  opacity: 0.9;
}

.waiverHeader__meta--tight {
  margin-top: 8px;
}

.waiverActions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.warningList {
  padding: 75px 0 0;
}

.warning {
  margin-bottom: 71px;
}

.warning__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.warning__icon {
  width: 40px;
  margin-top: 1px;
  flex: 0 0 auto;
}

.warning__title {
  margin: 0;
  font-size: 33px;
  font-weight: 700;
  line-height: 1.2;
}

.warning__text {
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
  width: 80%;
}

.waiverBack {
  padding-bottom: 75px;
}

@media (max-width: 991px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .options-grid--3 {
    column-count: 2;
  }
}

@media (max-width: 767px) {
  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__title {
    font-size: 44px;
  }

  .hero__para {
    font-size: 17px;
  }

  .subheading {
    font-size: 19px;
  }

  .options-grid--3,
  .options-grid--2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .options-grid--3 {
    column-count: unset;
    column-gap: unset;
  }

  .options-grid--3 > .group {
    display: block;
    margin: 0;
  }

  .warning__icon {
    width: 25px;
  }

  .warning__title {
    font-size: 23px;
    line-height: 1.1;
  }

  .warning__text {
    width: 100%;
    font-size: 18px;
  }
}

@media (max-width: 479px) {
  .hero {
    padding-top: 0px;
  }

  .hero__title {
    font-size: 33px;
    text-align: center;
  }

  .hero__para {
    text-align: center;
  }

  .subheading {
    font-size: 17px;
  }

  .btn {
    font-size: 16px;
    width: 100%;
    text-align: center;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .btn--small {
    width: 100%;
    font-size: 13px;
    padding: 9px 10px;
  }

  .waiverHeader {
    padding: 55px 0 53px;
  }

  .waiverHeader__title,
  .waiverHeader__subtitle {
    font-size: 29px;
  }

  .warning__title {
    font-size: 22px;
  }
}

@media print {
  body {
    padding-bottom: 0;
  }

  .waiverActions,
  .waiverBack {
    display: none !important;
  }
}
