*{box-sizing:border-box}
:root{
  --blue:#063b8f;
  --blue2:#0759c9;
  --gold:#f0b800;
  --text:#063b8f;
  --white:#fff;
  --max:1180px;
}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:#fff;
  color:var(--text);
  font-family:Montserrat,Arial,sans-serif;
}
a{color:inherit;text-decoration:none}
.site-header{
  height:78px;
  background:#063b8f;
  color:#fff;
  position:sticky;
  top:0;
  z-index:100;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
}
.header-inner{
  max-width:1180px;
  height:100%;
  margin:auto;
  display:flex;
  align-items:center;
  padding:0 28px 0 32px;
}
.brand{
  width:150px;
  height:56px;
  display:flex;
  align-items:center;
  overflow:hidden;
}
.brand img{
  width:150px;
  height:56px;
  object-fit:contain;
  object-position:left center;
}
.main-nav{
  flex:1;
  display:flex;
  justify-content:flex-end;
  gap:54px;
  font-size:15px;
  font-weight:700;
  padding-right:20px;
}
.main-nav a{transition:.2s}
.main-nav a:hover{color:#ffd54a}
.menu-toggle{display:none}

 .hero{
  min-height:700px;
  position:relative;
  overflow:hidden;
  background:linear-gradient(90deg,#fff 0%,#fbfbfb 50%,#fff 100%);
}
/* canvas de confetes: o JS define o tamanho real via canvas.style */
#hero-confetti-canvas{
  position:absolute;
  top:0;
  left:0;
  /* fallback m+¡nimo; o JS sobrescreve com as dimens+Áes reais do hero */
  width:1px;
  height:1px;
  pointer-events:none;
  z-index:0;
  display:block;
}
.hero-inner{
  max-width:1180px;
  min-height:680px;
  margin:auto;
  position:relative;
  z-index:1;
  padding-bottom:80px;
}
.hero-copy{
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:100%;
}
.hero-header{
  position:absolute;
  width:51%;
  left:3%;
  top:0%;
  display:block;
}

.hero-header{
  animation:heroHeartbeat 3.6s ease-in-out infinite!important;
  transform-origin:center center;
  will-change:transform;
}
@keyframes heroHeartbeat{
  0%, 35%, 100%{transform:scale(1)}
  10%{transform:scale(1.05)}
  18%{transform:scale(1)}
  26%{transform:scale(1.06)}
}
@media (prefers-reduced-motion:reduce){
  .hero-header,.hero-actions .btn{animation:none;transition:none}
}

.hero-badge{
  position:absolute;
  width:23%;
  right:6%;
  top:22%;
}
.hero-badge img{width:100%;display:block}
.hero-actions{
  position:absolute;
  right:6%;
  width:23%;
  bottom:65px;
  display:flex;
  justify-content:center;
  gap:20px;
  white-space:nowrap;
}
.hero-actions .btn{
  position:relative;
  overflow:hidden;
  transition:transform .22s ease, box-shadow .22s ease, background-color .22s ease, border-color .22s ease;
}
.hero-actions .btn::before{
  content:"";
  position:absolute;
  top:0;
  left:-120%;
  width:70%;
  height:100%;
  background:linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent);
  transform:skewX(-20deg);
  transition:left .55s ease;
}
.hero-actions .btn:hover{
  transform:translateY(-4px) scale(1.025);
  box-shadow:0 10px 22px rgba(6,59,143,.22);
}
.hero-actions .btn:hover::before{left:145%}
.hero-actions .btn-primary:hover{background:#0868df}
.hero-actions .btn-outline:hover{background:#f7fbff;border-color:#0759c9}
.hero-actions .btn span{transition:transform .22s ease}
.hero-actions .btn:hover span{transform:translateX(4px)}
.btn{
  min-width:220px;
  height:50px;
  padding:0 24px;
  border-radius:10px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:22px;
  font-size:16px;
  font-weight:700;
}
.btn span{font-size:30px;line-height:0}
.btn-primary{background:var(--blue2);color:#fff}
.btn-outline{border:2px solid #5d88c9;color:var(--blue);background:#fff}

.prizes{
  max-width:1180px;
  margin:auto;
  padding:16px 28px 32px;
}
.section-heading{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:28px;
  margin-bottom:14px;
}
.section-heading span{
  height:2px;
  background:linear-gradient(90deg,transparent,#e4b53a);
  min-width: 30px;
}
.section-heading span:last-child{
  background:linear-gradient(90deg,#e4b53a,transparent);
}
.section-heading h1,.section-heading h2{
  margin:0;
  font-size:28px;
  line-height:1.1;
  font-weight:900;
  text-align:center;
}
.prize-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  align-items:end;
}
.prize-card{
  display:flex;
  justify-content:center;
  align-items:flex-end;
  min-width:0;
}
.prize-card img{
  display:block;
  width:100%;
  max-width:270px;
  height:auto;
  object-fit:contain;
}

.app-promo{
  max-width:1180px;
  margin:0 auto 36px;
  padding:0 28px;
  background:#063b8f;
  border-radius:22px;
  overflow:hidden;
}
.app-promo a{display:block}
.app-promo img{
  width:100%;
  height:auto;
  display:block;
  border-radius:22px;
}

.how{
  max-width:1180px;
  margin:auto;
  padding:0 28px 24px;
}
.steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
}
.step{
  min-height:420px;
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:16px 12px;
  border-right:1px solid #d4d4d4;
}
.step:last-child{border-right:0}
.step-number{
  width:40px;height:40px;border-radius:50%;
  background:#e3aa08;color:#fff;
  display:grid;place-items:center;
  font-size:20px;font-weight:900;
}
.step-icon{
  width:66px;height:66px;border:3px solid var(--blue);
  border-radius:50%;
  display:grid;place-items:center;
  font-size:31px;
}
.step strong{font-size:14px;line-height:1.25;text-align:center}

.site-footer{
  background:#063b8f;
  color:#fff;
  min-height:82px;
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  align-items:center;
  padding:14px max(28px,calc((100% - 1180px)/2));
}
.footer-item{
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  padding:0 28px;
  border-right:1px solid rgba(255,255,255,.45);
  font-size:13px;
}
.footer-item:last-child{border-right:0}
.footer-item p{margin:0;line-height:1.35}
.footer-symbol{font-size:30px}
.footer-link:hover{color:#ffd54a}
.socials{display:flex;gap:15px}
.socials a{
  width:26px;height:26px;border:2px solid #fff;border-radius:50%;
  display:grid;place-items:center;font-weight:800;color:#fff;
}

@media(max-width:850px){
  .site-header{height:auto;min-height:68px}
  .header-inner{padding:7px 18px}
  .brand{width:145px;height:52px}
  .brand img{width:145px;height:52px}
  .main-nav{
    display:none;
    position:absolute;left:0;right:0;top:66px;
    background:var(--blue);
    flex-direction:column;
    gap:0;
    padding:8px 18px 18px;
  }
  .main-nav.open{display:flex}
  .main-nav a{padding:14px 4px;border-bottom:1px solid rgba(255,255,255,.18)}
  .menu-toggle{
    display:block;margin-left:auto;border:0;background:transparent;color:#fff;
    font-size:28px;cursor:pointer;
  }

  .hero{min-height:auto;padding:24px 0 16px;position:relative}
  .hero-inner{min-height:auto}
  .hero-copy{
    position:static;width:100%;height:auto;
    display:flex;flex-direction:column;align-items:center;text-align:center;
    padding:0 6%;
  }
  .hero-header{position:static;width:92%;margin:0 auto;animation:heroHeartbeat 2.8s ease-in-out infinite!important}
  .hero-badge{position:static;width:170px;margin:-15px auto 0;right:auto;top:auto;align-self:center}
  .hero-actions{
    position:static;
    transform:none;
    margin:15px auto 0;
    width:100%;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px;
  }
  .btn{min-width:160px;height:46px;font-size:14px;padding:0 14px;gap:12px}

  .prizes{padding:12px 18px}
  .section-heading{gap:10px}
  .section-heading h1,.section-heading h2{font-size:20px}
  .prize-grid{grid-template-columns:repeat(2,1fr);gap:2px}
  .prize-card img{max-width:310px}

  .app-promo{padding:0 18px;margin-bottom:28px;border-radius:14px}
  .app-promo img{border-radius:14px}

  .how{padding:0 18px 20px}
  .steps{grid-template-columns:1fr}
  .step{
    min-height:105px;
    grid-template-columns:48px 70px 1fr;
    border-right:0;
    border-bottom:1px solid #ddd;
  }
  .step:last-child{border-bottom:0}
  .step strong{text-align:left}

  .site-footer{
    grid-template-columns:1fr;
    padding:12px 18px;
  }
  .footer-item{
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.35);
    min-height:65px;
    padding:10px 0;
  }
  .footer-item:last-child{border-bottom:0}
}

@media(max-width:480px){
  /* No mobile, os elementos do hero seguem uma ordem vertical real:
     anivers+írio -> 74 anos -> com voc+¬ -> banner -> bot+Áes.
     Isso evita que os CTAs sobreponham as artes. */
  .hero{min-height:auto;padding-top:18px;padding-bottom:12px;position:relative}
  .hero-inner{min-height:auto}
  .hero-copy{height:auto;padding:0 5%;}
  .hero-header{width:98%;margin:0 auto;animation:heroHeartbeat 2.8s ease-in-out infinite!important}
  .hero-badge{width:150px;margin:-15px auto 0}
  .hero-actions{margin:12px auto 0;gap:10px}
  .btn{min-width:145px}
  .prize-grid{grid-template-columns:1fr}
  .prize-card img{max-width:330px}
}

/* --- FormulÃ¡rio de Cadastro --- */
.form-section {
  padding: 64px 16px;
  background: #ffffff; /* bg-background */
}
.section-heading-custom {
  max-width: 672px; /* max-w-2xl */
  margin: 0 auto 32px;
  text-align: center;
}
.text-title {
  font-size: 30px; /* text-3xl / 4xl */
  font-weight: 700;
  color: #0f172a; /* text-foreground aprox */
  margin: 0;
  line-height: 1.2;
}
.subtitle-dates {
  font-size: 15px;
  color: #475569;
  margin-top: 12px;
  line-height: 1.5;
}
.subtitle-dates strong {
  color: #0f172a;
  font-weight: 700;
}
@media(min-width: 768px) {
  .text-title { font-size: 36px; }
}
.form-container {
  max-width: 672px; /* max-w-2xl */
  margin: 0 auto;
  background: #ffffff;
  padding: 32px; /* p-8 */
  border-radius: 8px; /* rounded-lg */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); /* shadow-lg */
  border: 1px solid #e2e8f0; /* card border if any, good for contrast */
}
.cadastro-form {
  display: flex;
  flex-direction: column;
  gap: 24px; /* space-y-6 */
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
}
.form-group input,
.form-group select {
  height: 40px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0; /* border-input */
  border-radius: 6px; /* rounded-md */
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  background-color: transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px hsl(217 91% 60%); /* ring-primary */
}
.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
}
.checkbox-group input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: hsl(217 91% 60%);
}
.checkbox-group label {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.25;
  cursor: pointer;
  color: #0f172a;
}
.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.captcha-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-icon {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #64748b;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-icon:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.error-msg {
  color: #ef4444;
  font-size: 13px;
  margin: 0;
  margin-top: 4px;
}

/* Modal de Sucesso */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #ffffff;
  padding: 40px 32px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  animation: modalIn 0.3s ease-out;
  position: relative;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.btn-exemplo {
  background: none;
  border: none;
  color: hsl(217 91% 60%);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  font-weight: 500;
}
.btn-exemplo:hover {
  color: hsl(217 91% 50%);
}
.btn-close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
}
.btn-close-modal:hover {
  color: #0f172a;
}
.modal-content svg {
  color: hsl(142 71% 45%);
  margin-bottom: 20px;
}
.modal-content h3 {
  font-size: 24px;
  color: #0f172a;
  margin: 0 0 8px;
}
.modal-content p {
  color: #475569;
  margin: 0 0 16px;
}
.protocolo-box {
  background: #f1f5f9;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 24px;
  letter-spacing: 1px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 24px;
  border: 1px dashed #cbd5e1;
}
.sucesso-nota {
  font-size: 13px !important;
  color: #64748b !important;
  margin-bottom: 24px !important;
}
.btn-submit-custom {
  flex: 1;
  height: 40px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background: linear-gradient(to right, hsl(32 98% 55%), hsl(25 95% 53%));
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.btn-submit-custom:hover {
  opacity: 0.9;
}
.btn-submit-custom:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-reset-custom {
  height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  background: transparent;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}
.btn-reset-custom:hover {
  background-color: #f1f5f9; /* hover:bg-accent */
}

@media(max-width: 600px) {
  .form-section {
    padding: 32px 16px;
  }
  .form-container {
    padding: 24px;
  }
}

