:root {
  --wgt-cream: #FDF4EF;
  --wgt-green: #2E4E2E;
  --wgt-red: #B1381D;
  --wgt-dark: #1a1a1b;
}

.wgt-section {
  position: relative;
  overflow: hidden;
  padding: 96px 24px;
  background: var(--wgt-cream);
  color: var(--wgt-dark);
  font-family: Poppins, sans-serif;
}

.wgt-container {
  position: relative;
  z-index: 2;
  max-width: 672px;
  margin: 0 auto;
  text-align: center;
}

.wgt-checker-bg {
  position: absolute;
  inset: 0;
  opacity: .045;
  pointer-events: none;
  background-image:
    linear-gradient(45deg, var(--wgt-green) 25%, transparent 25%),
    linear-gradient(-45deg, var(--wgt-green) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--wgt-green) 75%),
    linear-gradient(-45deg, transparent 75%, var(--wgt-green) 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

.wgt-side-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12px;
  opacity: .25;
  background-image:
    linear-gradient(45deg, var(--wgt-green) 25%, transparent 25%),
    linear-gradient(-45deg, var(--wgt-green) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--wgt-green) 75%),
    linear-gradient(-45deg, transparent 75%, var(--wgt-green) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.wgt-side-line-left { left: 0; }
.wgt-side-line-right { right: 0; }

.wgt-header { margin-bottom: 48px; }
.wgt-kicker {
  margin: 0 0 12px;
  color: var(--wgt-red);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: .4em;
  text-transform: uppercase;
}
.wgt-header h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 700;
}
.wgt-subtitle {
  max-width: 520px;
  margin: 0 auto;
  color: rgba(26,26,27,.7);
  font-size: 18px;
  line-height: 1.6;
}

.wgt-machine-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wgt-machine-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 288px;
  height: 64px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: var(--wgt-green);
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
  color: #fff;
}
.wgt-machine-top span,
.wgt-machine-body > * { position: relative; z-index: 2; }
.wgt-machine-checker {
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image:
    linear-gradient(45deg, #fff 25%, transparent 25%),
    linear-gradient(-45deg, #fff 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #fff 75%),
    linear-gradient(-45deg, transparent 75%, #fff 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}
.wgt-machine-top span {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.wgt-slot {
  position: relative;
  width: 256px;
  height: 12px;
  background: var(--wgt-dark);
}
.wgt-slot div {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 160px;
  transform: translateX(-50%);
  border-radius: 0 0 4px 4px;
  background: rgba(0,0,0,.55);
}

.wgt-ticket {
  width: 288px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top center;
  transition: max-height .65s ease, opacity .35s ease, transform .55s cubic-bezier(.2,.8,.2,1);
}
.wgt-ticket.is-open {
  max-height: 720px;
  opacity: 1;
  transform: scaleY(1);
}

.wgt-ticket-tear {
  width: 100%;
  height: 16px;
  background-color: var(--wgt-green);
  background-image: radial-gradient(circle at 50% 0%, var(--wgt-cream) 8px, var(--wgt-green) 8.5px);
  background-size: 18px 14px;
  background-repeat: repeat-x;
}
.wgt-ticket-tear-bottom {
  background-image: radial-gradient(circle at 50% 100%, var(--wgt-cream) 8px, var(--wgt-green) 8.5px);
  background-position: bottom;
}

.wgt-ticket-body {
  position: relative;
  padding: 24px;
  overflow: hidden;
  border: 1px solid #e0d8cf;
  background: var(--wgt-cream);
  box-shadow: 0 22px 40px rgba(0,0,0,.16);
}
.wgt-watermark {
  position: absolute;
  inset: 0;
  opacity: .05;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 31px,
    var(--wgt-dark) 32px
  );
}
.wgt-ticket-form-wrap { position: relative; z-index: 2; }

.wgt-ticket-header { margin-bottom: 20px; }
.wgt-ticket-brand {
  margin-bottom: 4px;
  color: var(--wgt-red);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.wgt-ticket-number-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wgt-ticket-number-row span {
  flex: 1;
  height: 1px;
  background: rgba(26,26,27,.2);
}
.wgt-ticket-number-row strong {
  font-family: Poppins, sans-serif;
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
}
.wgt-ticket-reservation {
  margin-top: 5px;
  color: rgba(26,26,27,.5);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: .12em;
}

.wgt-dashed {
  margin: 16px 0;
  border-top: 2px dashed rgba(26,26,27,.2);
}

.wgt-form label {
  display: block;
  margin-bottom: 8px;
  color: rgba(26,26,27,.6);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-align: left;
  text-transform: uppercase;
}
.wgt-email {
  box-sizing: border-box;
  width: 100%;
  padding: 13px 16px;
  border: 2px solid rgba(26,26,27,.2);
  border-radius: 0;
  outline: none;
  background: rgba(255,255,255,.8);
  color: var(--wgt-dark);
  font-family: "Space Mono", monospace;
  font-size: 13px;
}
.wgt-email:focus { border-color: var(--wgt-green); }
.wgt-error {
  min-height: 16px;
  margin: 7px 0 0;
  color: var(--wgt-red);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  text-align: left;
}
.wgt-submit {
  width: 100%;
  margin-top: 6px;
  padding: 13px;
  border: 0;
  border-radius: 0;
  background: var(--wgt-red);
  color: #fff;
  cursor: pointer;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .2s ease, transform .15s ease;
}
.wgt-submit:hover { background: var(--wgt-green); }
.wgt-submit:active { transform: scale(.98); }
.wgt-submit-loading { display: none; }
.wgt-submit.is-loading .wgt-submit-text { display: none; }
.wgt-submit.is-loading .wgt-submit-loading { display: inline; }
.wgt-submit:disabled { opacity: .7; cursor: wait; }

.wgt-note {
  margin: 14px 0 0;
  color: rgba(26,26,27,.4);
  font-family: "Space Mono", monospace;
  font-size: 10px;
}

.wgt-success { display: none; padding: 16px 0 4px; text-align: center; }
.wgt-success.is-visible { display: block; }
.wgt-stamp {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 4px solid var(--wgt-green);
  border-radius: 4px;
  color: var(--wgt-green);
  font-family: "Space Mono", monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .15em;
  transform: rotate(-8deg) scale(1.08);
  animation: wgt-stamp .55s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes wgt-stamp {
  from { opacity: 0; transform: rotate(-15deg) scale(2.4); }
  to { opacity: .85; transform: rotate(-8deg) scale(1); }
}
.wgt-success-ticket {
  margin-bottom: 12px;
  color: var(--wgt-red);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.wgt-success p {
  margin: 0;
  color: var(--wgt-dark);
  font-size: 15px;
  line-height: 1.6;
}
.wgt-success-checker {
  height: 8px;
  margin-top: 16px;
  border-radius: 4px;
  opacity: .4;
  background-image:
    linear-gradient(45deg, var(--wgt-green) 25%, transparent 25%),
    linear-gradient(-45deg, var(--wgt-green) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--wgt-green) 75%),
    linear-gradient(-45deg, transparent 75%, var(--wgt-green) 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}

.wgt-machine-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 288px;
  min-height: 102px;
  box-sizing: border-box;
  padding: 24px;
  overflow: hidden;
  border-radius: 0 0 18px 18px;
  background: var(--wgt-green);
  box-shadow: 0 16px 30px rgba(0,0,0,.16);
}
.wgt-open {
  position: relative;
  z-index: 2;
  padding: 12px 28px;
  border: 0;
  border-radius: 0;
  background: var(--wgt-red);
  color: #fff;
  cursor: pointer;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  transition: background .3s ease, color .3s ease, transform .15s ease;
}
.wgt-open:hover { background: #d0a84a; color: var(--wgt-dark); }
.wgt-open:active { transform: scale(.96); }
.wgt-instruction {
  display: none;
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(255,255,255,.6);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.wgt-machine-body.is-open .wgt-open { display: none; }
.wgt-machine-body.is-open .wgt-instruction { display: block; }

@media (max-width: 520px) {
  .wgt-section { padding: 72px 16px; }
  .wgt-machine-top,
  .wgt-machine-body,
  .wgt-ticket { width: min(288px, 100%); }
  .wgt-slot { width: min(256px, 90%); }
  .wgt-ticket-body { padding: 20px; }
}
