.rq-checker {
  scroll-margin-top: 20px;
}

.rq-checker-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.rq-checker-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--seo-muted);
}

.rq-privacy {
  flex: 0 0 auto;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 999px;
  padding: 8px 12px;
  color: #bae6fd;
  font-size: 0.82rem;
  font-weight: 800;
}

.rq-form,
.rq-result {
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 32px);
  background: rgba(15, 23, 42, 0.78);
}

.rq-question-label {
  display: block;
  margin-bottom: 8px;
  color: #f8fafc;
  font-weight: 850;
}

.rq-question-label span {
  color: #94a3b8;
  font-weight: 600;
}

.rq-form textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #475569;
  border-radius: 8px;
  padding: 14px 15px;
  background: #0f172a;
  color: #f8fafc;
  font: inherit;
  line-height: 1.5;
}

.rq-form textarea:focus,
.rq-check:focus-within,
.rq-build:focus-visible,
.rq-result a:focus-visible,
.rq-copy:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.45);
  outline-offset: 3px;
}

.rq-form fieldset {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 22px 0 18px;
  padding: 0;
  border: 0;
}

.rq-form legend {
  margin-bottom: 12px;
  color: #cbd5e1;
  font-weight: 750;
}

.rq-check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 14px;
  background: rgba(2, 6, 23, 0.42);
  cursor: pointer;
}

.rq-check:hover {
  border-color: #64748b;
}

.rq-check input {
  width: 19px;
  height: 19px;
  margin: 3px 0 0;
  accent-color: #38bdf8;
}

.rq-check strong,
.rq-check small {
  display: block;
}

.rq-check strong {
  color: #f8fafc;
}

.rq-check small {
  margin-top: 3px;
  color: #aebccc;
  font-size: 0.92rem;
  line-height: 1.48;
}

.rq-build,
.rq-copy {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 17px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.rq-build {
  background: #fbbf24;
  color: #111827;
}

.rq-result {
  margin-top: 14px;
}

.rq-result[hidden] {
  display: none;
}

.rq-result h3 {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}

.rq-result p,
.rq-result li {
  color: #cbd5e1;
}

.rq-result blockquote {
  margin: 16px 0;
  border-left: 4px solid #38bdf8;
  padding: 10px 0 10px 16px;
  color: #f8fafc;
  font-weight: 700;
}

.rq-result ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.rq-result li + li {
  margin-top: 8px;
}

.rq-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.rq-result a,
.rq-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 11px 16px;
  text-decoration: none;
  font-weight: 900;
}

.rq-result a {
  background: #f8fafc;
  color: #0f172a;
}

.rq-copy {
  border: 1px solid #64748b;
  background: transparent;
  color: #f8fafc;
}

@media (max-width: 700px) {
  .rq-checker-heading {
    display: grid;
  }

  .rq-privacy {
    justify-self: start;
  }

  .rq-result-actions > * {
    width: 100%;
  }
}
