/* Sansay self-hosted CAPTCHA widget — privacy-preserving "I'm not a robot" box.
 * Clean, neutral styling that sits well inside the site's contact/inquiry forms.
 * No external fonts or images; everything is drawn with CSS. */

.sansay-captcha {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin: 14px 0;
  padding: 12px 14px;
  background: #f9f9f9;
  border: 1px solid #d3d6db;
  border-radius: 6px;
  font: 14px/1.3 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #2b2f36;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .04);
  user-select: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sansay-captcha:hover { border-color: #b9bdc4; }

.sansay-captcha .sc-box {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 2px solid #b6bbc2;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s ease, background .15s ease;
}
.sansay-captcha .sc-box:focus-visible { outline: 2px solid #1565c0; outline-offset: 2px; }
.sansay-captcha .sc-box:hover { border-color: #1565c0; }

.sansay-captcha .sc-label {
  flex: 1 1 auto;
  cursor: pointer;
  font-weight: 500;
}

.sansay-captcha .sc-brand {
  flex: 0 0 auto;
  font-size: 10px;
  line-height: 1.2;
  color: #9aa0a8;
  text-align: right;
  letter-spacing: .02em;
}
.sansay-captcha .sc-brand b { display: block; color: #6b7178; font-weight: 600; }

/* Spinner shown while the proof-of-work runs (entirely in the browser). */
.sansay-captcha.is-working .sc-box {
  border-color: transparent;
  cursor: default;
}
.sansay-captcha .sc-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid #d3d6db;
  border-top-color: #1565c0;
  border-radius: 50%;
  animation: sc-spin .7s linear infinite;
}
.sansay-captcha.is-working .sc-spinner { display: block; }
.sansay-captcha.is-working .sc-check,
.sansay-captcha.is-working .sc-tick { display: none; }
@keyframes sc-spin { to { transform: rotate(360deg); } }

/* The drawn checkmark, revealed when verified. */
.sansay-captcha .sc-tick {
  display: none;
  width: 14px;
  height: 8px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg) translate(0, -1px);
  margin-top: -3px;
}
.sansay-captcha.is-verified .sc-box {
  background: #2e9e5b;
  border-color: #2e9e5b;
  cursor: default;
}
.sansay-captcha.is-verified .sc-tick { display: block; }
.sansay-captcha.is-verified .sc-label { color: #2e7d49; font-weight: 600; }

/* Error / nudge state (e.g. user tried to submit without verifying). */
.sansay-captcha.is-error {
  border-color: #d9534f;
  box-shadow: 0 0 0 2px rgba(217, 83, 79, .12);
  animation: sc-shake .35s ease;
}
.sansay-captcha .sc-msg {
  flex-basis: 100%;
  margin: 4px 0 0;
  font-size: 12px;
  color: #c0392b;
  display: none;
}
.sansay-captcha.is-error .sc-msg { display: block; }
@keyframes sc-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
