/* ============================================
   Avraa Smart — LinSoft
   Landing /teste-gratis — hero + formulário
   (estende o design system de css/styles.css)
============================================ */

/* ===== HERO CONVERSÃO ===== */
/* usa .hero (fundo/gradiente/grid decorativo) + override com specificity
   dupla (.hero.hero--trial) p/ vencer as regras responsivas de .hero    */
.hero.hero--trial {
  display: block;
  min-height: auto;
  padding: 104px 40px 72px;
  align-items: initial;
}

.tg-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  animation: fadeInUp .7s ease both;
}

/* ---- barra superior: selo + "falar agora" ---- */
.tg-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.tg-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(0,200,150,0.09);
  border: 1px solid rgba(0,200,150,0.4);
  box-shadow: 0 0 22px rgba(0,200,150,0.1);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-on-dark);
}
.tg-badge svg { color: var(--green); flex-shrink: 0; }

.tg-talk {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.tg-talk-copy { display: flex; align-items: center; gap: 12px; }
.tg-talk-clock {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,180,255,0.12);
  border: 1px solid rgba(0,180,255,0.3);
  color: var(--blue);
}
.tg-talk-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14.5px; font-weight: 700;
  color: var(--text-on-dark);
  line-height: 1.25;
}
.tg-talk-text span { font-size: 12.5px; color: var(--text-muted); }
.tg-talk-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--green); color: #04121F;
  padding: 12px 22px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-size: 14.5px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,200,150,0.28);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.tg-talk-btn:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,200,150,0.36); }
.tg-talk-btn svg { flex-shrink: 0; }

/* ---- colunas: texto | formulário ---- */
.tg-hero-cols {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(380px, 470px);
  gap: 56px;
  align-items: start;
}

.tg-hero-left { padding-top: 6px; }
.tg-hero-left .hero-overline { margin-bottom: 18px; }
.tg-hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  margin: 0 0 22px;
}
.tg-hero-title .accent { color: var(--green); }
.tg-hero-lead {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 30px;
}
.tg-hero-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 15px;
}
.tg-hero-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-family: var(--font-display);
  font-size: 15.5px; font-weight: 500;
  color: var(--text-on-dark);
  line-height: 1.4;
}
.tg-check {
  flex-shrink: 0;
  width: 22px; height: 22px; margin-top: 1px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,200,150,0.14);
  border: 1px solid rgba(0,200,150,0.45);
}

/* ---- cartão do formulário ---- */
.tg-hero-right { position: relative; }
.tg-hero-right::before {
  content: '';
  position: absolute; inset: -40px -30px;
  background: radial-gradient(ellipse at center, rgba(0,200,150,0.22) 0%, transparent 70%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}
.tg-form {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  border-radius: 22px;
  padding: 30px 30px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
}
.tg-form::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--blue));
}
.tg-form-title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 800;
  color: var(--text-on-light);
  line-height: 1.2;
}
.tg-form-sub {
  font-size: 14px; color: var(--text-subtle);
  margin: 7px 0 22px;
}

.tg-field { margin-bottom: 15px; }
.tg-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 13.5px; font-weight: 600;
  color: var(--text-on-light);
  margin-bottom: 7px;
}
.tg-req { color: #EF4444; }
.tg-field input,
.tg-field select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid #E2E8F0;
  border-radius: 11px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-on-light);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.tg-field input::placeholder { color: #94A3B8; }
.tg-field input:focus,
.tg-field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0,200,150,0.16);
}
/* select com seta customizada + cor de placeholder enquanto vazio */
.tg-field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  cursor: pointer;
}
.tg-field select.tg-placeholder { color: #94A3B8; }

/* estado de erro */
.tg-field.tg-invalid input,
.tg-field.tg-invalid select {
  border-color: #EF4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.12);
}
.tg-error {
  display: none;
  color: #EF4444;
  font-size: 12.5px;
  margin-top: 6px;
}
.tg-field.tg-invalid .tg-error { display: block; }

.tg-submit {
  width: 100%;
  margin-top: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--green); color: #04121F;
  border: none; border-radius: 12px;
  padding: 15px 22px;
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,200,150,0.34);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.tg-submit:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 16px 38px rgba(0,200,150,0.42); }
.tg-submit:active { transform: translateY(0); }
.tg-submit:disabled { opacity: .7; cursor: default; transform: none; }
.tg-submit svg { flex-shrink: 0; }

.tg-form-legal {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 14px;
  font-size: 12.5px; color: var(--text-subtle);
  text-align: center;
}
.tg-form-legal svg { flex-shrink: 0; color: var(--green); }

/* ===== RESPONSIVO ===== */
@media (max-width: 980px) {
  .hero.hero--trial { padding: 84px 24px 56px; }
  .tg-hero-cols { grid-template-columns: 1fr; gap: 40px; }
  .tg-hero-right { max-width: 480px; margin: 0 auto; width: 100%; }
  .tg-topbar { gap: 16px; }
  .tg-talk { width: 100%; justify-content: space-between; }
}

@media (max-width: 620px) {
  .hero.hero--trial { padding-top: 72px; }
  .tg-topbar { flex-direction: column; align-items: stretch; }
  .tg-badge { justify-content: center; text-align: center; }
  .tg-talk { flex-direction: column; align-items: stretch; gap: 14px; }
  .tg-talk-btn { justify-content: center; }
  .tg-hero-title { font-size: clamp(30px, 8vw, 40px); }
  .tg-hero-lead { font-size: 15.5px; }
  .tg-form { padding: 24px 20px 22px; border-radius: 18px; }
  .tg-form-title { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .tg-hero-inner { animation: none; }
  .tg-talk-btn:hover, .tg-submit:hover { transform: none; }
}
