/* ------------------------------------------------------------
   1. Containers e layout responsivo
   ------------------------------------------------------------ */
.tc-event-form {
  max-width: 600px;
}

.tc-event-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tc-event-col {
  flex: 1;
  min-width: calc(50% - 0.5rem);
}

@media (max-width: 768px) {
  .tc-event-col {
    min-width: 100%;
  }
}
/* Garantir alinhamento à esquerda em todos os Code Modules */
.et_pb_code {
  text-align: left !important;
}

/* Override de margens para o formulário */
.et_pb_code .tc-event-form {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* Transição suave no botão com id tc-event-submit */
#tc-event-submit {
  transition: background-color 0.3s ease, color 0.3s ease !important;
}

/* Efeito hover: fundo preto, texto verde */
#tc-event-submit:hover {
  background-color: #000 !important;
  color: #50b543 !important;
}


/* ------------------------------------------------------------
   2. Inputs e botão
   ------------------------------------------------------------ */
.tc-event-form input[type="text"],
.tc-event-form input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 0px;
  border-bottom: 2px solid #000;
  border-radius: 0px;
  font-size: 1rem;
  box-sizing: border-box;
}

.tc-event-submit {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid #000;
  border-radius: 50px;
  background-color: #FFF;
  color: #000;
  font-size: 1rem;
  cursor: pointer;
}

.tc-event-submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ------------------------------------------------------------
   3. Loader (ícone de carregamento)
   ------------------------------------------------------------ */
.tc-loader {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  animation: tc-spin 0.6s linear infinite;
}

@keyframes tc-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ------------------------------------------------------------
   4. Modal de feedback
   ------------------------------------------------------------ */
.tc-event-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.tc-event-modal-content {
  width: 90%;
  max-width: 500px;
  background: #ffffff;
  padding: 2rem;
  border-radius: 4px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tc-event-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.tc-event-modal-body {
  margin-top: 1rem;
  font-size: 1rem;
  color: #333;
}
