:root {
  --cream: #f6ead2;
  --cream-deep: #ead9b6;
  --paper: #f8eedc;
  --orange: #c45c26;
  --orange-hot: #d4682a;
  --wine: #6b1c28;
  --wine-bright: #8b1e2d;
  --gold: #e8b84a;
  --gold-soft: #f5c84c;
  --ge-blue: #076899;
  --ink: #2c1a12;
  --ink-soft: #5a3d2e;
  --leaf: #4a6b3a;
  --shadow: 0 22px 50px rgba(44, 26, 18, 0.16);
  --shadow-soft: 0 10px 32px rgba(44, 26, 18, 0.1);
  --glass: rgba(255, 248, 234, 0.72);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #c45c26 #ead9b6;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: Outfit, system-ui, sans-serif;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #e8b84a;
  color: #2c1a12;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #ead9b6;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c45c26, #6b1c28);
  border-radius: 99px;
  border: 3px solid #ead9b6;
}

::-webkit-scrollbar-thumb:hover {
  background: #8b1e2d;
}

::-webkit-scrollbar-corner {
  background: #ead9b6;
}

[hidden] {
  display: none !important;
}

.defs {
  position: absolute;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.12;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* ========== HERO ========== */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(900px 520px at 50% 18%, rgba(255, 246, 216, 0.55), transparent 62%),
    linear-gradient(180deg, rgba(251, 243, 227, 0.52) 0%, rgba(248, 238, 220, 0.82) 52%, rgba(241, 221, 184, 0.92) 100%);
}

.poster-ref {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.3;
  filter: saturate(0.9) contrast(1.08) brightness(1.02);
  z-index: 1;
}

.hero {
  position: relative;
  min-height: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(8px, 1.4vh, 18px);
  padding: max(14px, env(safe-area-inset-top)) 16px clamp(20px, 3vh, 36px);
  background:
    radial-gradient(1200px 600px at 50% -10%, #fff6d8 0%, transparent 55%),
    radial-gradient(700px 400px at 80% 100%, rgba(107, 28, 40, 0.12), transparent 50%),
    linear-gradient(180deg, #fbf3e3 0%, #f1ddb8 100%);
}

.bokeh {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.bokeh span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 170, 0.7), rgba(232, 184, 74, 0));
  animation: float 9s ease-in-out infinite;
}

.bokeh span:nth-child(1) { width: 180px; height: 180px; left: 8%; top: 10%; }
.bokeh span:nth-child(2) { width: 90px; height: 90px; left: 18%; top: 28%; animation-delay: -2s; }
.bokeh span:nth-child(3) { width: 140px; height: 140px; right: 10%; top: 8%; animation-delay: -4s; }
.bokeh span:nth-child(4) { width: 70px; height: 70px; right: 22%; top: 32%; animation-delay: -1s; }
.bokeh span:nth-child(5) { width: 110px; height: 110px; left: 46%; top: 6%; animation-delay: -6s; }

@keyframes float {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-16px); opacity: 1; }
}

.hero-top {
  position: relative;
  z-index: 4;
  text-align: center;
  margin: 0;
  padding: 0;
  width: min(720px, 100%);
}

.brand-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 3vw, 22px);
  margin: 0 0 clamp(8px, 1.4vh, 14px);
}

.logo-ge {
  width: clamp(56px, 9vw, 76px);
  height: clamp(56px, 9vw, 76px);
  object-fit: contain;
  border-radius: 50%;
  background: var(--ge-blue);
  box-shadow: 0 10px 28px rgba(44, 26, 18, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  border: 2px solid rgba(232, 184, 74, 0.65);
}

.logo-pascom {
  height: clamp(84px, 14vw, 112px);
  width: auto;
  max-width: min(38vw, 140px);
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(44, 26, 18, 0.2));
}

.form-logos {
  margin: 0 0 8px;
}

.form-logos .logo-ge {
  width: clamp(48px, 8vw, 58px);
  height: clamp(48px, 8vw, 58px);
}

.form-logos .logo-pascom {
  height: clamp(72px, 12vw, 92px);
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.footer-logos .logo-ge {
  width: 58px;
  height: 58px;
}

.footer-logos .logo-pascom {
  height: 92px;
}

.org-line,
.parish-line {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.org-line {
  display: inline-block;
  font-size: clamp(0.64rem, 1.8vw, 0.78rem);
  font-weight: 600;
  color: var(--orange);
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.82);
  border: 1px solid rgba(232, 184, 74, 0.45);
  max-width: min(94vw, 520px);
  line-height: 1.4;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 16px rgba(44, 26, 18, 0.06);
}

.parish-line {
  margin-top: 6px;
  font-size: clamp(0.62rem, 1.7vw, 0.72rem);
  color: var(--ink-soft);
  padding: 0 8px;
}

.hero-center {
  position: relative;
  z-index: 4;
  text-align: center;
  width: min(680px, 100%);
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.2vh, 14px);
  padding: 0;
}

.hero-center > * {
  animation: heroIn 0.75s var(--ease) both;
}

.hero-center > *:nth-child(1) { animation-delay: 0.04s; }
.hero-center > *:nth-child(2) { animation-delay: 0.1s; }
.hero-center > *:nth-child(3) { animation-delay: 0.16s; }
.hero-center > *:nth-child(4) { animation-delay: 0.22s; }
.hero-center > *:nth-child(5) { animation-delay: 0.28s; }
.hero-center > *:nth-child(6) { animation-delay: 0.34s; }
.hero-center > *:nth-child(7) { animation-delay: 0.4s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.dnj-mark {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 10px 22px 6px;
  border-radius: 18px;
  background: rgba(255, 248, 234, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(232, 184, 74, 0.32);
  box-shadow: 0 8px 32px rgba(44, 26, 18, 0.06);
}

.dnj-letters {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.8rem, 11vmin, 5.4rem);
  line-height: 0.82;
  color: var(--orange);
  text-shadow: 0 2px 24px rgba(196, 92, 38, 0.25), 0 0 48px rgba(255, 236, 170, 0.5);
}

.dnj-year {
  display: grid;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.35rem, 4.2vw, 1.9rem);
  line-height: 0.9;
  color: var(--orange);
  padding-top: 8px;
}

.dnj-flare {
  position: absolute;
  right: 14%;
  top: 16%;
  width: clamp(48px, 8vw, 72px);
  height: clamp(48px, 8vw, 72px);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255, 236, 170, 0.7) 30%, transparent 70%);
  filter: blur(2px);
  animation: pulse 3.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

.verse {
  margin: 0;
  color: var(--ink);
}

.verse-plain {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: clamp(0.95rem, 2.8vw, 1.35rem);
}

.verse-script {
  display: block;
  margin-top: -4px;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2rem, 6.5vmin, 3.4rem);
  color: var(--orange);
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(196, 92, 38, 0.15));
}

.citation {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(260px, 72%);
  margin: 0;
  opacity: 0.75;
}

.hero-divider::before,
.hero-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 92, 38, 0.4), transparent);
}

.hero-divider span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(232, 184, 74, 0.65);
}

.meta {
  width: min(100%, 440px);
  margin: 0 auto;
  padding: clamp(14px, 2.5vw, 18px) clamp(16px, 3vw, 22px) clamp(12px, 2vw, 16px);
  border-radius: 20px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 184, 74, 0.42);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.meta-date {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  letter-spacing: 0.12em;
  color: var(--orange);
}

.meta-time {
  margin: 0 0 4px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  font-weight: 600;
  color: var(--wine);
}

.meta-place {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 2px 0 8px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
}

.meta-place svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.btn-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  cursor: pointer;
  min-width: min(100%, 300px);
  padding: 15px 26px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--orange-hot) 0%, var(--orange) 48%, #a8481e 100%);
  color: #fff8ea;
  font-family: Outfit, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  box-shadow: 0 10px 32px rgba(196, 92, 38, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.btn-cta-fill {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--wine-bright), var(--wine));
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(107, 28, 40, 0.28);
}

.btn-cta:hover .btn-cta-fill {
  transform: translateY(0);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: min(100%, 320px);
  margin-top: 4px;
}

.hero-actions .btn-cta {
  width: 100%;
  min-width: 0;
}

.btn-link {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: Outfit, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(196, 92, 38, 0.35);
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

.btn-link:hover {
  color: var(--orange);
  text-decoration-color: var(--orange);
}

.cta-hint {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.site-footer {
  position: relative;
  background:
    radial-gradient(900px 280px at 50% 0%, rgba(255, 236, 170, 0.55), transparent 58%),
    linear-gradient(180deg, #fbf3e3 0%, #ead9b6 100%);
  color: var(--ink);
  border-top: 3px solid var(--gold);
}

.footer-wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px) 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.3fr;
  gap: clamp(16px, 3vw, 28px) clamp(16px, 3vw, 32px);
  align-items: start;
}

.footer-org {
  margin: 0 0 6px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--orange);
}

.footer-kicker {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 0.82;
  letter-spacing: 0.06em;
  color: var(--orange);
}

.footer-kicker span {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.52em;
  vertical-align: super;
}

.footer-verse-plain {
  margin: 10px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}

.footer-verse-script {
  margin: -4px 0 0;
  font-family: "Great Vibes", cursive;
  font-size: 2.4rem;
  color: var(--orange);
  line-height: 1;
}

.footer-cite {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--ink-soft);
}

.footer-meta {
  padding-top: 18px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer-meta-short {
  display: none;
}

.footer-meta p,
.site-footer p {
  margin: 0;
}

.footer-meta strong {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  font-weight: 400;
  color: var(--orange);
}

.footer-contacts-title {
  margin: 0 0 12px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  color: var(--wine);
}

.footer-contacts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.footer-contacts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 248, 234, 0.7);
  border: 1px solid rgba(196, 92, 38, 0.12);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}

.footer-contacts li:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 184, 74, 0.45);
  box-shadow: 0 8px 20px rgba(44, 26, 18, 0.08);
}

.footer-contacts span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.footer-contacts a {
  color: var(--wine);
  text-decoration: none;
  font-weight: 700;
}

.footer-contacts a:hover {
  color: var(--orange);
}

.footer-bar {
  margin: 0;
  padding: 12px 20px;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, var(--orange-hot), var(--orange));
  color: #f8eedc;
}

.leaf {
  position: absolute;
  width: min(34vw, 220px);
  opacity: 0.85;
  filter: blur(0.4px);
}

.leaf-l { left: -4%; bottom: -4%; animation: sway 8s ease-in-out infinite; }
.leaf-r { right: -6%; bottom: 8%; width: min(26vw, 170px); animation: sway 9s ease-in-out infinite reverse; }

@keyframes sway {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(5deg); }
}

.odre {
  position: absolute;
  right: -2%;
  bottom: -2%;
  width: min(46vw, 340px);
  filter: drop-shadow(0 18px 20px rgba(44, 26, 18, 0.18));
}

.wine-stream {
  stroke-dasharray: 140;
  animation: pour 3.4s ease-in-out infinite;
}

@keyframes pour {
  0% { stroke-dashoffset: 140; opacity: 0.2; }
  35% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.9; }
}

.drop {
  animation: drip 2.8s ease-in-out infinite;
}

.d2 { animation-delay: 0.4s; }
.d3 { animation-delay: 0.9s; }

@keyframes drip {
  0%, 100% { transform: translate(0, 0); opacity: 0.2; }
  50% { transform: translate(-4px, 8px); opacity: 1; }
}

.crowd {
  position: absolute;
  left: 50%;
  bottom: 7%;
  width: min(90vw, 680px);
  transform: translateX(-50%);
}

/* ========== FORM ========== */
.form-view {
  position: relative;
  min-height: 100svh;
  padding: clamp(16px, 3vw, 32px) clamp(12px, 3vw, 20px) clamp(32px, 5vw, 48px);
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(245, 200, 76, 0.18), transparent 50%),
    linear-gradient(180deg, #fbf3e3, #efd7b0);
}

.form-atmosphere span {
  position: absolute;
  pointer-events: none;
}

.float-leaf,
.float-grape {
  image-rendering: pixelated;
  animation: drift 14s linear infinite;
}

.float-leaf {
  width: 16px;
  height: 10px;
  background: var(--leaf);
  opacity: 0.45;
  box-shadow: 4px 2px 0 #3d5a32;
}

.float-grape {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: var(--wine);
  opacity: 0.4;
  box-shadow: 6px 4px 0 #8b1e2d, 3px 8px 0 #5a1520;
}

.l1 { left: 8%; top: 20%; }
.l2 { right: 10%; top: 40%; animation-duration: 18s; }
.l3 { left: 18%; bottom: 16%; animation-duration: 16s; }
.g1 { right: 20%; top: 18%; animation-duration: 12s; }
.g2 { left: 70%; bottom: 24%; animation-duration: 20s; }

@keyframes drift {
  0% { transform: translateY(20px) rotate(0deg); }
  100% { transform: translateY(-70vh) rotate(28deg); }
}

.form-shell {
  position: relative;
  z-index: 3;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) clamp(16px, 3vw, 28px) clamp(22px, 3vw, 32px);
  border-radius: 28px;
  background: rgba(255, 248, 234, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow), 0 0 0 1px rgba(232, 184, 74, 0.2);
  border: 1px solid rgba(232, 184, 74, 0.35);
  border-top: 4px solid var(--gold);
}

.btn-back,
.btn-skip,
.btn-ghost,
.ticket-close {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: Outfit, sans-serif;
}

.btn-back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(196, 92, 38, 0.1);
  color: var(--orange);
  font-size: 1.1rem;
}

.progress-wrap {
  margin: 12px 0 22px;
}

.progress-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.steps li {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.5);
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.steps li.is-active {
  color: #fff8ea;
  font-weight: 700;
  background: linear-gradient(135deg, var(--wine-bright), var(--wine));
  border-color: rgba(232, 184, 74, 0.35);
  box-shadow: 0 4px 16px rgba(107, 28, 40, 0.25);
}

.steps li.is-done {
  color: var(--leaf);
}

.step-panel {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  animation: rise 0.55s var(--ease);
}

.step-panel > legend {
  padding: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  color: var(--ink);
}

.step-intro {
  margin: 6px 0 22px;
  color: var(--ink-soft);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(107, 28, 40, 0.1);
  border-bottom: 2px solid rgba(107, 28, 40, 0.18);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  padding: 13px 14px;
  font: 400 1rem Outfit, sans-serif;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.field textarea {
  resize: vertical;
  min-height: 84px;
}

.field input:read-only {
  opacity: 0.85;
  cursor: default;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  border-bottom-color: var(--orange);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 28px rgba(196, 92, 38, 0.12);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.choice {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.choice legend {
  width: 100%;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.choice label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.7);
  border: 1px solid rgba(196, 92, 38, 0.12);
}

.terms {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0 18px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.minor-form {
  margin: 4px 0 18px;
  padding: 16px 16px 4px;
  border-radius: 18px;
  background: rgba(196, 92, 38, 0.08);
  border: 1px solid rgba(196, 92, 38, 0.22);
}

.minor-form h3 {
  margin: 0 0 8px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  font-size: 1.35rem;
  color: var(--orange);
}

.minor-form > p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.form-error {
  color: var(--wine);
  font-weight: 600;
  margin: 0 0 12px;
}

.form-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.btn-ghost,
.btn-next {
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 650;
}

.btn-next {
  border: 0;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--ink);
  cursor: pointer;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(232, 184, 74, 0.35);
}

.btn-ghost {
  color: var(--orange);
  border: 1px solid rgba(196, 92, 38, 0.25);
  background: rgba(255, 248, 234, 0.55);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-ghost:hover {
  background: rgba(232, 184, 74, 0.22);
  transform: translateY(-1px);
}

.btn-next:hover {
  filter: brightness(1.05);
}

.btn-submit {
  min-width: min(100%, 280px);
}

/* ========== CONFIRM ========== */
.confirm {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 40px) clamp(14px, 3vw, 20px);
  text-align: center;
  background:
    radial-gradient(700px 420px at 50% 0%, #fff4c8, transparent 60%),
    linear-gradient(180deg, #f8eedc, #efd3a6);
}

.confirm-inner {
  width: min(560px, 100%);
  padding: clamp(22px, 4vw, 36px) clamp(16px, 3vw, 28px);
  border-radius: 28px;
  background: rgba(255, 248, 234, 0.92);
  border: 1px solid rgba(232, 184, 74, 0.4);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow);
  animation: rise 0.6s var(--ease);
}

.confirm-kicker {
  letter-spacing: 0.28em;
  color: var(--orange);
  font-weight: 700;
}

.confirm h1 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  letter-spacing: 0.04em;
  color: var(--orange);
}

.confirm-lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.confirm-verse .verse-script {
  font-size: clamp(2.8rem, 10vw, 4.4rem);
}

.confirm-meta {
  margin: 18px 0 24px;
  line-height: 1.6;
}

.confirm-org {
  margin-top: 10px;
  font-weight: 700;
  color: var(--orange);
}

.code-label {
  margin-bottom: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.code {
  margin: 0 0 24px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.12em;
  color: var(--wine);
}

.confirm-actions {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.confirm-actions .btn-ghost {
  min-width: min(100%, 280px);
}

.minor-card {
  margin: 8px 0 22px;
  padding: 18px 16px 16px;
  text-align: left;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 248, 234, 0.9), rgba(196, 92, 38, 0.06));
  border: 1px solid rgba(196, 92, 38, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.minor-kicker {
  margin: 0 0 4px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
}

.minor-card h2 {
  margin: 0 0 8px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.7rem;
  color: var(--wine);
}

.minor-card h3 {
  margin: 16px 0 8px;
  font-size: 0.92rem;
}

.minor-card p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.minor-actions {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.minor-actions .btn-ghost,
.minor-actions .btn-cta {
  text-align: center;
  text-decoration: none;
}

.minor-how {
  margin: 10px 0 0 !important;
  font-size: 0.8rem !important;
}

.gov-steps {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
}

.gov-steps a {
  color: var(--wine);
  font-weight: 700;
}

.termo-doc {
  display: none;
}

/* ========== TICKET ========== */
dialog.ticket:not([open]) {
  display: none;
}

dialog.ticket[open] {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  max-height: calc(100svh - 24px);
  margin: auto;
  border: 0;
  border-radius: 24px;
  padding: 0;
  text-align: center;
  background: #fff8ea;
  box-shadow: 0 24px 60px rgba(44, 26, 18, 0.22);
  overflow: hidden;
}

.ticket::backdrop {
  background: rgba(44, 26, 18, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ticket-card {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-radius: 24px 24px 0 0;
}

.ticket-head {
  position: relative;
  padding: 16px 18px 20px;
  background:
    radial-gradient(420px 120px at 50% 0%, rgba(255, 236, 170, 0.35), transparent 70%),
    linear-gradient(180deg, var(--wine-bright), var(--wine));
  color: #f8eedc;
}

.ticket-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 10px;
  background: radial-gradient(circle at 7px 5px, #fff8ea 5px, transparent 5px);
  background-size: 14px 10px;
  background-position: center bottom;
}

.ticket-logos {
  margin: 0 0 10px;
}

.ticket-logos .logo-ge {
  width: 46px;
  height: 46px;
  border-color: rgba(232, 184, 74, 0.85);
}

.ticket-logos .logo-pascom {
  height: 60px;
}

.ticket-event {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 8vw, 2.6rem);
  letter-spacing: 0.08em;
  line-height: 0.85;
  color: #fff8ea;
}

.ticket-org {
  margin: 0 0 6px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--gold);
}

.ticket-event span {
  color: var(--gold);
}

.ticket-verse {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #f5c84c;
}

.ticket-body {
  padding: 6px 18px 8px;
}

.ticket h2 {
  margin: 8px 0 2px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  line-height: 1.2;
}

.ticket-code {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.25rem, 5vw, 1.6rem);
  letter-spacing: 0.1em;
  color: var(--wine);
  margin: 0 0 4px;
}

.ticket-qr-wrap {
  display: inline-flex;
  margin: 6px 0 2px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid var(--gold);
}

.ticket-qr-wrap img {
  display: block;
  width: min(148px, 36vw);
  height: auto;
  aspect-ratio: 1;
}

.ticket-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  text-align: left;
  line-height: 1.45;
}

.ticket-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(107, 28, 40, 0.14);
  font-size: 0.88rem;
}

.ticket-list li:last-child {
  border-bottom: 0;
}

.ticket-list li span {
  text-align: right;
  word-break: break-word;
  max-width: 58%;
}

.ticket-list strong {
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ticket-foot {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.ticket-parish {
  margin: 0;
  padding: 10px 16px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--wine);
  background: rgba(196, 92, 38, 0.06);
}

.ticket > .ticket-close {
  position: absolute;
  right: 12px;
  top: 8px;
  z-index: 3;
  font-size: 1.6rem;
  line-height: 1;
  color: #fff8ea;
}

.ticket-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  flex-shrink: 0;
  padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  background: #fff8ea;
  border-top: 1px solid rgba(196, 92, 38, 0.1);
}

#lookup {
  padding: 28px 22px 22px;
  overflow-y: auto;
  border: 1px solid rgba(232, 184, 74, 0.35);
  border-top: 4px solid var(--gold);
}

#lookup .ticket-close {
  color: var(--ink-soft);
}

#lookup .ticket-event {
  font-family: Outfit, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
}

.btn-cta:focus-visible,
.btn-next:focus-visible,
.btn-ghost:focus-visible,
.btn-link:focus-visible,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.btn-cta:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 20;
  background: var(--wine);
  color: #fff8ea;
  padding: 8px 12px;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.countdown {
  width: 100%;
  margin: 10px auto 0;
  padding: 12px 0 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(196, 92, 38, 0.12);
  box-shadow: none;
}

.countdown-head {
  margin: 0 0 8px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
  font-weight: 700;
}

.countdown-live {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.count-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(58px, 10vw, 70px);
  padding: 6px 2px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf6, #f3e0c0);
  border: 1px solid rgba(196, 92, 38, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.count-cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}

.count-cell b {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.35rem, 4.2vw, 1.85rem);
  line-height: 1;
  color: var(--orange);
  letter-spacing: 0.04em;
}

.count-cell small {
  margin-top: 2px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.review {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(196, 92, 38, 0.08);
  text-align: left;
}
.review p { margin: 0 0 6px; font-size: 0.92rem; }
.review strong { color: var(--ink-soft); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; margin-right: 8px; }

button.code {
  display: block;
  width: 100%;
  border: 2px dashed rgba(107, 28, 40, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(248, 238, 220, 0.8));
  cursor: pointer;
  margin: 0 0 8px;
  padding: 12px 16px;
  border-radius: 16px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.12em;
  color: var(--wine);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

button.code:hover {
  border-color: var(--gold);
  background: rgba(255, 248, 234, 0.95);
  transform: scale(1.01);
}
.copied {
  min-height: 1.2em;
  margin: 0 0 16px;
  color: var(--leaf);
  font-weight: 700;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }
  html, body {
    background: #f6ead2 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body:not(.print-termo) > *:not(#ticket) {
    display: none !important;
  }
  body:not(.print-termo) #ticket {
    display: block !important;
    position: static !important;
    inset: auto;
    width: min(420px, 100%);
    max-height: none;
    margin: 8mm auto;
    padding: 0;
    border: 2px solid #6b1c28;
    border-radius: 18px;
    box-shadow: none;
    background: #fff8ea;
    overflow: hidden;
  }
  #ticket::backdrop {
    display: none;
  }
  .ticket-close,
  .ticket-actions {
    display: none !important;
  }
  .ticket-card {
    border-radius: 0;
    overflow: visible;
  }
  body.print-termo > *:not(#termo) {
    display: none !important;
  }
  body.print-termo #termo {
    display: block !important;
    width: 100%;
    margin: 0;
    background: #fff8ea;
    color: #2c1a12;
    border: 2px solid #6b1c28;
    overflow: hidden;
  }
  .termo-head {
    padding: 18px 22px 14px;
    text-align: center;
    background: linear-gradient(180deg, #8b1e2d, #6b1c28);
    color: #f8eedc;
  }
  .termo-org {
    margin: 0 0 6px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 700;
    color: #e8b84a;
  }
  .termo-head h1 {
    margin: 0;
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.7rem;
    letter-spacing: 0.04em;
    font-weight: 400;
    color: #fff8ea;
  }
  .termo-sub {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: #f5c84c;
  }
  .termo-body {
    padding: 16px 22px 12px;
    font-size: 0.92rem;
    line-height: 1.5;
  }
  .termo-body p {
    margin: 0 0 10px;
  }
  .termo-dados {
    list-style: none;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f6ead2;
    border: 1px solid rgba(232, 184, 74, 0.45);
  }
  .termo-dados li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(44, 26, 18, 0.08);
  }
  .termo-dados li:last-child { border-bottom: 0; }
  .termo-dados span {
    color: #5a3d2e;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .termo-sign {
    margin: 22px 0 12px;
    text-align: center;
  }
  .termo-sign-pad {
    margin: 12px auto 0;
    width: min(460px, 92%);
    min-height: 45mm;
    border: 1px dashed rgba(44, 26, 18, 0.28);
    border-radius: 10px;
    background: rgba(255, 248, 234, 0.65);
  }
  .termo-sign-line {
    margin: 10px auto 6px;
    width: min(460px, 92%);
    border-top: 1px solid #2c1a12;
    padding-top: 8px;
    font-size: 0.8rem;
    color: #5a3d2e;
  }
  .termo-sign-name {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: #5a3d2e;
  }
  .termo-gov {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(196, 92, 38, 0.1);
    font-size: 0.78rem;
    line-height: 1.45;
  }
  .termo-gov p { margin: 0 0 6px; }
  .termo-gov p:last-child { margin: 0; }
  .termo-bar {
    margin: 0;
    padding: 10px 16px;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    background: linear-gradient(180deg, #d4682a, #c45c26);
    color: #f8eedc;
  }
}

@media (max-width: 900px) {
  .footer-wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-contacts { order: 1; }
  .footer-brand { order: 2; }
  .footer-meta { order: 3; padding-top: 0; }
}

@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
  .form-shell { padding: 18px 14px 22px; }
  .hero-actions { width: 100%; }

  .footer-wrap {
    width: calc(100% - 24px);
    padding: 16px 0 12px;
    gap: 12px;
    text-align: left;
  }
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-brand-extra,
  .footer-meta-full {
    display: none;
  }
  .footer-meta-short {
    display: block;
    margin: 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--ink-soft);
  }
  .footer-org {
    margin: 0;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }
  .footer-logos {
    margin-bottom: 6px;
    gap: 10px;
  }
  .footer-logos .logo-ge {
    width: 44px;
    height: 44px;
  }
  .footer-logos .logo-pascom {
    height: 56px;
  }
  .footer-contacts-title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    text-align: center;
  }
  .footer-contacts ul {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .footer-contacts li {
    padding: 8px;
  }
  .footer-contacts span {
    font-size: 0.72rem;
  }
  .footer-contacts a {
    font-size: 0.86rem;
  }
  .footer-bar {
    padding: 9px 14px;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 420px) {
  .count-cell small { font-size: 0.6rem; }
}

@media (max-height: 780px) {
  .hero { gap: 6px; padding-bottom: 16px; }
  .hero-center { gap: 4px; }
  .cta-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-center > * {
    animation: none !important;
  }
}
