
/* FONTES LOCAIS */
@font-face {
  font-family: 'Poppins';
  src: url('../../assets/fonts/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
}
@font-face {
  font-family: 'Poppins';
  src: url('../../assets/fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'Poppins';
  src: url('../../assets/fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
}
@font-face {
  font-family: 'Poppins';
  src: url('../../assets/fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
}
@font-face {
  font-family: 'Open Sans';
  src: url('../../assets/fonts/OpenSans-Bold.ttf') format('truetype');
  font-weight: 700;
}
@font-face {
  font-family: 'Open Sans';
  src: url('../../assets/fonts/OpenSans-ExtraBold.ttf') format('truetype');
  font-weight: 800;
}

:root {
  --azul: #003855;
  --azul-medio: #0a4d6e;
  --amarelo: #f3a500;
  --claro: #f2f2f2;
  --branco: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--azul);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.app {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: var(--azul);
  position: relative;
}

/* ================================
   TELAS
================================ */
.tela {
  display: none;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 40px 28px 56px;
  animation: fadeIn 0.4s ease;
}

.tela.ativa {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================
   LOGO
================================ */
.logo {
  width: 160px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

/* ================================
   BOTÕES
================================ */
.btn {
  width: 100%;
  padding: 16px;
  border-radius: 50px;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}

.btn-amarelo {
  background: var(--amarelo);
  color: var(--azul);
}
.btn-amarelo:hover { background: #e09500; transform: translateY(-1px); }

.btn-branco {
  background: var(--branco);
  color: var(--azul);
}
.btn-branco:hover { background: #ebebeb; transform: translateY(-1px); }

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
}

/* ================================
   TELA 1 — ENTRADA
================================ */
#t1 {
  justify-content: space-between;
  padding-top: 48px;
  padding-bottom: 48px; /* espaço seguro base */
}

#t1 .hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

#t1 h1 {
  font-family: 'Open Sans', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--claro);
  text-align: center;
  line-height: 1.3;
}

#t1 .robo-img {
  width: 260px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
}

#t1 .bottom {
  width: 100%;
  padding-bottom: 8px;
}

/* ================================
   TELA 2 — TERMOS
================================ */
#t2 {
  justify-content: center;
  align-items: center;
  gap: 0;
  padding-top: 36px;
  padding-bottom: 48px;
}

#t2 h2 {
  font-family: 'Open Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--claro);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
  width: 100%;
}

.termos-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  width: 100%;
  overflow-y: auto;
  flex: 1;
}

.termos-box p {
  color: var(--claro);
  font-size: 13.5px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.termos-box ul {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
}

.termos-box ul li {
  color: var(--claro);
  font-size: 13.5px;
  padding: 3px 0 3px 20px;
  position: relative;
  line-height: 1.6;
}

.termos-box ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  background: var(--amarelo);
  border-radius: 50%;
}

.destaque {
  background: rgba(243,165,0,0.1);
  border-left: 3px solid var(--amarelo);
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  margin-top: 8px;
}

.destaque p {
  margin: 0 !important;
  font-size: 13px !important;
}

/* ================================
   TELAS 3 e 4 — FORMULÁRIO
================================ */
.form-tela {
  justify-content: flex-start;
  padding-top: 32px;
  padding-bottom: 48px;
  gap: 0;
}

.form-tela h2 {
  font-family: 'Open Sans', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--claro);
  text-align: center;
  margin-bottom: 16px;
}

.secao-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.secao-icone {
  width: 40px;
  height: 40px;
  background: var(--amarelo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.secao-icone img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.secao-label span {
  color: var(--claro);
  font-size: 15px;
  font-weight: 500;
}

/* Campos */
.form-group {
  width: 100%;
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  color: rgba(242,242,242,0.65);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin-bottom: 5px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.92);
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  color: var(--azul);
  outline: none;
  transition: border 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder {
  color: rgba(0,56,85,0.35);
  font-size: 12.5px;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--amarelo);
  background: #ffffff;
}

.form-group select {
  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='%23003855' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: rgba(255,255,255,0.92);
  padding-right: 40px;
  cursor: pointer;
}

/* Linha cidade + UF */
.form-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.form-row .form-group {
  flex: 1;
}

.form-group-uf {
  flex: 0 0 68px !important;
}

/* Erro */
.erro-msg {
  color: #ff6b6b;
  font-size: 12px;
  text-align: center;
  min-height: 16px;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-tela .btn {
  margin-top: 8px;
}

/* Botão de teste — remover antes de ir para produção */
.btn-teste {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 50px;
  border: 1px dashed rgba(255,255,255,0.3);
  background: transparent;
  color: rgba(255,255,255,0.4);
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  cursor: pointer;
}

/* ================================
   TELA 5 — SUCESSO
================================ */
#t5 {
  justify-content: space-between;
  padding-top: 48px;
  padding-bottom: 48px;
}

#t5 .hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

#t5 h1 {
  font-family: 'Open Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--claro);
  text-align: center;
  line-height: 1.3;
}

#t5 .robo-img {
  width: 250px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
}

.subtitulo {
  color: rgba(242,242,242,0.75);
  font-size: 14px;
  text-align: center;
  line-height: 1.6;
  padding: 0 8px;
}

#t5 .bottom {
  width: 100%;
  padding-bottom: 8px;
}

.fale-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--claro);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 14px;
}

.patinha-inline {
  width: 28px;
  height: 28px;
  background: var(--amarelo);
  border-radius: 50%;
  padding: 5px;
  filter: brightness(0) invert(1);
}

/* ================================
   TELA VAGAS ENCERRADAS
================================ */
#t-cheio {
  justify-content: center;
  gap: 28px;
  text-align: center;
  padding-top: 60px;
}

#t-cheio .hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#t-cheio h1 {
  font-family: 'Open Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--claro);
  line-height: 1.3;
}

#t-cheio .robo-img {
  width: 220px;
  opacity: 0.85;
}

/* ================================
   LOADING
================================ */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,56,85,0.85);
  z-index: 100;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 16px;
}

.loading-overlay.ativo {
  display: flex;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(243,165,0,0.3);
  border-top-color: var(--amarelo);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-overlay p {
  color: var(--claro);
  font-size: 14px;
  font-weight: 500;
}

/* ================================
   RESPONSIVO
================================ */
@media (max-width: 380px) {
  .tela { padding: 28px 20px 48px; }
  #t1 h1 { font-size: 22px; }
  #t1 .robo-img { width: 220px; }
  .form-tela h2 { font-size: 17px; }
}