/* Contact-form CAPTCHA modal — 4x4 color grid challenge */

.cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 18, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease, visibility 160ms ease;
}
.cc-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cc-modal {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  color: #111;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  padding: 22px 22px 18px;
  font-family: inherit;
  transform: translateY(8px);
  transition: transform 160ms ease;
}
.cc-overlay.open .cc-modal {
  transform: translateY(0);
}

.cc-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 4px;
  text-align: center;
}
.cc-subtitle {
  font-size: 0.88rem;
  color: #4b5563;
  margin: 0 0 16px;
  text-align: center;
}
.cc-subtitle strong { color: #111; font-weight: 600; }

.cc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.cc-cell {
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  border: 2px solid #d6d9e0;
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 120ms ease, border-color 120ms ease;
  user-select: none;
  background-clip: padding-box;
}
.cc-cell:hover { transform: scale(1.03); }
.cc-cell.selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

.cc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.cc-btn {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  transition: filter 120ms ease, transform 80ms ease;
}
.cc-btn:active { transform: translateY(1px); }
.cc-btn-cancel {
  background: #e5e7eb;
  color: #111;
}
.cc-btn-cancel:hover { filter: brightness(0.96); }
.cc-btn-verify {
  background: #2563eb;
  color: #ffffff;
}
.cc-btn-verify:hover { filter: brightness(1.05); }
.cc-btn-verify:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.cc-help {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: #6b7280;
  text-align: center;
}
.cc-help::before {
  content: "ⓘ ";
  color: #6b7280;
}

.cc-error {
  margin-top: 10px;
  font-size: 0.82rem;
  color: #b91c1c;
  text-align: center;
  min-height: 1em;
}

@media (max-width: 480px) {
  .cc-modal { padding: 18px 16px 14px; }
  .cc-grid  { gap: 6px; }
}
