/* ============================================================
   Go88 LDP — go88-ldp.css  (v3 — flattened hero background)
   Design: STT183 / Figma jhHDhLrtJYqzXEQIivWBKR — Bản thường
   Desktop frame: 1728×728 (aspect 2.3736:1)
   Strategy: the entire Figma hero is used as ONE background image
   (pixel-accurate: stadium, flags, players, LDP pattern, field,
   trophy, balls, logo). Only the interactive form is overlaid.
   1 Figma px = (1/1728)*100 = 0.05787vw
   ============================================================ */

/* ── Reset Flatsome padding ────────────────────────────────── */
#wrapper { width: 100vw; overflow-x: hidden; }
#wrapper #main { padding: 0 !important; margin: 0 !important; }
.wp-block-html,
.entry-content,
.page-content { padding: 0 !important; margin: 0 !important; }

/* ── Hero wrapper: flattened Figma background, fixed aspect ── */
.ldp-go88-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1728 / 728;
  background: url('/wp-content/uploads/2026/06/img-hero-full.png') center top / 100% 100% no-repeat;
  overflow: hidden;
  box-sizing: border-box;
}

/* ── Form card — overlaid exactly on the baked-in form ─────── */
/* Figma Form dk: x=598 y=151 w=532 h=392 (within 1728×728 frame) */
.ldp-go88-form-card {
  position: absolute;
  left: 34.61vw;   /* 598/1728 */
  top: 8.74vw;     /* 151/728 → as vw of frame-width basis (151/1728*100) */
  width: 30.79vw;  /* 532/1728 */
  height: 22.69vw; /* 392/1728 */
  /* Figma sampled form: top gold rgb(234,170,10) → bottom near-black rgb(16,14,1).
     Fully opaque to cleanly cover the baked-in form (no ghosting). */
  background: linear-gradient(to top,
    rgb(12, 8, 1) 0%,
    rgb(74, 44, 0) 30%,
    rgb(178, 124, 6) 66%,
    rgb(240, 174, 12) 100%);
  border: 0.087vw solid #FFC300;
  border-radius: 0.93vw;          /* 16px */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.0vw 1.39vw 1.1vw;    /* ~24px sides */
  z-index: 5;
  overflow: hidden;
}

/* Header image: "NHẬN NGAY VOUCHER 50K" */
.ldp-go88-form-header {
  width: 100%;
  text-align: center;
  margin-bottom: 0.6vw;
}
.ldp-go88-form-header img {
  width: 84%;            /* ≈ 412/484 of content width */
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Form body */
.ldp-go88-form-body { width: 100%; }
.ldp-go88-form { width: 100%; }

/* Inputs */
.ldp-go88-input-wrap {
  position: relative;
  margin-bottom: 0.55vw;   /* ≈ 8px gap */
}
.ldp-go88-input-wrap input {
  display: block;
  width: 100% !important;
  height: 2.55vw !important;          /* 44px */
  min-height: 34px !important;
  background: #ffffff !important;
  border: none !important;
  border-radius: 0.46vw !important;   /* 8px */
  padding-left: 2.8vw !important;
  padding-right: 2.4vw !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  text-indent: 0 !important;
  font-family: 'Fz Poppins', 'Poppins', sans-serif;
  font-size: 0.92vw;                  /* 16px */
  color: #000 !important;
  box-sizing: border-box !important;
  outline: none !important;
}
.ldp-go88-input-wrap input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}
.ldp-go88-input-wrap input:focus {
  box-shadow: 0 0 0 0.12vw #FFC300;
}

/* Left icon */
.ldp-input-icon {
  position: absolute;
  left: 0.8vw;
  top: 50%;
  transform: translateY(-50%);
  width: 1.27vw;
  height: 1.27vw;
  min-width: 16px;
  min-height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}
.ldp-input-icon svg { width: 100%; height: 100%; fill: #888; }

/* Right icon (eye) */
.ldp-input-icon-right {
  position: absolute;
  right: 0.7vw;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  cursor: pointer;
  z-index: 2;
}
.ldp-input-icon-right svg { width: 1.27vw; height: 1.27vw; min-width:16px; min-height:16px; fill: #888; }

/* CTA button */
.ldp-go88-btn {
  display: block;
  width: 100%;
  margin-top: 0.5vw;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}
.ldp-go88-btn img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s, transform 0.1s;
}
.ldp-go88-btn:hover img { opacity: 0.92; transform: scale(1.01); }
.ldp-go88-btn:active img { transform: scale(0.98); }

/* ── Footer ───────────────────────────────────────────────── */
.ldp-go88-footer {
  position: relative;
  z-index: 6;
  width: 100%;
  background: #000;
  line-height: 0;
}
.ldp-go88-footer img { display: block; width: 100%; height: auto; }

/* ═══════════════════════════════════════════════════════════
   MOBILE ≤768px — stack: hero (cover) up top, opaque form below
   (interim: desktop hero shown cover; form card is fully opaque
   so nothing baked-in shows through)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .ldp-go88-wrap {
    aspect-ratio: auto;
    min-height: 86vh;
    background: url('/wp-content/uploads/2026/06/img-hero-full.png') center center / cover no-repeat;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  .ldp-go88-form-card {
    position: relative;
    left: auto;
    top: auto;
    margin-top: 8vh;
    width: min(92vw, 420px);
    height: auto;
    padding: 14px 16px 16px;
    border-width: 1.5px;
    border-radius: 16px;
  }
  .ldp-go88-form-header { margin-bottom: 8px; }
  .ldp-go88-input-wrap { margin-bottom: 10px; }
  .ldp-go88-input-wrap input {
    height: 44px !important;
    font-size: 15px;
    padding-left: 44px !important;
    padding-right: 40px !important;
  }
  .ldp-go88-input-wrap input:focus { box-shadow: 0 0 0 2px #FFC300; }
  .ldp-input-icon { left: 14px; width: 20px; height: 20px; }
  .ldp-input-icon-right { right: 12px; }
  .ldp-input-icon-right svg { width: 20px; height: 20px; }
  .ldp-go88-btn { margin-top: 10px; }
}
