* { box-sizing: border-box; }

:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2933;
  background: #fff;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #fff;
}

.captcha-wrap { width: min(100%, 420px); }

.captcha-card {
  overflow: hidden;
  border: 1px solid #d9dfe5;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 28px 28px 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #f38020;
  font-size: 25px;
  font-weight: 700;
}

.captcha-copy { padding: 0 28px 24px; }
.captcha-copy h1 { margin: 0 0 8px; color: #111827; font-size: 21px; font-weight: 600; }
.captcha-copy p { margin: 0; color: #5b6875; font-size: 14px; line-height: 1.5; }

#captcha-form { padding: 0 28px 26px; }
.checkbox-row {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #c9d1d9;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
}
.checkbox-row:hover { border-color: #8a98a8; background: #fafbfc; }
.checkbox-row:focus-within { outline: 2px solid #2563eb; outline-offset: 2px; }
#human-check { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fake-checkbox { width: 28px; height: 28px; flex: 0 0 28px; border: 2px solid #7a8794; border-radius: 3px; background: #fff; }
.checkbox-label { color: #273444; font-size: 15px; }
#human-check:checked + .fake-checkbox { border-color: #2563eb; background: #2563eb; box-shadow: inset 0 0 0 5px #fff; }
.spinner { display: none; width: 20px; height: 20px; margin-left: auto; border: 2px solid #d7dde3; border-top-color: #2563eb; border-radius: 50%; animation: spin .8s linear infinite; }
.checkbox-row.is-checking .spinner { display: block; }
.checkbox-row.is-checking { cursor: wait; opacity: .75; }
.message { min-height: 20px; margin: 12px 0 0; font-size: 13px; }
.message.success { color: #16803c; }
.message.error { color: #b42318; }
.captcha-footer { display: flex; gap: 6px; padding: 14px 28px; border-top: 1px solid #edf0f2; color: #6b7785; font-size: 11px; }
.legal { margin: 12px 0 0; color: #84909c; font-size: 11px; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) { .captcha-copy, #captcha-form { padding-left: 20px; padding-right: 20px; } .brand-mark { margin-left: 20px; } .captcha-footer { padding-left: 20px; padding-right: 20px; } }
