:root {
  --agro-green-980: #06160f;
  --agro-green-950: #0b2419;
  --agro-green-900: #123c2b;
  --agro-green-800: #1b4a33;
  --agro-green-600: #2f6b3f;
  --agro-gold-500: #f2b632;
  --agro-gold-600: #d99a25;
  --agro-cream-50: #f8f4e8;
  --agro-cream-100: #efe4cf;
  --agro-white: #ffffff;
  --agro-text: #1f241f;
  --agro-muted: #67766d;
  --agro-danger: #b42318;
  --font-title: "Sora", "Sora Fallback", system-ui, Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --shadow-card: 0 30px 90px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--agro-white);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 18% 12%, rgba(242, 182, 50, .2) 0 0, transparent 30%),
    radial-gradient(circle at 92% 72%, rgba(47, 107, 63, .44) 0 0, transparent 34%),
    linear-gradient(135deg, var(--agro-green-980) 0%, var(--agro-green-900) 50%, #07170f 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .075;
  background-image:
    linear-gradient(120deg, transparent 0 48%, rgba(255,255,255,.55) 49% 50%, transparent 51%),
    linear-gradient(60deg, transparent 0 48%, rgba(255,255,255,.45) 49% 50%, transparent 51%);
  background-size: 90px 90px;
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
}
a { color: inherit; }
button, input, select { font: inherit; }

.site-topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}
.brand-mark { display: inline-flex; align-items: center; text-decoration: none; }
.brand-mark img { width: min(260px, 58vw); height: auto; display: block; filter: drop-shadow(0 14px 24px rgba(0,0,0,.2)); }
.topbar-event {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: rgba(255,255,255,.74);
  font-size: 13px;
}
.topbar-event span {
  color: var(--agro-gold-500);
  font-family: var(--font-title);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
}
.topbar-event strong { font-weight: 800; color: #fff; }

.credential-page {
  min-height: calc(100vh - 100px);
  display: grid;
  align-items: center;
  position: relative;
  z-index: 1;
}
.credential-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
  gap: clamp(30px, 6vw, 82px);
  
}
/*.credential-copy { padding: 16px 0; }*/
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(242,182,50,.46);
  background: rgba(255,255,255,.055);
  color: var(--agro-gold-500);
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--agro-gold-500);
  box-shadow: 0 0 0 6px rgba(242,182,50,.12);
}
.credential-copy h1 {
  margin: 24px 0 18px;
  max-width: 690px;
  font-family: var(--font-title);
  font-size: clamp(40px, 5.8vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
/*.credential-copy p {*/
/*  max-width: 590px;*/
/*  margin: 0;*/
/*  color: rgba(255,255,255,.78);*/
/*  font-size: clamp(17px, 1.5vw, 21px);*/
/*  line-height: 1.62;*/
/*}*/
.event-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
/*.event-strip span {*/
/*  padding: 12px 14px;*/
/*  border-radius: 16px;*/
/*  background: rgba(255,255,255,.09);*/
/*  border: 1px solid rgba(255,255,255,.13);*/
/*  color: #fff;*/
/*  font-weight: 800;*/
/*  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);*/
/*}*/

.registration-card {
  background: linear-gradient(180deg, #fffaf0 0%, var(--agro-cream-50) 100%);
  color: var(--agro-text);
  border-radius: 34px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255,255,255,.72);
  position: relative;
  overflow: hidden;
}
.registration-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--agro-green-900), var(--agro-gold-500), var(--agro-green-600));
}
.card-header { margin-bottom: 22px; }
.card-kicker {
  color: var(--agro-gold-600);
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.card-header h2 {
  margin: 8px 0 8px;
  color: var(--agro-green-900);
  font-family: var(--font-title);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.card-header p {
  margin: 0;
  color: var(--agro-muted);
  font-size: 14px;
  line-height: 1.5;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.span-2 { grid-column: span 2; }
.form-group { display: grid; gap: 7px; min-width: 0; }
.form-group label {
  color: #1e3e2f;
  font-size: 13px;
  font-weight: 800;
}
.form-group label small { color: var(--agro-muted); font-weight: 700; }
.req { color: var(--agro-gold-600); }
.form-input,
.form-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(18,60,43,.18);
  border-radius: 15px;
  padding: 0 14px;
  background: #fff;
  color: var(--agro-text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.form-select { appearance: auto; }
.form-input:focus,
.form-select:focus {
  border-color: var(--agro-gold-500);
  box-shadow: 0 0 0 4px rgba(242,182,50,.18);
}
.form-input.error,
.form-select.error { border-color: var(--agro-danger); box-shadow: 0 0 0 4px rgba(180,35,24,.1); }
.form-section-title,
.conditional-title {
  margin-top: 6px;
  color: var(--agro-green-900);
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.conditional-fields {
  padding: 16px;
  border: 1px dashed rgba(18,60,43,.2);
  border-radius: 20px;
  background: rgba(18,60,43,.045);
}
.conditional-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.hidden { display: none !important; }
.lgpd-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border-radius: 16px;
  background: rgba(18,60,43,.06);
  color: #526159;
  font-size: 12.5px;
  line-height: 1.48;
}
.lgpd-check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--agro-green-900); }
.field-error {
  min-height: 0;
  color: var(--agro-danger);
  font-size: 12px;
  font-weight: 700;
  display: none;
}
.field-error.show { display: block; }
.form-msg {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  display: none;
  font-weight: 700;
  font-size: 13px;
}
.form-msg.error { display: block; background: #fff1f0; color: var(--agro-danger); border: 1px solid rgba(180,35,24,.18); }
.form-msg.success { display: block; background: #effaf2; color: #146c2e; border: 1px solid rgba(20,108,46,.2); }
.btn-submit {
  width: 100%;
  height: 56px;
  margin-top: 16px;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--agro-gold-500), var(--agro-gold-600));
  color: var(--agro-green-900);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 16px 28px rgba(217,154,37,.32); }
.btn-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; box-shadow: none; }
.spinner,
.spinner-sm {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(18,60,43,.22);
  border-top-color: var(--agro-green-900);
  animation: spin .8s linear infinite;
  display: none;
}
.btn-submit.loading .spinner { display: inline-block; }
.btn-submit.loading .btn-text { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

.agro-footer { position: relative; z-index: 1; padding: 0 16px 26px; }
.agro-footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  color: rgba(255,255,255,.6);
  font-size: 13px;
}
.agro-footer strong { color: var(--agro-gold-500); font-family: var(--font-title); text-transform: uppercase; letter-spacing: .08em; }
.footer-contact { color: rgba(255,255,255,.78); }

.confirm-page {
  min-height: calc(100vh - 100px);
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}
.confirm-hero { text-align: center; margin-bottom: 28px; }
.confirm-check {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: var(--agro-green-900);
  background: linear-gradient(135deg, var(--agro-gold-500), #ffe08a);
  font-size: 38px;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(0,0,0,.24);
}
.confirm-title {
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.confirm-subtitle { margin: 0; color: rgba(255,255,255,.74); font-size: 16px; }
.confirm-participant { margin-top: 10px; color: var(--agro-gold-500); font-family: var(--font-title); font-weight: 900; font-size: 22px; }
.confirm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.ticket-card {
  overflow: hidden;
  border-radius: 30px;
  background: #fffaf0;
  color: var(--agro-text);
  box-shadow: var(--shadow-card);
}
.ticket-top { padding: 22px 26px; background: linear-gradient(135deg, var(--agro-green-900), var(--agro-green-600)); color: #fff; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.ticket-top img { width: 190px; max-width: 52%; }
.ticket-meta { text-align: right; color: rgba(255,255,255,.82); font-size: 13px; font-weight: 800; }
.ticket-body { padding: 26px; display: grid; grid-template-columns: 1fr 170px; gap: 24px; align-items: center; }
.ticket-label { color: var(--agro-muted); font-family: var(--font-title); font-weight: 900; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.ticket-name { margin: 8px 0 18px; color: var(--agro-green-900); font-family: var(--font-title); font-size: clamp(25px, 4vw, 40px); line-height: 1.05; font-weight: 900; }
.ticket-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ticket-field strong { display: block; font-size: 11px; color: var(--agro-muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 5px; }
.ticket-field span { font-weight: 800; color: var(--agro-text); }
.ticket-qr-box { background: #fff; border: 1px solid rgba(18,60,43,.14); border-radius: 22px; padding: 14px; display: grid; place-items: center; box-shadow: 0 18px 34px rgba(18,60,43,.1); }
.ticket-qr-box canvas,
.ticket-qr-box img { width: 140px !important; height: 140px !important; }
.ticket-footer { padding: 16px 26px; background: var(--agro-green-900); color: rgba(255,255,255,.7); display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.confirm-panel { display: grid; gap: 16px; }
.panel-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.13);
  backdrop-filter: blur(10px);
}
.panel-card h3 { margin: 0 0 12px; font-family: var(--font-title); color: #fff; }
.panel-list { display: grid; gap: 9px; color: rgba(255,255,255,.74); font-size: 14px; }
.panel-list strong { color: var(--agro-gold-500); }
.status-badge { display: none; align-items: center; gap: 8px; margin-top: 12px; padding: 11px 12px; border-radius: 14px; font-size: 13px; font-weight: 700; }
.status-badge.loading { display: flex; background: rgba(255,255,255,.1); color: #fff; }
.status-badge.success { display: flex; background: rgba(46,125,50,.22); color: #d8ffdf; }
.status-badge.error { display: flex; background: rgba(180,35,24,.2); color: #ffe2df; }
.status-badge.notice { display: flex; background: rgba(242,182,50,.16); color: #fff3c4; }
.status-badge .spinner-sm { display: inline-block; border-color: rgba(255,255,255,.26); border-top-color: var(--agro-gold-500); }
.panel-actions { display: grid; gap: 10px; }
.action-button {
  min-height: 48px;
  border: 0;
  border-radius: 15px;
  padding: 0 16px;
  cursor: pointer;
  font-family: var(--font-title);
  font-weight: 900;
  letter-spacing: .04em;
}
.action-primary { background: linear-gradient(135deg, var(--agro-gold-500), var(--agro-gold-600)); color: var(--agro-green-900); }
.action-secondary { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.16); }



/* Hero redesenhado para o credenciamento AgroCapital */
/*.hero-redesign {*/
/*  padding: 10px 0;*/
/*}*/
.hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4.8vw, 54px);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(18,60,43,.96), rgba(6,22,15,.9)),
    radial-gradient(circle at 14% 18%, rgba(242,182,50,.2), transparent 34%);
  border: 1px solid rgba(242,182,50,.24);
  box-shadow: 0 32px 90px rgba(0,0,0,.34);
  isolation: isolate;
}
.hero-card::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -150px;
  top: -130px;
  border-radius: 999px;
  background: rgba(242,182,50,.14);
  z-index: -1;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -140px auto;
  width: 420px;
  height: 260px;
  border-radius: 100%;
  background: linear-gradient(135deg, rgba(47,107,63,.55), rgba(242,182,50,.08));
  filter: blur(2px);
  z-index: -1;
}
.icon-svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.hero-redesign .eyebrow {
  background: rgba(242,182,50,.1);
  border-color: rgba(242,182,50,.5);
  color: var(--agro-gold-500);
}
.hero-redesign .eyebrow::before { display: none; }
.hero-redesign .eyebrow .icon-svg { width: 17px; height: 17px; }
.hero-redesign h1 {
  display: grid;
  gap: 2px;
  margin: 26px 0 16px;
  max-width: 760px;
  font-family: var(--font-title);
  line-height: .92;
  letter-spacing: -.06em;
  text-transform: uppercase;
}
.hero-redesign h1 span {
  font-size: clamp(44px, 6.1vw, 50px);
  color: var(--agro-white);
}
.hero-redesign h1 strong {
  width: max-content;
  max-width: 100%;
  padding: 3px 16px 7px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--agro-gold-500), #ffd94f);
  color: var(--agro-green-900);
  font-size: clamp(42px, 6vw, 82px);
  box-shadow: 0 16px 28px rgba(0,0,0,.2);
}
.hero-slogan {
  margin: 0;
  max-width: 660px;
  color: #fff;
  font-size: clamp(25px, 3.3vw, 36px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -.035em;
}
.hero-slogan em {
  /*display: block;*/
  color: var(--agro-gold-500);
  font-style: normal;
  font-weight: 900;
}
.hero-description {
  max-width: 570px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(16px, 1.5vw, 16px);
  line-height: 1.62;
}
.hero-redesign .event-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.event-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
.event-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--agro-gold-500);
  background: rgba(242,182,50,.13);
  border: 1px solid rgba(242,182,50,.22);
}
.event-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.event-text small {
  color: rgba(255,255,255,.58);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.event-text strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin-top: 22px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(242,182,50,.12);
  color: #fff2bf;
  font-weight: 800;
  font-size: 13px;
}
.hero-note .icon-svg { color: var(--agro-gold-500); }

@media (max-width: 980px) {
  .credential-shell,
  .confirm-layout { grid-template-columns: 1fr; }
  .credential-copy { text-align: center; }
  .credential-copy p { margin-left: auto; margin-right: auto; }
  .hero-redesign h1 strong { margin-left: auto; margin-right: auto; }
  .hero-redesign .event-strip { max-width: 720px; margin-left: auto; margin-right: auto; }
  .hero-note { margin-left: auto; margin-right: auto; }
}
@media (max-width: 680px) {
  .hero-card { border-radius: 28px; padding: 26px 20px; }
  .hero-redesign .event-strip { grid-template-columns: 1fr; }
  .event-item { text-align: left; }
  .hero-note { align-items: flex-start; border-radius: 18px; }
  .site-topbar { align-items: flex-start; flex-direction: column; }
  .topbar-event { align-items: flex-start; }
  .credential-shell { width: min(100% - 24px, 1180px); padding-top: 4px; }
  .registration-card { border-radius: 26px; }
  .form-grid,
  .conditional-grid,
  .ticket-body,
  .ticket-fields { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .ticket-top, .ticket-footer { flex-direction: column; align-items: flex-start; }
  .ticket-meta { text-align: left; }
  .ticket-top img { max-width: 100%; width: 210px; }
}

/* Ajuste AgroCapital: disposição dos ícones do resumo do evento */
.hero-redesign .event-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 560px;
  margin-top: 28px;
}

.hero-redesign .event-strip .event-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 26px rgba(0, 0, 0, .12);
}

.hero-redesign .event-strip .event-item:nth-child(3) {
  grid-column: 1 / -1;
}

.hero-redesign .event-strip .event-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--agro-gold-500);
  background: rgba(242, 182, 50, .13);
  border: 1px solid rgba(242, 182, 50, .26);
}

.hero-redesign .event-strip .event-icon .icon-svg {
  width: 19px;
  height: 19px;
}

.hero-redesign .event-strip .event-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hero-redesign .event-strip .event-text small {
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.hero-redesign .event-strip .event-text strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 680px) {
  .hero-redesign .event-strip {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .hero-redesign .event-strip .event-item:nth-child(3) {
    grid-column: auto;
  }
}

.lgpd-check a {
  color: var(--agro-green-900, #123c2b);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lgpd-check a:hover {
  color: var(--agro-gold-600, #d99a25);
}