/* === DIT Coupon 9-box UI (match DIT card styling) === */

.dit-coupon-wrap{
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

/* plate = same vibe as your cards */
.dit-coupon-grid{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 10px;
  align-items: center;

  padding: 16px 18px 18px;
  border-radius: 32px;

  background: rgba(0,0,0,0.92);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);

  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dit-coupon-grid:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.50);
  border-color: rgba(255,255,255,0.18);
}

/* boxes = rounded “pills” like your UI elements */
.dit-coupon-box{
  width: 100%;
  aspect-ratio: 1 / 1;

  border-radius: 999px; /* round like your pills */
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.07);

  /* subtle depth, no harsh inner edge */
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.18),
    0 2px 8px rgba(0,0,0,0.35);

  color: #fff;
  text-align: center;

  font-family: 'Bowlby One', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1;
  padding: 0 2px;
  letter-spacing: 0.02em;
  text-transform: uppercase;

  /* absolutely nuke native focus artifacts */
  outline: none !important;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;

  transition: transform 0.15s ease,
              border-color 0.2s ease,
              background 0.2s ease,
              box-shadow 0.2s ease;
}

/* remove blue focus ring in Chrome/Edge */
.dit-coupon-box:focus-visible{
  outline: none !important;
}

/* ✅ focus matches your “green border” card feel */
.dit-coupon-box:focus{
  border-color: rgba(161,239,72,0.85);
  background:
    radial-gradient(circle at top, rgba(161,239,72,0.14), transparent 65%),
    rgba(255,255,255,0.08);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.18),
    0 2px 10px rgba(0,0,0,0.40);
  transform: translateY(-1px);
}

/* filled state: slightly brighter but still subtle */
.dit-coupon-box:not(:placeholder-shown){
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
}

/* Hide the original JetForm input visually but keep it in DOM for submission */
input[name="COUPONCODE"].dit-coupon-hidden{
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Mobile tweaks */
@media (max-width: 768px){
  .dit-coupon-grid{
    gap: 8px;
    padding: 14px 14px 16px;
    border-radius: 24px;
  }
  .dit-coupon-box{
    font-size: 16px;
    padding: 0 1px;
  }
}
.dit-coupon-grid:focus-within{
  border-color: rgba(161,239,72,0.35);
  background:
    radial-gradient(circle at top, rgba(161,239,72,0.10), transparent 70%),
    rgba(0,0,0,0.92);
}

/* Hide proxy number field but keep it reactive for JetForm conditions */
.dit-hidden-proxy,
.dit-hidden-proxy * {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Also hide the JetForm wrapper row containing it */
.jet-form-builder-row:has(.dit-hidden-proxy),
.jet-form-builder-field-wrap:has(.dit-hidden-proxy) {
  display: none !important;
}
input.dit-coupon-proxy-hidden{
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* === Hide coupon_valid_proxy field (keep in DOM for JetForm logic) === */

/* Hide the entire JetForm field wrapper that contains our proxy */
.jet-form-builder__field-wrap.dit-coupon-proxy,
.jet-form-builder-field-wrap.dit-coupon-proxy,
.jet-form-builder-row .dit-coupon-proxy {
  position: absolute !important;
  left: -99999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* If JFB attaches the class to the input itself, still hide it */
input.dit-coupon-proxy {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* === Hide coupon_valid_proxy UI but keep it in DOM for JFB conditions === */

/* Hide the whole field block we tag via JS */
.dit-coupon-proxy-wrap{
  position: absolute !important;
  left: -99999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Extra safety: hide the input itself too */
input[name="coupon_valid_proxy"],
input.dit-coupon-proxy{
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* Hide proxy field UI but keep it "alive" for JetForm logic */
.dit-coupon-proxy-wrap{
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Keep the input enabled + in DOM (don't move it away) */
.dit-coupon-proxy-wrap input,
input[name="coupon_valid_proxy"]{
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
