/* Página Aniversariantes — Igreja Batista Aliança
   Segue as cores e fontes do site: laranja #FF9C00, grafite #252323, Inter/Poppins. */
.aniv {
  --aniv-laranja: #FF9C00;
  --aniv-laranja-escuro: #e58a00;
  --aniv-grafite: #252323;
  --aniv-grafite-2: #2e2b2b;
  --aniv-texto: #d9d4cf;
  --aniv-cinza: #9a948e;
  --aniv-borda: rgba(255, 156, 0, .55);
  background: var(--aniv-grafite);
  color: var(--aniv-texto);
  font-family: "Inter", Sans-serif;
  overflow: hidden;
}
.aniv *, .aniv *::before, .aniv *::after { box-sizing: border-box; }

/* ---------- Banner ---------- */
.aniv-hero {
  position: relative;
  height: clamp(560px, 56vw, 940px);
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--aniv-grafite);
}
/* A foto ocupa o banner inteiro; uma camada escura transparente por cima deixa o texto legível. */
.aniv-hero__foto {
  position: absolute; inset: 0; z-index: -2;
  background: url("../img/aniversariantes-festa.jpg") center 22% / cover no-repeat;
  animation: aniv-aparece 1.2s ease-out both;
}
.aniv-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(37,35,35,.90) 0%, rgba(37,35,35,.78) 30%, rgba(37,35,35,.45) 58%, rgba(37,35,35,.20) 100%),
    linear-gradient(0deg, rgba(37,35,35,1) 0%, rgba(37,35,35,0) 18%);
}
.aniv-hero__conteudo {
  width: 100%; max-width: 1140px; margin: 0 auto; padding: 120px 24px 110px;
}
.aniv-hero__caixa { max-width: 560px; }
.aniv-selo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Poppins", Sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--aniv-laranja); margin: 0 0 18px;
}
.aniv-selo::before { content: ""; width: 34px; height: 2px; background: var(--aniv-laranja); }
.aniv-hero h1 {
  font-family: "Inter", Sans-serif; font-weight: 700; color: #fff;
  font-size: clamp(40px, 6.2vw, 72px); line-height: 1.02; letter-spacing: -1.5px; margin: 0 0 22px;
}
.aniv-hero h1 span { color: var(--aniv-laranja); display: block; }
.aniv-hero p.aniv-lead {
  font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: #e9e4df; margin: 0 0 32px; max-width: 500px;
}
.aniv-botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--aniv-laranja); color: #fff; border: 1px solid var(--aniv-laranja);
  font-family: "Inter", Sans-serif; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
  padding: 15px 30px; border-radius: 30px; text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, transform .25s;
}
.aniv-botao:hover, .aniv-botao:focus-visible { background: var(--aniv-grafite); color: var(--aniv-laranja); }
.aniv-botao svg { width: 18px; height: 18px; fill: currentColor; }
.aniv-hero .aniv-botao:hover { transform: translateY(-2px); }

@keyframes aniv-aparece { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .aniv-hero__foto { animation: none; } }

/* ---------- Formulário ---------- */
.aniv-sec { padding: 20px 24px 110px; }
.aniv-grade {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start;
}
.aniv-info h2 {
  font-family: "Inter", Sans-serif; font-weight: 600; color: var(--aniv-laranja);
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; margin: 0 0 18px;
}
.aniv-info > p { font-size: 16px; line-height: 1.7; color: #fff; margin: 0 0 26px; }
.aniv-aviso {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(255, 156, 0, .08); border: 1px solid rgba(255, 156, 0, .35); border-left: 4px solid var(--aniv-laranja);
  border-radius: 14px; padding: 20px 22px; margin: 0 0 16px;
}
.aniv-aviso svg { flex: 0 0 26px; width: 26px; height: 26px; fill: var(--aniv-laranja); margin-top: 2px; }
.aniv-aviso strong { display: block; color: #fff; font-size: 16px; margin: 0 0 6px; }
.aniv-aviso p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--aniv-texto); }
.aniv-aviso p b { color: var(--aniv-laranja); font-weight: 600; }
.aniv p.aniv-assina { font-family: "Poppins", Sans-serif; font-weight: 700; color: var(--aniv-laranja); font-size: 15px; margin: 22px 0 0; }

.aniv-cartao {
  background: var(--aniv-grafite-2); border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 22px; padding: 38px 38px 34px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.aniv-cartao h3 { margin: 0 0 6px; color: #fff; font-family: "Inter", Sans-serif; font-weight: 600; font-size: 24px; }
.aniv-cartao .aniv-sub { margin: 0 0 26px; color: var(--aniv-cinza); font-size: 15px; }
.aniv-campo { margin: 0 0 18px; }
.aniv-campo label { display: block; font-size: 14px; font-weight: 500; color: #fff; margin: 0 0 8px; padding-left: 4px; }
.aniv-campo label em { color: var(--aniv-laranja); font-style: normal; }
.aniv-campo label small { color: var(--aniv-cinza); font-weight: 400; }
.aniv-campo input, .aniv-campo textarea {
  width: 100%; background: transparent; color: #fff;
  border: 1px solid var(--aniv-borda); border-radius: 30px;
  font-family: "Inter", Sans-serif; font-size: 16px; line-height: 1.4;
  padding: 13px 20px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.aniv-campo textarea { border-radius: 22px; min-height: 110px; resize: vertical; }
.aniv-campo input::placeholder, .aniv-campo textarea::placeholder { color: #7A7A7A; }
.aniv-campo input:focus, .aniv-campo textarea:focus {
  border-color: var(--aniv-laranja); background: rgba(255, 156, 0, .05); box-shadow: 0 0 0 3px rgba(255, 156, 0, .18);
}
.aniv-campo.erro input, .aniv-campo.erro textarea { border-color: #ff5a4e; }
.aniv-campo .aniv-msg-campo { display: none; color: #ff8a80; font-size: 13px; margin: 6px 0 0 6px; }
.aniv-campo.erro .aniv-msg-campo { display: block; }
.aniv-dica { font-size: 13px; color: var(--aniv-cinza); margin: 7px 0 0 6px; min-height: 18px; }
.aniv-dica.alerta { color: #ffc266; }
.aniv-isca { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.aniv-cartao .aniv-botao { width: 100%; margin-top: 8px; padding: 16px 24px; }
.aniv-cartao .aniv-botao[disabled] { opacity: .65; cursor: wait; }
.aniv-geral { display: none; margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; font-size: 14px; }
.aniv-geral.ver { display: block; background: rgba(255, 90, 78, .12); color: #ffb4ad; border: 1px solid rgba(255, 90, 78, .35); }
.aniv-privado { font-size: 12px; color: var(--aniv-cinza); text-align: center; margin: 14px 0 0; }

/* Sucesso */
.aniv-ok { display: none; text-align: center; padding: 18px 6px 8px; }
.aniv-cartao.enviado form { display: none; }
.aniv-cartao.enviado .aniv-ok { display: block; animation: aniv-sobe .5s ease-out; }
.aniv-ok .aniv-ok-icone {
  width: 86px; height: 86px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 156, 0, .12); border: 2px solid var(--aniv-laranja);
}
.aniv-ok .aniv-ok-icone svg { width: 40px; height: 40px; fill: var(--aniv-laranja); }
.aniv-ok h3 { font-size: 26px; }
.aniv-ok p { color: var(--aniv-texto); font-size: 16px; line-height: 1.6; margin: 0 auto 10px; max-width: 420px; }
.aniv-ok p.aniv-ok-alerta { color: #ffc266; font-size: 14px; }
.aniv-ok .aniv-botao { width: auto; margin-top: 18px; background: transparent; color: var(--aniv-laranja); }
.aniv-ok .aniv-botao:hover { background: var(--aniv-laranja); color: #fff; }
@keyframes aniv-sobe { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Tablet e celular ---------- */
@media (max-width: 1024px) {
  /* celular/tablet: primeiro as informações e avisos, depois o formulário */
  .aniv-grade { display: flex; flex-direction: column; gap: 30px; max-width: 680px; }
  .aniv-cartao { width: 100%; }
}
@media (max-width: 767px) {
  /* celular: a foto também ocupa o banner todo, com a camada escura por cima do texto */
  .aniv-hero { height: auto; min-height: 600px; align-items: flex-end; }
  .aniv-hero__foto { background-image: url("../img/aniversariantes-festa-1024.jpg"); background-position: 42% center; }
  .aniv-hero::before {
    background: linear-gradient(180deg, rgba(37,35,35,.35) 0%, rgba(37,35,35,.62) 38%, rgba(37,35,35,.88) 70%, rgba(37,35,35,1) 100%);
  }
  .aniv-hero__conteudo { padding: 150px 20px 44px; }
  .aniv-hero h1 { letter-spacing: -1px; }
  .aniv-hero p.aniv-lead { margin-bottom: 26px; }
  .aniv-hero .aniv-botao { width: 100%; }
  .aniv-sec { padding: 10px 16px 70px; }
  .aniv-cartao { padding: 28px 20px 24px; border-radius: 18px; }
  .aniv-aviso { padding: 16px 16px; }
}
