/* CriptoAds - Modal de inscrição */
#ca-subscription-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
#ca-subscription-modal.ca-open { display: flex; }

.ca-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.ca-modal {
  position: relative;
  background: #ffffff;
  width: min(520px, 92vw);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  padding: 24px 20px 20px;
  border: 1px solid #E5E7EB;
  animation: ca-pop 0.2s ease-out;
}

@keyframes ca-pop {
  from { transform: translateY(6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.ca-modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #6B7280;
}
.ca-modal-close:hover { color: #111827; }

.ca-modal-header h2 {
  margin: 0 28px 4px 8px;
  font-size: 1.25rem;
  color: #111827;
}
.ca-modal-header p {
  margin: 0 28px 12px 8px;
  font-size: 0.95rem;
  color: #6B7280;
}

.ca-form { padding: 4px 8px 0; }
.ca-field { margin-bottom: 12px; }
.ca-field label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.ca-field input {
  width: 100%;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ca-field input:focus {
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}
.ca-error {
  display: block;
  color: #B91C1C;
  margin-top: 6px;
  min-height: 18px;
  font-size: 0.8rem;
}

.ca-submit {
  width: 100%;
  display: inline-block;
  background: linear-gradient(135deg, #4F46E5, #4338CA);
  color: #fff;
  border: none;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}
.ca-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(79,70,229,0.35); }

.ca-feedback {
  margin-top: 12px;
  font-size: 0.95rem;
  min-height: 20px;
}
.ca-feedback.success { color: #065F46; }
.ca-feedback.error { color: #991B1B; }

@media (max-width: 420px) {
  .ca-modal-header h2 { font-size: 1.1rem; }
}
