/* oig_validation/css/recaptcha-gate.css */

/* Modal Styles */
.captcha-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.captcha-modal.active {
  display: block;
}

.captcha-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s ease;
}

.captcha-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  animation: slideIn 0.3s ease;
}

.captcha-modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.captcha-modal-header h3 {
  margin: 0;
  font-size: 1.5em;
  color: #333;
}

.captcha-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.captcha-modal-close:hover {
  color: #333;
}

.captcha-modal-body {
  padding: 30px 20px;
  text-align: center;
}

.captcha-modal-body p {
  margin: 0 0 20px 0;
  color: #666;
  font-size: 1em;
}

#modal-recaptcha-widget {
  display: inline-block;
  margin: 0 auto;
}

/* Success Message */
.captcha-success-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4CAF50;
  color: white;
  padding: 15px 25px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  animation: slideInRight 0.3s ease;
  font-weight: 500;
}

.captcha-success-message.fade-out {
  animation: fadeOut 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    transform: translate(-50%, -60%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
  .captcha-modal-content {
    width: 95%;
    max-width: none;
  }
  
  .captcha-success-message {
    top: 10px;
    right: 10px;
    left: 10px;
    text-align: center;
  }
}