.gg-voucher {
  color: rgba(255, 255, 255, 0.82);
}

.gg-voucher__wrap {
  position: relative;
  padding: 72px 0 90px;
  overflow: hidden;
}

.gg-voucher__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
      900px 360px at 18% 18%,
      rgba(39, 244, 255, 0.1),
      transparent 60%
    ),
    radial-gradient(
      900px 360px at 78% 16%,
      rgba(255, 122, 24, 0.11),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(7, 11, 31, 0.92), rgba(5, 8, 22, 0.98));
}

.gg-voucher__container {
  position: relative;
  z-index: 1;
  max-width: min(1050px, calc(100vw - 80px));
  margin: 0 auto;
}

.gg-voucher__header {
  text-align: center;
  margin-bottom: 22px;
}

.gg-voucher__title {
  margin: 0 0 14px;
  font-family: "Orbitron", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 4.6vw, 64px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 18px rgba(255, 122, 24, 0.18),
    0 0 26px rgba(39, 244, 255, 0.1);
}

.gg-voucher__lead {
  margin: 0 auto;
  max-width: 80ch;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  font-size: 16px;
}

.gg-voucher__panel {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  padding: 22px 22px 24px;
}

.gg-voucher__form {
  width: 100%;
}

/* --- Voucher Intro Section --- */
.gg-voucher__intro {
  position: relative;

  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  padding: 64px 0 84px; /* vertical only */
  background: rgba(0, 0, 0, 0.55); /* charcoal */
}

/* Centered inner content */
.gg-voucher__intro-inner {
  max-width: 1200px; /* match rest of site */
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

/* fades at top and bottom to blend into page background */
.gg-voucher__intro::before,
.gg-voucher__intro::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
  z-index: 1;
}

.gg-voucher__intro::before {
  top: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
}

.gg-voucher__intro::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
}

/* keep inner content above fades */
.gg-voucher__intro > * {
  position: relative;
  z-index: 1;
}

.gg-voucher__intro {
  margin-bottom: 70px;
  margin-top: 70px;
}

.gg-voucher__intro-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 36px;
  row-gap: 52px;
  align-items: stretch;
}

/* vertical divider */
.gg-voucher__intro-grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;

  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 122, 24, 0.65),
    transparent
  );

  box-shadow: 0 0 10px rgba(255, 122, 24, 0.35),
    0 0 26px rgba(255, 122, 24, 0.22);
  pointer-events: none;
}

/* horizontal divider */
.gg-voucher__intro-grid::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 1px);
  height: 2px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 122, 24, 0.65),
    transparent
  );

  box-shadow: 0 0 10px rgba(255, 122, 24, 0.35),
    0 0 26px rgba(255, 122, 24, 0.22);
  pointer-events: none;
}

.gg-voucher__intro-image {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Fiery glow around the photo itself */
.gg-voucher__image-bg img,
.gg-voucher__image-bg .gg-voucher__intro-svg {
  border-radius: 12px; /* if your image has corners */
  box-shadow: 0 0 0 1px rgba(255, 122, 24, 0.18),
    0 0 22px rgba(255, 122, 24, 0.3), 0 0 48px rgba(255, 122, 24, 0.22);
}

/* Black panel background for selected image cells */
.gg-voucher__image-bg--black {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5), 0 14px 42px rgba(0, 0, 0, 0.45);
}

.gg-voucher__intro-image img,
.gg-voucher__intro-svg {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  image-rendering: auto;
}

.gg-voucher__intro-title {
  margin: 0 0 10px;
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.gg-voucher__intro-desc {
  margin: 0;
  max-width: 48ch;
  line-height: 1.7;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
}

/* Image itself */
.gg-voucher__intro-svg {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
}

/* Form styles (kept compatible with your existing markup/JS) */
.gg-form-group {
  margin-bottom: 16px;
}

.gg-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.gg-form-group label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
}

.gg-form-group input,
.gg-form-group textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 8, 22, 0.45);
  color: rgba(255, 255, 255, 0.9);
  padding: 12px 12px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  font-family: "Inter", system-ui, sans-serif;
}

.gg-form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.gg-form-group input:focus,
.gg-form-group textarea:focus {
  border-color: rgba(255, 122, 24, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.1);
  font-family: "Inter", system-ui, sans-serif;
}

.gg-help-text {
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.gg-amount-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gg-amount-prefix {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.gg-quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.gg-quick-amounts button {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-family: "Inter", system-ui, sans-serif;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease,
    box-shadow 160ms ease;
}

.gg-quick-amounts button:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.08);
}

/* Summary */
.gg-summary-inline {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 16px;
}

.gg-summary-heading {
  margin: 0 0 10px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
}

.gg-summary-amount {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0;
}

.gg-summary-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.68);
}

.gg-summary-value {
  font-size: 28px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

/* Errors (IDs/classes preserved) */
.gg-input-error {
  border-color: rgba(255, 75, 75, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(255, 75, 75, 0.16) !important;
}

.gg-error-text {
  font-size: 12px;
  color: rgba(255, 140, 140, 0.95);
  margin-top: 8px;
}

/* Submit button: keep text button because JS changes text to Processing... */
.gg-voucher__submit {
  margin-top: 6px;
  width: 100%;
  display: block;
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;

  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(
    90deg,
    rgba(255, 122, 24, 1),
    rgba(255, 65, 133, 1)
  );
  box-shadow: 0 0 18px rgba(255, 122, 24, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.gg-voucher__submit:not([disabled]):hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(255, 122, 24, 0.45);
}

.gg-voucher__submit[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.25);
}

.gg-small-print {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

.gg-voucher__intro-grid > :nth-child(1),
.gg-voucher__intro-grid > :nth-child(2) {
  padding-bottom: 36px;
}

.gg-voucher__intro-grid > :nth-child(2) {
  padding-left: 36px;
}

/* === Voucher Form Header === */
.gg-voucher__form-header {
  text-align: center;
  margin-bottom: 40px;
}

.gg-voucher__form-title {
  margin: 0 0 8px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.gg-voucher__form-subtitle {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

/* Remove native number input spinners (voucher page, all number inputs) */
.gg-voucher input[type="number"] {
  appearance: textfield; /* Standard */
  -webkit-appearance: textfield; /* Chrome, Safari, Edge */
  -moz-appearance: textfield; /* Firefox */
}

.gg-voucher input[type="number"]::-webkit-inner-spin-button,
.gg-voucher input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.gg-quick-amounts button.is-active {
  border-color: rgba(255, 122, 24, 0.85);
  background: rgba(255, 122, 24, 0.16);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.14);
}

/* Step headings */
.gg-voucher-step {
  margin: 26px 0 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}

.gg-voucher-step:first-child {
  margin-top: 0;
}

.gg-voucher-step-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.7;
}

/* Pricing group spacing */
.gg-voucher-pricing {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Room / player buttons tighter & clearer */
.gg-room-picks,
.gg-player-picks {
  margin-bottom: 14px;
}

/* Active state already exists – reinforce clarity */
.gg-quick-amounts button.is-active {
  border-color: rgba(255, 122, 24, 0.75);
  background: rgba(255, 122, 24, 0.18);
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.15);
}

/* When deselected (manual amount) */
.gg-quick-amounts button.is-muted {
  opacity: 0.45;
}

/* Mobile */
@media (max-width: 900px) {
  /* container */
  .gg-voucher__container {
    max-width: calc(100vw - 48px);
  }

  .gg-form-row {
    grid-template-columns: 1fr;
  }

  .gg-voucher__wrap {
    padding: 56px 0 70px;
  }

  .gg-voucher__intro {
    padding: 48px 20px 56px;
    border-radius: 18px;
    margin-bottom: 64px;
  }

  .gg-voucher__intro-inner {
    padding: 0 20px;
  }

  /* IMPORTANT: switch to flex so order works */
  .gg-voucher__intro-grid {
    display: flex;
    flex-direction: column;
    gap: 44px;
    text-align: center;
    padding: 0;
  }
  .gg-voucher__intro-text {
    width: 100% !important;
    max-width: 520px; /* optional: keeps lines readable */
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* swap ONLY first two items */
  .gg-voucher__intro-grid > :nth-child(1) {
    order: 2;
  }
  .gg-voucher__intro-grid > :nth-child(2) {
    order: 1;
  }
  .gg-voucher__intro-grid > :nth-child(3) {
    order: 3;
  }
  .gg-voucher__intro-grid > :nth-child(4) {
    order: 4;
  }

  /* reset cell spacing; use gap instead */
  .gg-voucher__intro-grid > * {
    position: relative;
    padding: 0;
    margin: 0;

    /* NEW: force each cell's content to center */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* NEW: if any inner wrappers have desktop max-width, center them */
  .gg-voucher__intro-grid h2,
  .gg-voucher__intro-grid h3,
  .gg-voucher__intro-grid p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  /* separator spacing */
  .gg-voucher__intro-grid > *:not(:last-child) {
    padding-bottom: 30px;
  }

  .gg-voucher__intro-svg {
    margin: 0 auto 22px;
  }

  .gg-voucher__intro-desc {
    margin: 22px auto 0;
    /* NEW: ensure desc doesn't inherit left alignment */
    text-align: center;
  }

  .gg-voucher__image-bg {
    min-height: 180px;
    border-radius: 14px;
    /* NEW: keep the image/card centered even if width is constrained */
    margin-left: auto;
    margin-right: auto;
  }

  /* hide desktop dividers */
  .gg-voucher__intro-grid::before,
  .gg-voucher__intro-grid::after {
    display: none;
  }

  .gg-voucher__intro::before,
  .gg-voucher__intro::after {
    height: 54px;
  }

  .gg-voucher__form-header {
    margin-bottom: 28px;
  }

  .gg-voucher__form-title {
    font-size: 28px;
    letter-spacing: 0.06em;
  }

  .gg-voucher__form-subtitle {
    font-size: 14px;
  }

  /* fiery separators */
  .gg-voucher__intro-grid > *:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 0;
    height: 2px;
    background: linear-gradient(
      90deg,
      rgba(255, 122, 24, 0),
      rgba(255, 122, 24, 0.75),
      rgba(255, 122, 24, 0)
    );
    box-shadow: 0 0 10px rgba(255, 122, 24, 0.45),
      0 0 22px rgba(255, 122, 24, 0.25);
    border-radius: 999px;
  }
}
