/* Cybersecurity quiz popup: template-parts/components/cyber-quiz-popup.php, js/cyber-quiz.js. */

.cq {
  --cq-navy: var(--rca-color-navy);
  --cq-cyan: var(--rca-color-cyan);
  --cq-cyan-dark: #0095b8;
  --cq-green: var(--rca-color-green);
  --cq-body: #5c5c5c;
  --cq-muted: #6b7278;
  --cq-track: #ebecf0;
  --cq-answer: #f3f3f3;
  --cq-answer-hover: #e9eaec;
  --cq-band: #fafafa;

  --cq-ease-out: var(--rca-ease-out);
  --cq-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --cq-ease: var(--rca-ease);

  --cq-pad-left: 66px;
  --cq-pad-right: 76px;
  --cq-pad-top: 55px;
  --cq-pad-bottom: 94px;
  --cq-progress-bottom: 62px;
  --cq-slide: 20px;

  /* The dialog is a transparent full-screen layer. The scrim and panel draw everything. */
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background: transparent;
  color: var(--cq-body);
  font-family: var(--rca-font);
  overflow: hidden;
}

.cq[open] {
  display: grid;
  place-items: center;
}

.cq::backdrop {
  background: transparent;
}

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

html.cq-locked {
  overflow: hidden;
  padding-right: var(--cq-scrollbar, 0);
}

.cq .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Scrim ---------- */

.cq__scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.29);
  opacity: 0;
  transition: opacity 200ms var(--cq-ease);
}

.cq.is-open .cq__scrim {
  opacity: 1;
  transition-duration: 320ms;
}

/* ---------- Panel ---------- */

.cq__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 319px;
  width: min(1170px, 100%);
  min-height: 606px;
  max-height: calc(100dvh - 48px);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 64px -24px rgba(0, 30, 60, 0.35);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition:
    opacity 180ms var(--cq-ease),
    transform 220ms var(--cq-ease-out);
}

.cq.is-open .cq__panel {
  opacity: 1;
  transform: none;
  transition:
    opacity 260ms var(--cq-ease),
    transform 460ms var(--cq-ease-out);
}

.cq__body {
  position: relative;
  /* Border on the white side only, so it never sits over the photo. */
  box-shadow:
    inset 1.5px 0 0 #e8e8e8,
    inset 0 1.5px 0 #e8e8e8,
    inset 0 -1.5px 0 #e8e8e8;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--cq-pad-top) var(--cq-pad-right) var(--cq-pad-bottom) var(--cq-pad-left);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

/* ---------- Side image ---------- */

.cq__media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #dfe8ee, #c9d6df);
}

.cq__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 400ms var(--cq-ease),
    transform 1200ms var(--cq-ease-out);
}

.cq.is-open .cq__media img.is-loaded {
  opacity: 1;
  transform: none;
}

/* ---------- Close ---------- */

.cq__close {
  position: absolute;
  top: 15px;
  right: 9px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0);
  color: #fff;
  cursor: pointer;
  transition:
    background-color 150ms var(--cq-ease),
    transform 150ms var(--cq-ease-out);
}

.cq__close svg {
  display: block;
  width: 17px;
  height: 17px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

@media (hover: hover) and (pointer: fine) {
  .cq__close:hover {
    background: rgba(255, 255, 255, 0.18);
  }
}

.cq__close:active {
  transform: scale(0.92);
}

.cq__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---------- Eyebrow ---------- */

.cq__eyebrow {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 0.5px solid rgba(0, 175, 215, 0.5);
  color: var(--cq-cyan);
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

/* ---------- Steps ---------- */

/* All steps share one grid cell, so the panel keeps one height for the whole quiz. */
.cq__steps {
  display: grid;
  flex: 1 1 auto;
}

.cq__step {
  grid-area: 1 / 1;
  align-self: start;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(var(--cq-slide));
  transition:
    opacity 160ms var(--cq-ease),
    transform 220ms var(--cq-ease-out),
    visibility 0s linear 220ms;
}

.cq__step--intro {
  padding-top: 96px;
}

.cq__step--question {
  padding-top: 73px;
}

.cq__step--details {
  padding-top: 59px;
}

.cq__step--results {
  padding-top: 101px;
}

.cq__step.is-before {
  transform: translateX(calc(var(--cq-slide) * -1));
}

.cq__step.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 260ms var(--cq-ease) 60ms,
    transform 420ms var(--cq-ease-out) 60ms,
    visibility 0s;
}

.cq-in {
  opacity: 0;
  transition: opacity 120ms var(--cq-ease);
}

.cq.is-open .is-active .cq-in {
  opacity: 1;
  transition: opacity 320ms var(--cq-ease) calc(80ms + var(--i, 0) * 40ms);
}

/* ---------- Type ---------- */

/* ID selector: the theme styles h2 with selectors like .page h2:not(.h1):not(.h3):not(.h4). */
#cybersecurity-quiz .cq__title {
  margin: 0 0 21px;
  color: var(--cq-navy);
  font-family: var(--rca-font);
  font-size: 36px;
  font-weight: 400;
  line-height: 38px;
  letter-spacing: -1.08px;
  text-align: left;
  text-wrap: balance;
}

#cybersecurity-quiz .cq__step--intro .cq__title {
  max-width: 16em;
}

#cybersecurity-quiz .cq__step--details .cq__title,
#cybersecurity-quiz .cq__step--results .cq__title {
  margin-bottom: 10px;
}

.cq__title:focus,
.cq__question:focus {
  outline: none;
}

.cq__text,
.cq__lead {
  max-width: 507px;
  margin: 0 0 9px;
  color: var(--cq-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: -0.3px;
}

.cq__lead {
  font-weight: 600;
}

.cq__step--results .cq__text {
  max-width: 696px;
}

.cq__step--details .cq__text {
  margin-bottom: 30px;
  color: #000;
  letter-spacing: -0.45px;
}

.cq__kicker {
  margin: 0 0 10px;
  color: var(--cq-cyan);
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */

.cq__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 26px;
}

.cq__step--intro .cq__actions {
  margin-top: 36px;
}

/* The quiz buttons use the rca-btn component in css/latest_style.css. Contact Form 7 prints the
   submit button, so it cannot have that class. This rule copies the component in cyan. */
.cq .cq-cf7 .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: var(--rca-btn-height, 28px);
  margin: 0;
  padding: 0 17px 1px;
  border: 0;
  border-radius: 4.5px;
  background: var(--cq-cyan);
  color: #fff;
  font-family: var(--rca-font);
  font-size: var(--rca-btn-font-size, 12px);
  font-weight: 500;
  line-height: 14px;
  letter-spacing: -0.12px;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  transition:
    background-color 150ms var(--cq-ease),
    opacity 200ms var(--cq-ease),
    transform 140ms var(--cq-ease-out);

  @media (hover: hover) and (pointer: fine) {
    &:not(:disabled):hover {
      background: var(--cq-cyan-dark);
    }
  }

  &:active:not(:disabled) {
    transform: scale(0.97);
  }

  &:focus-visible {
    outline: 2px solid var(--cq-navy);
    outline-offset: 2px;
  }
}

/* ---------- Questions ---------- */

.cq__fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.cq__question {
  display: block;
  margin: 0 0 18px;
  padding: 0;
  color: var(--cq-navy);
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.54px;
}

.cq__answers {
  display: grid;
  gap: 7px;
}

.cq__answer {
  position: relative;
  display: block;
  margin: 0;
  padding: 12px 16px;
  border-radius: 4.5px;
  background: var(--cq-answer);
  color: var(--cq-body);
  font-family: var(--rca-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: -0.3px;
  cursor: pointer;
  transition:
    background-color 160ms var(--cq-ease),
    color 160ms var(--cq-ease),
    opacity 120ms var(--cq-ease),
    transform 140ms var(--cq-ease-out);
}

.cq.is-open .is-active .cq__answer.cq-in {
  transition:
    background-color 160ms var(--cq-ease),
    color 160ms var(--cq-ease),
    opacity 320ms var(--cq-ease) calc(80ms + var(--i, 0) * 40ms),
    transform 140ms var(--cq-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .cq__answer:hover {
    background: var(--cq-answer-hover);
  }
}

.cq__answer:active {
  transform: scale(0.995);
}

/* Visually hidden, but kept for keyboard and screen readers. */
.cq__answer input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.cq__answer:has(input:checked) {
  background: var(--cq-cyan);
  color: #fff;
}

.cq__answer:has(input:focus-visible) {
  outline: 2px solid var(--cq-navy);
  outline-offset: 2px;
}

/* ---------- Details form ---------- */

.cq .cq-cf7 {
  margin: 0;
}

.cq .cq-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.cq .cq-cf7 .wpcf7-form-control-wrap {
  display: block;
}

.cq .cq-field {
  display: block;
  margin: 0;
  padding: 0; /* The theme pads every label. */
  font-family: var(--rca-font);
}

.cq .cq-field__label {
  display: block;
  margin-bottom: 4px;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: 17.6px;
}

.cq :is(.cq-cf7, .cq__contact) input[type='text'],
.cq :is(.cq-cf7, .cq__contact) input[type='email'] {
  display: block;
  width: 100%;
  height: 38px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fcfcfc;
  box-shadow: none;
  color: #000;
  font-family: var(--rca-font);
  font-size: 15px;
  transition:
    border-color 150ms var(--cq-ease),
    background-color 150ms var(--cq-ease),
    box-shadow 150ms var(--cq-ease);
}

.cq :is(.cq-cf7, .cq__contact) input[type='text']:focus,
.cq :is(.cq-cf7, .cq__contact) input[type='email']:focus {
  border-color: var(--cq-cyan);
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 175, 215, 0.18);
}

.cq .cq-cf7 .wpcf7-not-valid {
  border-color: #c4352b;
}

.cq .cq-cf7 .wpcf7-not-valid-tip {
  margin-top: 4px;
  color: #b42318;
  font-size: 13px;
  animation: cq-fade 200ms var(--cq-ease);
}

@keyframes cq-fade {
  from {
    opacity: 0;
  }
}

.cq .cq-form__optin {
  margin: 20px 0 10px;
}

.cq .cq-form__optin .wpcf7-list-item {
  margin: 0;
}

.cq .cq-form__optin > * + * {
  margin-top: 10px;
}

.cq .cq-form__optin label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: #000;
  font-family: var(--rca-font);
  font-size: 14px;
  line-height: 17.6px;
  cursor: pointer;
}

/* A drawn checkbox, so that the tick can be white. With accent-color the browser picks a black tick on cyan. */
.cq .cq-form__optin input[type='checkbox'] {
  flex: none;
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  border: 1px solid #8c8f94;
  border-radius: 3px;
  background: #fff center / 11px 11px no-repeat;
  appearance: none;
  cursor: pointer;
  transition:
    background-color 120ms var(--cq-ease),
    border-color 120ms var(--cq-ease);

  &:checked {
    border-color: var(--cq-cyan);
    background-color: var(--cq-cyan);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }

  &:focus-visible {
    outline: 2px solid var(--cq-navy);
    outline-offset: 2px;
  }
}

.cq .cq-form__legal {
  margin: 0;
  color: var(--cq-muted);
  font-size: 12px;
  line-height: 1.5;
}

.cq .cq-form__legal a {
  color: inherit;
  text-decoration: underline;
}

/* CF7 disables the submit button until the terms checkbox is ticked. */
.cq .cq-cf7 .wpcf7-submit:disabled {
  opacity: 0.4;
  cursor: default;
}

.cq .cq-cf7 .cf-turnstile:not(:empty) {
  margin-top: 16px;
}

.cq .cq-cf7 .cq__actions {
  position: relative;
  align-items: center;
  margin-top: 32px;
}

.cq .cq-cf7 .wpcf7-spinner {
  width: 16px;
  height: 16px;
  margin: 0 0 0 6px;
  border: 2px solid rgba(0, 149, 184, 0.2);
  border-top-color: var(--cq-cyan-dark);
  border-radius: 50%;
  background: none;
  opacity: 0;
  visibility: visible;
  transition: opacity 150ms var(--cq-ease);
}

.cq .cq-cf7 .wpcf7-spinner::before {
  content: none;
}

.cq .cq-cf7.submitting .wpcf7-spinner {
  opacity: 1;
  animation: cq-spin 600ms linear infinite;
}

.cq .cq-cf7.submitting .wpcf7-submit {
  opacity: 0.7;
  pointer-events: none;
}

@keyframes cq-spin {
  to {
    transform: rotate(360deg);
  }
}

.cq .cq-cf7 .wpcf7-response-output {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 4px;
  background: #fdecea;
  color: #8a1f17;
  font-size: 14px;
}

.cq .cq-cf7.sent .wpcf7-response-output,
.cq .cq-cf7.init .wpcf7-response-output,
.cq .cq-cf7.submitting .wpcf7-response-output {
  display: none;
}

/* ---------- Results ---------- */

.cq__step--results {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.cq__result {
  flex: 1 1 auto;
  padding-bottom: 40px;
}

.cq__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 4px 0 14px;
}

.cq__score {
  color: var(--cq-muted);
  font-size: 14px;
}

.cq__score strong {
  color: var(--cq-navy);
  font-weight: 600;
}

/* Risk level pill. Dark text on a tint keeps yellow readable. */
.cq-risk {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.cq-risk::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.cq-risk--low {
  background: #e7f5dc;
  color: #2d6a0a;
}

.cq-risk--low::before {
  background: #4caf1a;
}

.cq-risk--moderate {
  background: #fff5cc;
  color: #6e5300;
}

.cq-risk--moderate::before {
  background: #f5c400;
}

.cq-risk--high {
  background: #ffe9d9;
  color: #8f3a00;
}

.cq-risk--high::before {
  background: #ff6a13;
}

.cq-risk--danger {
  background: #fde4e2;
  color: #9e1b13;
}

.cq-risk--danger::before {
  background: #d92d20;
}

.cq.is-open .is-active .cq__meta.cq-in .cq-risk {
  animation: cq-pill 520ms var(--cq-ease-out) 240ms both;
}

@keyframes cq-pill {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
}

/* Runs to the panel edges. */
.cq__cta {
  margin: 0 calc(var(--cq-pad-right) * -1) calc(var(--cq-pad-bottom) * -1) calc(var(--cq-pad-left) * -1);
  padding: 47px var(--cq-pad-right) 50px var(--cq-pad-left);
  background: var(--cq-band);
}

.cq__cta-title {
  margin: 0 0 22px;
  color: var(--cq-navy);
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: -0.54px;
}

/*
 * Idle, done and error states crossfade in one place. The states that are not shown are out of the
 * layout, so the area is as tall as the state that shows. js/cyber-quiz.js animates the height change.
 */
.cq__cta-swap {
  position: relative;
}

.cq__cta-swap > * {
  position: absolute;
  inset: 0 0 auto;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  filter: blur(2px);
  transition:
    opacity 180ms var(--cq-ease),
    filter 180ms var(--cq-ease),
    visibility 0s linear 180ms;
}

.cq__cta-swap[data-cq-cta-state='idle'] .cq__cta-idle,
.cq__cta-swap[data-cq-cta-state='busy'] .cq__cta-idle,
.cq__cta-swap[data-cq-cta-state='done'] .cq__cta-done,
.cq__cta-swap[data-cq-cta-state='error'] .cq__cta-error {
  position: relative;
  opacity: 1;
  visibility: visible;
  filter: none;
  transition:
    opacity 260ms var(--cq-ease) 80ms,
    filter 260ms var(--cq-ease) 80ms,
    visibility 0s;
}

.cq__cta-swap[data-cq-cta-state='busy'] .rca-btn {
  opacity: 0.7;
  pointer-events: none;
}

.cq__cta-swap[data-cq-cta-state='busy'] .rca-btn::after {
  width: 10px;
  height: 10px;
  margin-left: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  transform: none;
  animation: cq-spin 600ms linear infinite;
}

.cq__cta-done {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cq__cta-done-title {
  margin: 0;
  color: var(--cq-navy);
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
}

.cq__cta-done-text {
  margin: 4px 0 0;
  color: var(--cq-body);
  font-size: 14px;
  line-height: 20px;
}

.cq__tick {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cq-green);
}

.cq__tick::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 8px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cq__cta-error {
  color: #8a1f17;
  font-size: 14px;
  line-height: 1.5;
}

.cq__cta-error a,
.cq .cq__link {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* The visitor's details, with an Edit link that opens the 4 fields. After .cq__link, so that its margin and colour apply. */
.cq__contact {
  margin: 0 0 18px;
}

.cq__contact-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 0;
  margin: 0;
  color: var(--cq-body);
  font-size: 14px;
  line-height: 20px;

  /* display: flex would otherwise override the hidden attribute. */
  &[hidden] {
    display: none;
  }

  & .cq__contact-name {
    color: #000;
    font-weight: 600;
  }

  /* A dot between the details. An empty detail (no company) shows no dot. */
  & .cq__contact-item:not(:empty)::before {
    content: '\00B7';
    margin: 0 8px;
    color: var(--cq-muted);
  }

  & .cq__link {
    margin-left: 16px;
    color: var(--cq-cyan);
  }
}

.cq__contact-fields .cq-form__row:last-child {
  margin-bottom: 0;
}

/* ---------- Progress ---------- */

.cq__progress {
  position: absolute;
  right: var(--cq-pad-right);
  bottom: var(--cq-progress-bottom);
  left: var(--cq-pad-left);
  height: 8px;
  border-radius: 6.5px;
  background: var(--cq-track);
  overflow: hidden;
  opacity: 0;
  /* Sits over the consult button on the results step. */
  pointer-events: none;
  transition: opacity 200ms var(--cq-ease);
}

.cq[data-cq-view='question'] .cq__progress,
.cq[data-cq-view='details'] .cq__progress {
  opacity: 1;
  transition-duration: 300ms;
}

.cq__progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--cq-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms var(--cq-ease-in-out);
}

/* ---------- Medium screens ---------- */

@media (max-width: 1100px) {
  .cq {
    --cq-pad-left: 48px;
    --cq-pad-right: 48px;
  }

  .cq__panel {
    grid-template-columns: minmax(0, 1fr) 27%;
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 767px) {
  .cq {
    --cq-pad-left: 22px;
    --cq-pad-right: 22px;
    --cq-pad-top: 22px;
    --cq-pad-bottom: 60px;
    --cq-progress-bottom: 24px;
    --cq-slide: 16px;
    padding: 12px;
  }

  .cq__panel {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    max-height: calc(100dvh - 24px);
    border-radius: 16px;
  }

  .cq__media {
    display: none;
  }

  .cq__close {
    top: 6px;
    right: 6px;
    color: var(--cq-navy);
  }

  .cq__close svg {
    filter: none;
  }

  .cq__close:focus-visible {
    outline-color: var(--cq-navy);
  }

  .cq__eyebrow {
    margin-right: 40px;
    font-size: 12px;
  }

  .cq__step--intro,
  .cq__step--question,
  .cq__step--details,
  .cq__step--results {
    padding-top: 28px;
  }

  .cq .cq-form__row {
    grid-template-columns: 1fr;
  }

  .cq__step--details .cq__text {
    margin-bottom: 24px;
  }

  #cybersecurity-quiz .cq__title {
    font-size: 28px;
    line-height: 31px;
    letter-spacing: -0.84px;
  }

  .cq {
    --rca-btn-height: 40px;
    --rca-btn-font-size: 14px;
  }

  .cq__cta {
    padding-top: 28px;
    padding-bottom: 32px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .cq__panel,
  .cq.is-open .cq__panel,
  .cq__step,
  .cq__step.is-before,
  .cq__media img,
  .cq.is-open .cq__media img.is-loaded {
    transform: none;
  }

  .cq.is-open .is-active .cq-in {
    transition-delay: 0ms;
  }

  .cq__progress-bar {
    transition-duration: 0ms;
  }

  .cq.is-open .is-active .cq__meta.cq-in .cq-risk {
    animation: none;
  }

  .cq__cta-swap > * {
    filter: none;
  }
}
