/* Email Secure — wait + shape captcha */
.email-secure-captcha-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
}

.email-secure-captcha-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 48px;
}

.email-secure-captcha {
  width: min(420px, 100%);
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 50, 86, 0.12);
  overflow: hidden;
  border: 1px solid #e6eaf0;
  border-radius: 16px;
}

.email-secure-captcha-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px;
  background: #137983;
}

.email-secure-captcha-prompt {
  font-weight: 600;
  line-height: 1.3;
  font-size: 16px;
  color: #fff;
}

.email-secure-captcha-steps {
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.email-secure-captcha-hint {
  font-size: 12px;
  color: #64748b;
}

.email-secure-captcha-example {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}

.email-secure-captcha-example img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.email-secure-captcha-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 0;
  background: #fff;
  width: 100%;
}

.email-secure-captcha-tile {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  background: #eef2f7;
  font: inherit;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
}

.email-secure-captcha-tile::before {
  content: "";
  display: block;
  padding-top: 100%;
}

.email-secure-captcha-tile.selected {
  box-shadow: inset 0 0 0 3px #137983;
}

.email-secure-captcha-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.email-secure-captcha-check {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #137983;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
}

.email-secure-captcha-tile.selected .email-secure-captcha-check {
  display: flex;
}

.email-secure-captcha-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid #e6eaf0;
  background: #fff;
}

.email-secure-captcha-verify {
  border: 0;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  background: #137983;
  color: #fff;
}

.email-secure-captcha-status {
  display: none;
  padding: 10px 14px;
  font-size: 14px;
  border-top: 1px solid #e6eaf0;
  background: #fcfdfd;
}

.email-secure-captcha-status.is-error {
  display: block;
  color: #ef4444;
}
