/* ─── Gate: Tela de captura de lead ───────────────────────── */

.gate-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 16px;
  background: linear-gradient(160deg, #f5e6ff 0%, var(--color-cream) 60%, #fce7f3 100%);
  overflow-y: auto;
}

.gate-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Logo */
.gate-logo {
  margin-bottom: 16px;
}
.gate-logo img {
  height: 64px;
  object-fit: contain;
}

/* Thumbnail da capa */
.gate-cover {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.gate-cover img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 200px;
  object-position: top;
}

/* Títulos */
.gate-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-purple);
  text-align: center;
  margin: 0 0 6px;
  line-height: 1.2;
}

.gate-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-align: center;
  margin: 0 0 24px;
}

/* Form */
#lead-form {
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
}

.form-group input {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-text);
  transition: border-color var(--transition-ui);
  outline: none;
  width: 100%;
}

.form-group input:focus {
  border-color: var(--color-purple);
}

.form-group input.input-error {
  border-color: #ef4444;
}

.form-error {
  font-size: 0.8rem;
  color: #ef4444;
  min-height: 18px;
}

.lgpd-notice {
  font-size: 0.78rem;
  color: var(--color-text-light);
  line-height: 1.5;
  margin: 0 0 20px;
  text-align: center;
}

/* Botões */
.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--color-purple);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background var(--transition-ui), transform var(--transition-ui);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover  { background: var(--color-purple-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary[disabled] { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-purple);
  color: var(--color-purple);
  border-radius: var(--radius-btn);
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-ui);
  font-family: var(--font-body);
}
.btn-secondary:hover { background: var(--color-purple-light); }

/* Erro global do form */
.form-global-error {
  margin-top: 12px;
  padding: 12px 16px;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  color: #b91c1c;
  font-size: 0.88rem;
  text-align: center;
}

/* Tela de confirmação de envio */
#gate-sent-screen {
  text-align: center;
  width: 100%;
}

.gate-sent-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
}

#gate-sent-screen h2 {
  font-family: var(--font-display);
  color: var(--color-purple);
  margin: 0 0 12px;
}

#gate-sent-screen p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 8px;
}

.gate-sent-tip {
  font-size: 0.82rem !important;
  color: var(--color-text-light) !important;
  margin-bottom: 20px !important;
}

/* Tela de erro (verify.php) */
.gate-error-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

/* Loading no botão */
.btn-loading { display: none; }
button.loading .btn-text    { display: none; }
button.loading .btn-loading { display: inline; }

/* ─── Banner de Cookies (LGPD) ───────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1f2937;
  color: #f9fafb;
  padding: 14px 20px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.25);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.cookie-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-content p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

.cookie-content a {
  color: #c4b5fd;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--color-purple);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-body);
}
.btn-cookie-accept:hover { background: var(--color-purple-dark); }

.btn-cookie-reject {
  background: transparent;
  color: #9ca3af;
  border: 1px solid #4b5563;
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  font-family: var(--font-body);
}
.btn-cookie-reject:hover { color: #f9fafb; border-color: #9ca3af; }

/* ─── Modal genérico (política de privacidade) ───────────── */
.modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none !important; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.modal-box { position: relative; background: #fff; border-radius: var(--radius-card); padding: 28px 24px; width: 100%; max-width: 480px; z-index: 1; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--color-text-muted); }
.modal-close:hover { color: var(--color-text); }
