:root{
  --cg-bg:#f5f4f1;
  --cg-surface:#ffffff;
  --cg-text:#151515;
  --cg-muted:#686868;
  --cg-line:#deddd9;
  --cg-red:#d71920;
  --cg-red-dark:#b91319;
  --cg-max:1080px;
}
*{box-sizing:border-box}
html{background:var(--cg-bg);scroll-behavior:smooth}
body.cg-event-page{margin:0;background:var(--cg-bg);color:var(--cg-text);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,input{font:inherit}
button{cursor:pointer}
.cg-wrap{width:min(calc(100% - 40px),var(--cg-max));margin:0 auto}
.cg-carneiro-logo{display:block;width:auto;object-fit:contain}
.cg-cetus-logo{flex:0 0 auto}
.cg-cetus-logo img{display:block;width:auto;object-fit:contain}
.cg-shell{min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(circle at 88% 12%,rgba(215,25,32,.055),transparent 26%),var(--cg-bg)}
.cg-topbar{height:88px;display:flex;align-items:center;border-bottom:1px solid rgba(21,21,21,.08)}
.cg-topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:24px}
.cg-partner-lockup,.cg-flow-brandbar{display:flex;align-items:center;gap:16px;min-width:0}
.cg-carneiro-logo{display:block;width:auto;height:38px;max-width:142px;object-fit:contain;flex:0 0 auto}
.cg-partner-x{font-size:22px;font-weight:300;color:#9a9995}
.cg-cetus-logo{display:inline-flex;align-items:center;justify-content:center;height:56px;min-width:0;flex:0 0 auto}
.cg-cetus-logo img{display:block;width:auto;height:56px;max-width:none;object-fit:contain}
.cg-top-cta{border:1px solid #c8c7c3;background:transparent;color:var(--cg-text);border-radius:999px;padding:11px 18px;font-size:13px;font-weight:750;transition:.18s ease}
.cg-top-cta:hover{border-color:#9e9d99;background:#fff}
.cg-hero{flex:1;display:flex;align-items:center;padding:72px 0 96px}
.cg-hero-inner{max-width:900px;text-align:center}
.cg-eyebrow{margin:0 0 24px;color:var(--cg-red);font-size:12px;font-weight:800;letter-spacing:.18em}
.cg-hero h1{max-width:800px;margin:0 auto;font-size:clamp(46px,7vw,78px);line-height:.98;letter-spacing:-.052em;font-weight:850}
.cg-hero h1 span{color:var(--cg-red);font-weight:500}
.cg-subtitle{max-width:680px;margin:22px auto 0;font-size:clamp(18px,2.2vw,25px);line-height:1.38;letter-spacing:-.02em;color:#343434}
.cg-event-meta{display:flex;justify-content:center;max-width:620px;margin:42px auto 0;border-top:1px solid var(--cg-line);border-bottom:1px solid var(--cg-line)}
.cg-event-meta>div{flex:1;padding:18px 24px;text-align:left;border-right:1px solid var(--cg-line)}
.cg-event-meta>div:last-child{border-right:0}
.cg-event-meta small{display:block;margin-bottom:5px;font-size:10px;font-weight:800;letter-spacing:.14em;color:#8a8985}
.cg-event-meta strong{font-size:15px;letter-spacing:-.01em}

.cg-location-link{display:inline-flex;align-items:center;margin-top:12px;color:#5e5d59;font-size:12px;font-weight:750;text-decoration:none;border-bottom:1px solid #b9b7b1;padding-bottom:2px}
.cg-location-link:hover{color:var(--cg-red);border-color:var(--cg-red)}
.cg-turma-note{margin:14px auto 0;max-width:620px;font-size:12px;line-height:1.5;color:var(--cg-muted)}
.cg-description{max-width:640px;margin:26px auto 0;color:var(--cg-muted);font-size:15px;line-height:1.62}
.cg-primary{border:0;border-radius:12px;background:var(--cg-red);color:#fff;min-height:54px;padding:0 28px;font-size:15px;font-weight:800;box-shadow:0 10px 28px rgba(215,25,32,.18);transition:transform .18s ease,background .18s ease}
.cg-primary:hover{background:var(--cg-red-dark);transform:translateY(-1px)}
.cg-hero .cg-primary{margin-top:28px;min-width:230px}
.cg-registration-closed{width:min(100%,460px);margin:28px auto 0;padding:18px 22px;border:1px solid var(--cg-line);border-radius:12px;background:rgba(255,255,255,.7);text-align:center}
.cg-registration-closed strong{display:block;font-size:19px;line-height:1.3;letter-spacing:-.025em;color:var(--cg-text)}
.cg-registration-closed p{margin:7px 0 0;color:var(--cg-muted);font-size:14px;line-height:1.5}
.cg-quick-note{margin:12px 0 0;color:#888783;font-size:12px}
.cg-footer{border-top:1px solid rgba(21,21,21,.08);padding:20px 0;color:#777671;font-size:12px}
.cg-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}

.cg-flow-backdrop{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(12,12,12,.46);backdrop-filter:blur(8px);opacity:0;visibility:hidden;transition:.2s ease}
.cg-flow-backdrop.is-open{opacity:1;visibility:visible}
body.cg-flow-is-open{overflow:hidden}
.cg-flow{position:relative;width:min(100%,620px);max-height:min(760px,calc(100dvh - 48px));overflow:auto;background:#fff;border-radius:22px;padding:30px;box-shadow:0 30px 80px rgba(0,0,0,.2);transform:translateY(12px);transition:.2s ease}
.cg-flow-backdrop.is-open .cg-flow{transform:none}
.cg-flow-close{position:absolute;top:20px;right:20px;width:38px;height:38px;border:1px solid #e4e3df;border-radius:50%;background:#fff;color:#555;font-size:22px;line-height:1}
.cg-flow-brandbar{padding-right:54px;margin-bottom:30px}
.cg-flow-brandbar .cg-carneiro-logo{height:31px;max-width:118px}
.cg-flow-brandbar .cg-cetus-logo{height:54px;display:inline-flex;align-items:center}
.cg-flow-brandbar .cg-cetus-logo img{height:54px;width:auto;max-width:none;display:block;object-fit:contain}
.cg-progress{display:flex;align-items:center;gap:14px;margin:0 0 26px;color:#85847f;font-size:10px;font-weight:800;letter-spacing:.12em}
.cg-progress-track{height:3px;background:#ecebe8;flex:1;overflow:hidden;border-radius:10px}
.cg-progress-track i{display:block;width:33.333%;height:100%;background:var(--cg-red);transition:width .25s ease}
.cg-flow-heading{margin-bottom:28px}
.cg-flow-heading h2,.cg-success h2{margin:0;font-size:clamp(31px,5vw,42px);line-height:1.05;letter-spacing:-.045em}
.cg-flow-heading p{margin:8px 0 0;color:var(--cg-muted);font-size:14px}
.cg-step[hidden]{display:none!important}
.cg-step{animation:cgFade .2s ease}
@keyframes cgFade{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.cg-step-heading{display:flex;align-items:baseline;gap:13px;margin:0 0 22px}
.cg-step-number{color:var(--cg-red);font-size:11px;font-weight:900;letter-spacing:.1em}
.cg-step-heading h3{margin:0;font-size:24px;line-height:1.15;letter-spacing:-.025em}
.cg-field{margin-bottom:20px}
.cg-field label{display:block;margin-bottom:7px;font-size:12px;font-weight:800;color:#343434}
.cg-field input{width:100%;height:54px;border:1px solid #d9d8d4;border-radius:11px;background:#fff;color:#111;padding:0 15px;outline:0;font-size:16px;transition:border .16s ease,box-shadow .16s ease}
.cg-field input:focus{border-color:#a6a5a0;box-shadow:0 0 0 3px rgba(21,21,21,.05)}
.cg-field input.is-invalid{border-color:var(--cg-red)}
.cg-field-error{display:block;margin-top:6px;color:var(--cg-red);font-size:11px;line-height:1.35}.cg-field-error:empty{display:none}
.cg-fieldset{border:0;padding:0;margin:0}
.cg-choice-grid,.cg-intent-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cg-single-choice{grid-template-columns:1fr}
.cg-presence-summary{margin:0 0 14px;padding:14px 16px;border-radius:11px;background:#f6f5f2;color:#323232;font-size:14px;font-weight:800}.cg-presence-summary span{margin:0 6px;color:#999}.cg-confirmation-note{margin:0;color:#5f5f5f;font-size:14px;line-height:1.55}
.cg-choice{display:block;cursor:pointer}
.cg-choice input{position:absolute;opacity:0;pointer-events:none}
.cg-choice-card{display:flex;align-items:center;min-height:62px;padding:14px 16px;border:1px solid #d9d8d4;border-radius:11px;background:#fff;transition:.16s ease}
.cg-choice-card strong{font-size:14px;line-height:1.25}
.cg-choice:hover .cg-choice-card{border-color:#aaa9a4}
.cg-choice input:checked + .cg-choice-card{border-color:var(--cg-red);box-shadow:inset 0 0 0 1px var(--cg-red);background:#fffafa}
.cg-consent{display:flex;align-items:flex-start;gap:10px;margin-top:18px;color:#5d5c58;font-size:12px;line-height:1.45;cursor:pointer}
.cg-consent input{width:17px;height:17px;margin:1px 0 0;accent-color:var(--cg-red);flex:0 0 auto}
.cg-step-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:26px}
.cg-step-actions .cg-primary{min-width:150px}
.cg-back{min-height:50px;border:0;background:transparent;color:#686762;padding:0 14px;font-size:13px;font-weight:750}
.cg-errors{margin-bottom:20px;padding:13px 15px;border:1px solid #f0c8ca;border-radius:10px;background:#fff7f7;color:#721c20;font-size:12px}
.cg-errors ul{margin:7px 0 0;padding-left:18px}
.cg-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.cg-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.cg-success{padding:10px 0 4px;text-align:left}
.cg-flow-kicker{margin:0 0 12px;color:var(--cg-red);font-size:11px;font-weight:900;letter-spacing:.14em}
.cg-success-copy{margin:14px 0 0;color:var(--cg-muted);font-size:15px}

.cg-success-event{margin-top:22px;padding:16px 0;border-top:1px solid var(--cg-line);border-bottom:1px solid var(--cg-line);display:grid;gap:5px}
.cg-success-event strong{font-size:15px}
.cg-success-event span{font-size:14px;color:var(--cg-muted)}
.cg-success-event a{width:max-content;margin-top:5px;color:var(--cg-red);font-size:13px;font-weight:800;text-decoration:none}
.cg-invite-box{margin-top:30px;padding:22px;border:1px solid #e0dfdb;border-radius:14px;background:#faf9f7}
.cg-invite-box h3{margin:0;font-size:22px;letter-spacing:-.025em}
.cg-invite-box p{margin:8px 0 18px;color:var(--cg-muted);font-size:13px;line-height:1.5}
.cg-whatsapp{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 18px;border-radius:10px;background:#171717;color:#fff;text-decoration:none;font-size:13px;font-weight:800}
.cg-back-link{display:inline-block;margin-top:18px;color:#75746f;font-size:12px;text-decoration:none}

@media(max-width:720px){
  .cg-wrap{width:min(calc(100% - 32px),var(--cg-max))}
  .cg-topbar{height:72px}
  .cg-carneiro-logo{height:30px;max-width:114px}
  .cg-partner-lockup{gap:10px}
  .cg-partner-x{font-size:18px}
  .cg-cetus-logo{height:60px;display:inline-flex;align-items:center}
  .cg-cetus-logo img{height:60px;width:auto;max-width:none;display:block;object-fit:contain}
  .cg-top-cta{display:none}
  .cg-hero{align-items:flex-start;padding:58px 0 64px}
  .cg-hero-inner{text-align:left}
  .cg-eyebrow{margin-bottom:18px;font-size:10px}
  .cg-hero h1{margin:0;font-size:clamp(40px,11.5vw,56px);max-width:540px}
  .cg-subtitle{margin:16px 0 0;font-size:19px;max-width:540px;line-height:1.4}
  .cg-event-meta{margin:32px 0 0;max-width:none}
  .cg-event-meta>div{padding:15px 12px}
  .cg-event-meta>div:first-child{padding-left:0}
  .cg-event-meta>div:last-child{padding-right:0}
  .cg-event-meta small{font-size:8px}
  .cg-event-meta strong{font-size:13px}
  .cg-description{margin:20px 0 0;font-size:14px;line-height:1.55}
  .cg-location-link{display:flex;width:33.333%;margin:8px 0 0 auto;padding-left:12px;box-sizing:border-box;justify-content:flex-start;font-size:12px}
  .cg-success-event{margin-top:20px}

  .cg-hero .cg-primary{width:100%;margin-top:22px;min-height:56px}
  .cg-quick-note{text-align:center}
  .cg-footer{padding:16px 0}
  .cg-footer-inner{font-size:10px}

  .cg-flow-backdrop{padding:0;align-items:stretch;background:#fff;backdrop-filter:none}
  .cg-flow{width:100%;height:100dvh;max-height:none;border-radius:0;box-shadow:none;padding:20px 18px calc(18px + env(safe-area-inset-bottom));display:flex;flex-direction:column;overflow:auto}
  .cg-flow-close{top:16px;right:16px;width:36px;height:36px}
  .cg-flow-brandbar{min-height:38px;margin-bottom:24px;padding-right:52px;gap:10px}
  .cg-flow-brandbar .cg-carneiro-logo{height:28px;max-width:104px}
  .cg-flow-brandbar .cg-cetus-logo{height:56px}
  .cg-flow-brandbar .cg-cetus-logo img{height:56px;width:auto;max-width:none}
  .cg-progress{margin-bottom:22px}
  .cg-flow-heading{margin-bottom:22px}
  .cg-flow-heading h2,.cg-success h2{font-size:34px}
  .cg-flow-heading p{font-size:13px}
  .cg-step{flex:1}
  .cg-step-heading{margin-bottom:20px}
  .cg-step-heading h3{font-size:22px}

  .cg-step[data-step="1"] .cg-field{margin-bottom:18px}
  .cg-step[data-step="1"] .cg-field:last-of-type{margin-bottom:8px}
  .cg-step[data-step="1"] .cg-field label{margin-bottom:8px}
  .cg-choice-grid,.cg-intent-grid{grid-template-columns:1fr;gap:9px}
  .cg-choice-card{min-height:58px}
  .cg-step-actions{position:sticky;bottom:calc(-18px - env(safe-area-inset-bottom));margin:24px -18px 0;padding:14px 18px calc(14px + env(safe-area-inset-bottom));background:linear-gradient(to top,#fff 82%,rgba(255,255,255,.92),rgba(255,255,255,0));z-index:3}
  .cg-step-actions .cg-primary{flex:1;min-height:54px}
  .cg-back{min-width:82px}
  .cg-success{margin:auto 0;padding:12px 0 28px}
  .cg-invite-box{padding:20px;margin-top:26px}
  .cg-whatsapp{width:100%}
}
@media(max-width:390px){
  .cg-wrap{width:min(calc(100% - 28px),var(--cg-max))}
  .cg-hero{padding-top:46px}
  .cg-hero h1{font-size:39px}
  .cg-subtitle{font-size:18px}
  .cg-event-meta>div{padding:13px 9px}
  .cg-event-meta strong{font-size:12px}
  .cg-location-link{padding-left:9px;font-size:11px}
  .cg-footer-inner{flex-direction:column;align-items:flex-start;gap:4px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .cg-primary,.cg-flow,.cg-flow-backdrop,.cg-step{transition:none;animation:none}
}
