:root {
  --sc-blue: #0f4c73;
  --sc-red: #e54e46;
  --sc-line: #d8e4ee;
  --sc-text: #1c2b3a;
  --sc-soft: #5a6b7d;
  --sc-muted: #eef4f8;
}

.sc-page-body,
.sc-page-body *,
.sc-result-page,
.sc-result-page *,
.sc-container,
.sc-container * {
  box-sizing: border-box;
}

.sc-page-body,
.sc-result-page {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--sc-text);
  background: #f8fafc;
  line-height: 1.55;
}

.sc-page {
  max-width: 560px;
  margin: 40px auto;
  padding: 0 20px;
}

.sc-page h1 {
  font-size: 26px;
  color: var(--sc-blue);
  margin: 0 0 10px;
}

.sc-lead,
.sc-note {
  color: var(--sc-soft);
  font-size: 14.5px;
}

.sc-note {
  margin-top: 22px;
  border-top: 1px solid var(--sc-line);
  padding-top: 14px;
}

.sc-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--sc-line);
  border-radius: 14px;
  box-shadow: 0 14px 34px -22px rgba(8, 45, 70, 0.5);
}

.sc-field {
  display: grid;
  gap: 6px;
}

.sc-field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--sc-soft);
}

.sc-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--sc-line);
  border-radius: 9px;
  font-size: 15px;
  font-family: inherit;
}

.sc-field input:focus {
  outline: none;
  border-color: var(--sc-red);
  box-shadow: 0 0 0 4px rgba(229, 78, 70, 0.15);
}

.sc-container {
  border: 1px solid var(--sc-line);
  background: var(--sc-muted);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
}

.sc-task {
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--sc-blue);
}

.sc-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sc-item {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 4px;
  background: #fff;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sc-item:hover {
  transform: translateY(-2px);
}

.sc-radio {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  left: 0;
  top: 0;
  cursor: pointer;
}

.sc-radio:focus-visible ~ .sc-shape-box {
  outline: 3px solid rgba(15, 76, 115, 0.4);
  outline-offset: 2px;
  border-radius: 6px;
}

.sc-item:has(.sc-radio:checked),
.sc-item.is-selected {
  border-color: var(--sc-blue);
  box-shadow: 0 2px 8px rgba(8, 45, 70, 0.18);
}

.sc-shape-box {
  display: inline-flex;
  pointer-events: none;
}

.sc-shape {
  width: 28px;
  height: 28px;
  display: block;
}

.sc-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.sc-refresh {
  border: none;
  background: none;
  color: var(--sc-blue);
  font-size: 13px;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.sc-error {
  color: var(--sc-red);
  font-size: 13px;
}

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

.sc-submit {
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  background: var(--sc-red);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.sc-submit:hover {
  background: #c93a33;
}

.sc-locked {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 10px;
  background: rgba(229, 78, 70, 0.12);
  color: #b0171f;
  font-weight: 600;
}

.sc-result-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}

.sc-result {
  max-width: 520px;
  padding: 32px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 34px -22px rgba(8, 45, 70, 0.5);
  text-align: center;
}

.sc-result h1 {
  font-size: 23px;
  margin: 0 0 12px;
}

.sc-result--ok h1 {
  color: #198754;
}

.sc-result--fail h1 {
  color: var(--sc-red);
}

.sc-result ul {
  text-align: left;
  color: var(--sc-soft);
  font-size: 14.5px;
}

.sc-back {
  display: inline-block;
  margin-top: 16px;
  color: var(--sc-blue);
  font-weight: 600;
}

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

.form__locked {
  margin: 8px 0 4px;
  padding: 12px 14px;
  border-radius: 9px;
  background: rgba(229, 78, 70, 0.12);
  color: #b0171f;
  font-size: 14px;
  font-weight: 600;
}

.field.is-error .sc-container,
.sc-container.is-error {
  border-color: var(--sc-red);
  box-shadow: 0 0 0 3px rgba(229, 78, 70, 0.12);
}

