/* ==========================================================================
   Mock reCAPTCHA v2 ("I'm not a robot") — styles modelled on Google's widget
   ========================================================================== */

.rc-widget {
  position: relative;
  display: inline-block;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* ---------- Anchor (the small box) ---------- */

.rc-anchor {
  position: relative;
  box-sizing: border-box;
  width: 304px;
  height: 78px;
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.08);
  color: #000;
}

.rc-anchor-checkbox-holder {
  position: absolute;
  left: 12px;
  top: 25px;
  width: 28px;
  height: 28px;
}

.rc-checkbox {
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  background: #fff;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  cursor: pointer;
}
.rc-checkbox:hover { border-color: #b2b2b2; }
.rc-checkbox:focus-visible { outline: 2px solid #1a73e8; outline-offset: 1px; }
.rc-checkbox {
  transition: border-color 0.15s, width 0.4s, height 0.4s, border-radius 0.4s,
              left 0.4s, top 0.4s, opacity 0.5s;
}
/* Real widget: the box collapses into a dot, then the spinner fades in */
.rc-checkbox.is-hidden {
  width: 4px;
  height: 4px;
  left: 12px;
  top: 12px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

/* Spinner shown while "verifying" */
.rc-spinner {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  border: 3px solid #d7d7d7;
  border-top-color: #1a73e8;
  border-radius: 50%;
  opacity: 0;
  animation: rc-spin 0.8s linear infinite;
  transition: opacity 0.3s 0.35s;
  pointer-events: none;
}
.rc-spinner.is-visible { opacity: 1; }
@keyframes rc-spin { to { transform: rotate(360deg); } }

/* Green check drawn after success */
.rc-checkmark {
  position: absolute;
  left: -4px;
  top: -6px;
  width: 38px;
  height: 38px;
  opacity: 0;
  pointer-events: none;
}
.rc-checkmark.is-visible { opacity: 1; }
.rc-checkmark path {
  fill: none;
  stroke: #0f9d58;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
}
.rc-checkmark.is-visible path { animation: rc-draw 0.45s ease-out forwards; }
@keyframes rc-draw { to { stroke-dashoffset: 0; } }

.rc-anchor-label {
  position: absolute;
  left: 52px;
  top: 30px;
  font-size: 14px;
  line-height: 17px;
  cursor: pointer;
}

.rc-anchor-logo {
  position: absolute;
  right: 8px;
  top: 10px;
  width: 80px;
  text-align: center;
}
.rc-anchor-logo svg {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 2px;
}
.rc-anchor-logo-text {
  font-size: 10px;
  line-height: 10px;
  color: #555;
  font-weight: 400;
}
.rc-anchor-pt {
  margin-top: 6px;
  font-size: 8px;
  line-height: 8px;
  color: #555;
}
.rc-anchor-pt a { color: #555; text-decoration: none; }
.rc-anchor-pt a:hover { text-decoration: underline; }

.rc-anchor-error {
  position: absolute;
  left: 52px;
  top: 50px;
  font-size: 10px;
  color: #ff0000;
  display: none;
}
.rc-anchor-error.is-visible { display: block; }

/* ---------- Challenge bubble ---------- */

.rc-bubble {
  position: absolute;
  z-index: 2000000000;
  width: 400px; /* overridden by JS to fit the image */
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
  padding: 7px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.rc-bubble.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
}

/* Arrow: outer (border) + inner (fill) triangles */
.rc-bubble-arrow,
.rc-bubble-arrow::after {
  position: absolute;
  width: 0;
  height: 0;
  border: 11px solid transparent;
  content: "";
}
.rc-bubble-arrow { display: block; }
.rc-bubble-arrow::after { border-width: 10px; }

.rc-bubble.pos-right .rc-bubble-arrow {
  left: -22px;
  top: 34px;
  border-right-color: #ccc;
}
.rc-bubble.pos-right .rc-bubble-arrow::after {
  left: -9px;
  top: -10px;
  border-right-color: #fff;
}
.rc-bubble.pos-below .rc-bubble-arrow {
  top: -22px;
  left: 20px;
  border-bottom-color: #ccc;
}
.rc-bubble.pos-below .rc-bubble-arrow::after {
  top: -9px;
  left: -10px;
  border-bottom-color: #fff;
}

.rc-imageselect-header {
  background: #1a73e8;
  color: #fff;
  padding: 16px 16px 14px;
  line-height: 1.25;
}
.rc-imageselect-desc-small { font-size: 16px; }
.rc-imageselect-desc-large {
  font-size: 24px;
  font-weight: 700;
  margin: 2px 0;
}
.rc-imageselect-desc-hint { font-size: 14px; }

.rc-imageselect-target {
  position: relative;
  display: block;
  width: 386px;
  height: 386px;
  margin: 0 auto;
  background: #e8e8e8;
  cursor: pointer;
}
.rc-imageselect-target canvas {
  display: block;
  width: 386px;
  height: 386px;
}

.rc-click-marker {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  box-sizing: border-box;
  border: 3px solid #fff;
  border-radius: 50%;
  background: rgba(26, 115, 232, 0.9);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.6), 0 1px 4px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  display: none;
  animation: rc-pop 0.18s ease-out;
}
.rc-click-marker.is-visible { display: block; }
@keyframes rc-pop { from { transform: scale(0.4); } to { transform: scale(1); } }

.rc-imageselect-error {
  display: none;
  font-size: 14px;
  color: #ea4335;
  padding: 10px 8px 4px;
}
.rc-imageselect-error.is-visible { display: block; }
