html, body {
  margin: 0;
  min-height: 100%;
  background: #E100A6 !important;
  overflow-x: hidden;
}

html {
  overflow-y: auto;
}

body {
  overflow-y: hidden;
}

/* Make sure the canvas sits above the SVG */
canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: fixed;
  inset: 0;
  z-index: 5;
}

/* Background SVG container */
#bg-mark {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1;              /* below canvas */
  width: 100%;
  height: auto;
  pointer-events: none;    /* doesn't block mouse */
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

/* Make SVG scale nicely within that box */
#bg-mark svg {
  width: 100%;
  height: auto;
  max-width: 100%;
}

#bg-mark { color: rgba(239, 105, 158, 0.24); }

/* ===================================================
   BOTTOM BAND — unified frosted bar
   Left: audio toggle + cinderellas counter
   Centre: GF signup form (full width flex)
   Fixed on desktop, releases on mobile (≤1023px)
   =================================================== */
#bottom-band {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;

  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;

  background: rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Audio toggle (currently not in use, keeping CSS for future) ===== */
#audio-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.85);
  font: 12px/1 system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

#audio-toggle:hover {
  border-color: rgba(255, 255, 255, 0.7);
}

/* ===== Right slot: cinderellas counter ===== */
#dot-counter {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;        /* pushes it all the way to the right */
}

/* ===== Centre slot: GF form ===== */
#gform_wrapper_1 {
  flex: 1;                      /* takes all remaining space */
  display: flex;
  flex-direction: row;          /* title and form side-by-side */
  justify-content: flex-start;  /* left-aligned */
  align-items: center;
  gap: 12px;                    /* space between title and fields */
  background: none;
  backdrop-filter: none;
  border-radius: 0;
  padding: 0;
}

/* Form title - auto width, stays on one line */
#gform_wrapper_1 .gform_heading {
  display: block;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  flex-shrink: 0;               /* never shrinks */
}

#gform_wrapper_1 .gform_title {
  color: rgba(255, 255, 255, 0.85);
  font: 14px/1 system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
}

/* Form body - fields flow left-aligned in a row */
#gform_wrapper_1 form,
#gform_wrapper_1 .gform_body,
#gform_wrapper_1 .gform_fields,
#gform_wrapper_1 .gfield {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: none;
  width: auto;
  flex-wrap: nowrap;
}

/* Text / email inputs */
#gform_wrapper_1 input[type="text"],
#gform_wrapper_1 input[type="email"] {
  flex: 0 1 auto;               /* don't stretch, but can shrink */
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
  color: #fff;
  font: 14px/1 system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 4px 2px;
  outline: none;
  width: 180px;
  min-width: 140px;
  box-shadow: none;
}

#gform_wrapper_1 input[type="text"]::placeholder,
#gform_wrapper_1 input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Submit button */
#gform_wrapper_1 input[type="submit"],
#gform_wrapper_1 button[type="submit"] {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.85);
  font: 12px/1 system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  margin: 0;
  flex-shrink: 0;
}

#gform_wrapper_1 input[type="submit"]:hover,
#gform_wrapper_1 button[type="submit"]:hover {
  border-color: rgba(255, 255, 255, 0.7);
}

/* Hide GF chrome */
#gform_wrapper_1 .gfield_label,
#gform_wrapper_1 .gfield_description,
#gform_wrapper_1 .gfield_required,
#gform_wrapper_1 .gfield_error .validation_message,
#gform_wrapper_1 .validation_error {
  display: none !important;
}

/* Validation: tint border only */
#gform_wrapper_1 .gfield_error input {
  border-bottom-color: rgba(255, 100, 100, 0.7) !important;
  box-shadow: none !important;
}

/* GF confirmation — stays centred in the band */
#gform_confirmation_wrapper_1 {
  flex: 1;
  display: flex;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font: 13px/1 system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  white-space: nowrap;
}

/* Eventbrite button — unchanged from your version */
#eventbrite-btn {
  background: #D7FF9C;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #E100A6;
  text-decoration: none;
  font: 18px/1 system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 8px 22px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  transition: border-color 0.15s ease;
}

#eventbrite-btn:hover {
  border-color: rgba(255, 255, 255, 0.7);
}

.wp-block-button__link.wp-element-button {
  background: #D7FF9C;
  color: #272c30;
  font-weight: bold;
}

/* ===================================================
   MOBILE — 1023px and below
   Band stays fixed (audio + counter) but form
   drops out into normal page flow.
   =================================================== */
@media (max-width: 1023px) {

  /* Form detaches from band */
  #gform_wrapper_1 {
    position: static;
    flex: none;
    display: block;
    width: calc(100% - 32px);
    margin: 16px auto;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 12px 16px;
  }

  /* Fields stack/wrap naturally on small screens */
  #gform_wrapper_1 form,
  #gform_wrapper_1 .gform_body,
  #gform_wrapper_1 .gform_fields,
  #gform_wrapper_1 .gfield {
    flex-wrap: wrap;
    width: 100%;
  }

  #gform_wrapper_1 input[type="text"],
  #gform_wrapper_1 input[type="email"] {
    width: 100%;
    flex: none;
  }

  /* Confirmation drops into page flow too */
  #gform_confirmation_wrapper_1 {
    flex: none;
    display: block;
    width: calc(100% - 32px);
    margin: 16px auto;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    text-align: center;
  }
}

#dot-counter {
  display: none;
}