/* ===== Cortesia — bloco de cadastro + lightbox =====
   Feira Regional da Beleza — adicionado 2026-10-14
   Arquivo isolado: remover o <link>, o <script> e o bloco .ctsWrap desfaz tudo. */

/* ---------- bloco na secao de ingressos ---------- */
.ctsWrap{
  max-width:1180px;
  margin:36px auto 0;
  padding:0 20px;
}
.ctsPanel{
  position:relative;
  display:flex; align-items:center; justify-content:space-between;
  gap:28px; flex-wrap:wrap;
  padding:32px 36px;
  border-radius:22px;
  background:linear-gradient(135deg,#5a0e2a,#3a0418);
  border:1px solid rgba(227,185,107,.30);
  box-shadow:0 22px 54px rgba(58,4,24,.36);
  overflow:hidden;
}
.ctsPanel::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(460px 250px at 88% 12%, rgba(227,185,107,.20), transparent 66%),
    radial-gradient(360px 220px at 4% 96%, rgba(144,24,62,.40), transparent 68%);
  pointer-events:none;
}
.ctsTxt{ position:relative; flex:1 1 330px; min-width:0; }
.ctsTag{
  display:inline-flex; align-items:center; gap:8px;
  font-size:11px; font-weight:800; letter-spacing:.18em;
  color:#e3b96b; text-transform:uppercase;
  margin-bottom:10px;
}
.ctsTag::before{ content:""; width:18px; height:1px; background:#c9933a; }
.ctsPanel h3{
  margin:0 0 8px;
  font-size:clamp(19px,2.3vw,25px);
  line-height:1.22; font-weight:800; color:#fff;
}
.ctsPanel p{
  margin:0;
  font-size:14px; line-height:1.65; color:rgba(255,255,255,.70);
  max-width:54ch;
}
.ctsBtn{
  position:relative; flex:0 0 auto;
  display:inline-flex; align-items:center; gap:10px;
  padding:16px 30px;
  border:0; border-radius:10px; cursor:pointer;
  font-family:inherit; font-size:14px; font-weight:800; line-height:1;
  letter-spacing:.7px; text-transform:uppercase;
  color:#3a1020; text-decoration:none;
  background:linear-gradient(135deg,#e8c278,#c9933a);
  box-shadow:0 10px 26px rgba(201,147,58,.38);
  transition:transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease, filter .25s ease;
}
.ctsBtn:hover{ transform:translateY(-2px); box-shadow:0 16px 34px rgba(201,147,58,.50); filter:brightness(1.05); }
.ctsBtn:active{ transform:translateY(0); }
.ctsBtn:focus-visible{ outline:2px solid #e8c278; outline-offset:3px; }
.ctsBtn svg{ width:17px; height:17px; flex:0 0 auto; }

@media (max-width:640px){
  .ctsPanel{ padding:26px 22px; }
  .ctsBtn{ width:100%; justify-content:center; }
}

/* ---------- lightbox ---------- */
#ctsBox{
  position:fixed; inset:0; z-index:10002;
  display:flex; align-items:center; justify-content:center;
  padding:22px;
  opacity:0; visibility:hidden;
  transition:opacity .3s ease, visibility .3s ease;
  background:
    radial-gradient(900px 600px at 50% 28%, rgba(90,14,42,.52), transparent 70%),
    rgba(10,1,5,.90);
  -webkit-backdrop-filter:blur(12px) saturate(115%);
  backdrop-filter:blur(12px) saturate(115%);
}
#ctsBox.open{ opacity:1; visibility:visible; }

#ctsBox .ctsDialog{
  position:relative;
  width:min(680px,100%);
  height:min(86vh,880px);
  display:flex; flex-direction:column;
  background:#fff; border-radius:20px; overflow:hidden;
  box-shadow:0 40px 92px rgba(0,0,0,.55);
  opacity:0; transform:translateY(24px) scale(.96);
  transition:transform .45s cubic-bezier(.22,1,.36,1), opacity .35s ease;
}
#ctsBox.open .ctsDialog{ opacity:1; transform:none; }

.ctsHead{
  flex:0 0 auto;
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:15px 18px;
  background:linear-gradient(135deg,#5a0e2a,#3a0418);
  color:#fff;
}
.ctsHead b{ display:block; font-size:14px; font-weight:800; letter-spacing:.06em; }
.ctsHead small{ display:block; margin-top:2px; font-size:11px; font-weight:500; letter-spacing:.04em; opacity:.74; }
.ctsClose{
  flex:0 0 auto;
  width:34px; height:34px; border:0; border-radius:50%; cursor:pointer;
  background:rgba(255,255,255,.13); color:#fff;
  display:grid; place-items:center;
  transition:background .22s ease, transform .3s cubic-bezier(.22,1,.36,1);
}
.ctsClose:hover{ background:rgba(255,255,255,.24); transform:rotate(90deg); }

.ctsBody{ position:relative; flex:1 1 auto; background:#fff; }
.ctsBody iframe{ width:100%; height:100%; border:0; display:block; }

.ctsLoad{
  position:absolute; inset:0;
  display:grid; place-items:center;
  background:#fff; color:#8a6a76; font-size:13px; text-align:center;
}
.ctsLoad.gone{ display:none; }
.ctsSpin{
  width:30px; height:30px; margin:0 auto 10px;
  border-radius:50%;
  border:2.5px solid rgba(201,147,58,.25); border-top-color:#c9933a;
  animation:ctsSpin .8s linear infinite;
}
@keyframes ctsSpin{ to{ transform:rotate(360deg); } }

@media (max-width:640px){
  #ctsBox{ padding:0; }
  #ctsBox .ctsDialog{ width:100%; height:100%; border-radius:0; }
}

@media (prefers-reduced-motion: reduce){
  #ctsBox, #ctsBox .ctsDialog, .ctsBtn, .ctsClose{ transition:none !important; }
  .ctsSpin{ animation:none; }
}
