/* ============================================================
   TYRSA CRM — Newsletter Form
   Estilo: input pill sobre fondo naranja, botón circular con icono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Wrapper ────────────────────────────────────────────────── */
.tt-nl-wrap,
div.tt-nl-wrap {
  width: 100%;
  position: relative;
  box-sizing: border-box;
  padding: 48px 24px;
  background: #E85D26;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── Contenedor del input ───────────────────────────────────── */
.tt-nl-wrap .tt-nl-container,
div.tt-nl-wrap div.tt-nl-container {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 520px !important;
  background: #ffffff !important;
  border-radius: 100px !important;
  padding: 6px 6px 6px 24px !important;
  box-sizing: border-box !important;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ── Input email ────────────────────────────────────────────── */
.tt-nl-wrap .tt-nl-container input.tt-nl-email-input,
.tt-nl-wrap .tt-nl-container input[type="email"].tt-nl-email-input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 15px !important;
  color: #374151 !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  padding: 0 !important;
  height: 40px !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.tt-nl-wrap .tt-nl-container input.tt-nl-email-input::placeholder {
  color: #9ca3af !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

.tt-nl-wrap .tt-nl-container input.tt-nl-email-input:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* ── Botón circular con ícono avión ─────────────────────────── */
.tt-nl-wrap .tt-nl-container button.tt-nl-submit-btn {
  flex-shrink: 0 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  border: none !important;
  background: #E85D26 !important;
  background-color: #E85D26 !important;
  color: transparent !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s ease, transform 0.15s ease !important;
  padding: 0 !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
  position: relative !important;
}

.tt-nl-wrap .tt-nl-container button.tt-nl-submit-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='22' y1='2' x2='11' y2='13'/%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.tt-nl-wrap .tt-nl-container button.tt-nl-submit-btn:hover {
  background: #cf4f1e !important;
  background-color: #cf4f1e !important;
  transform: scale(1.06) !important;
}

.tt-nl-wrap .tt-nl-container button.tt-nl-submit-btn:active { transform: scale(0.97) !important; }
.tt-nl-wrap .tt-nl-container button.tt-nl-submit-btn:disabled {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* ── Error ──────────────────────────────────────────────────── */
.tt-nl-wrap .tt-nl-error {
  display: none;
  margin-top: 12px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #fff;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 8px 16px;
}

/* ── Thank you ──────────────────────────────────────────────── */
.tt-nl-wrap .tt-nl-thankyou {
  display: none !important;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tt-nl-wrap .tt-nl-thankyou.tt-nl-thankyou--show {
  display: block !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.tt-nl-wrap .tt-nl-thankyou .tt-nl-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  animation: ttNlScaleIn 0.5s ease;
}

@keyframes ttNlScaleIn {
  0%   { transform: scale(0); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.tt-nl-wrap .tt-nl-thankyou .tt-nl-thanks-title {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 8px !important;
  font-family: 'Inter', sans-serif !important;
}

.tt-nl-wrap .tt-nl-thankyou .tt-nl-thanks-text {
  font-size: 15px !important;
  color: rgba(255,255,255,0.85) !important;
  margin: 0 !important;
  font-family: 'Inter', sans-serif !important;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  .tt-nl-wrap { padding: 32px 16px; }
  .tt-nl-wrap .tt-nl-container { padding: 5px 5px 5px 18px !important; }
  .tt-nl-wrap .tt-nl-container input.tt-nl-email-input { font-size: 14px !important; }
}
