 *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      min-height: 100vh;
      font-family: 'Rajdhani', sans-serif;
      background: #000;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    /* ── Page GIF Background ── */
    .bg-gif {
      position: fixed;
      inset: 0;
      z-index: 0;
    }
    .bg-gif img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.95;
    }
    .bg-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,8,0.22);
      z-index: 1;
    }



/* Success message */
.success-msg {
  display: none;
  background: rgba(0,180,0,0.1); border: 1px solid rgba(0,180,0,0.3);
  padding: 1rem; text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  color: #00c853; letter-spacing: 1px;
  font-size: 10px;
}
    /* ── Page content ── */
    #page-content {
      position: relative;
      z-index: 2;
      text-align: center;
      padding: 1rem;
    }
    #page-content h1 {
      font-family: 'Orbitron', sans-serif;
      color: #fff;
      font-size: 2rem;
      letter-spacing: 3px;
      margin-bottom: 0.8rem;
      text-shadow: 0 0 30px rgba(220,38,38,0.7);
      line-height: 1.3;
    }
    #page-content p {
      color: rgba(255,255,255,0.6);
      font-size: 15px;
      margin-bottom: 1rem;
    }
    .timer-bar-bg {
      max-width: 200px;
      margin: 0 auto 1.2rem;
      height: 3px;
      background: rgba(255,255,255,0.12);
      border-radius: 100px;
      overflow: hidden;
    }
    .timer-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, #dc2626, #fbbf24);
      width: 100%;
      animation: shrink 3s linear forwards;
    }
    @keyframes shrink { from{width:100%;} to{width:0%;} }

    #open-form-btn {
      display: inline-block;
      padding: 12px 32px;
      background: linear-gradient(90deg, #fbbf24, #f59e0b);
      border: none;
      border-radius: 8px;
      color: #000;
      font-family: 'Orbitron', sans-serif;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      cursor: pointer;
      text-decoration: none;
      box-shadow: 0 4px 20px rgba(251,191,36,0.4);
      transition: transform 0.15s, box-shadow 0.2s;
    }
    #open-form-btn:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(251,191,36,0.55); }

    /* ── Popup Overlay ── */
    #popup-overlay {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: none;
      align-items: center;
      justify-content: center;
      background: rgba(0,0,8,0.5);
      backdrop-filter: blur(2px);
    }
    #popup-overlay.active { display:flex; animation:overlayIn 0.35s ease; }
    @keyframes overlayIn { from{opacity:0;} to{opacity:1;} }

    /* ── Popup Box ── */
    .popup-box {
      position: relative;
      width: 100%;
      max-width: 460px;
      margin: 1rem;
      border-radius: 18px;
      overflow: hidden;
      border: 1px solid rgba(220,38,38,0.5);
      box-shadow: 0 0 80px rgba(220,38,38,0.22), 0 30px 80px rgba(0,0,0,0.9);
      animation: boxIn 0.45s cubic-bezier(0.34,1.56,0.64,1);
    }
    @keyframes boxIn {
      from { opacity:0; transform:translateY(-28px) scale(0.95); }
      to   { opacity:1; transform:translateY(0) scale(1); }
    }

    /* GIF inside popup */
    .popup-gif {
      position: absolute;
      inset: 0;
      z-index: 0;
    }
    .popup-gif img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.92;
    }
    .popup-gif-overlay {
      position: absolute;
      inset: 0;
      z-index: 1;
      background: rgba(2,1,18,0.55);
    }

    /* Close button */
    .close-btn {
      position: absolute;
      top: 14px; right: 16px;
      width: 30px; height: 30px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,0.25);
      background: rgba(0,0,0,0.5);
      color: rgba(255,255,255,0.85);
      font-size: 15px;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.2s, color 0.2s;
      z-index: 3;
    }
    .close-btn:hover { background:rgba(220,38,38,0.55); color:#fff; }

    /* Content layer */
    .popup-content {
      position: relative;
      z-index: 2;
      padding: 2.2rem 2rem 2rem;
    }
    .popup-content::before {
      content: '';
      position: absolute;
      top: 0; left: 8%; right: 8%;
      height: 2px;
      background: linear-gradient(90deg, transparent, #dc2626, #fbbf24, #dc2626, transparent);
      border-radius: 100px;
    }

    /* Header */
    .popup-header { text-align:center; margin-bottom:1.5rem; }
    .popup-header h2 {
      font-family: 'Orbitron', sans-serif;
      font-size: 1.35rem;
      font-weight: 700;
      color: #fff;
      letter-spacing: 2px;
      text-transform: uppercase;
      text-shadow: 0 0 24px rgba(220,38,38,0.6);
    }
    .popup-header p {
      font-size: 13px;
      color: rgba(255,255,255,0.45);
      margin-top: 5px;
      font-weight: 300;
      letter-spacing: 0.8px;
    }
    .header-line {
      width: 40px; height: 2px;
      background: linear-gradient(90deg, #dc2626, #fbbf24);
      margin: 10px auto 0;
      border-radius: 2px;
    }

    /* Field rows */
    .field-row {
      margin-bottom: 1rem;
      display: none;
    }
    .field-row.visible {
      display: block;
      animation: fieldIn 0.4s ease forwards;
    }
    @keyframes fieldIn {
      from { opacity:0; transform:translateY(-10px); }
      to   { opacity:1; transform:translateY(0); }
    }

    label {
      display: block;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: rgba(255,255,255,0.55);
      margin-bottom: 6px;
    }

    input, select, textarea {
      width: 100%;
      background: rgba(0,0,0,0.5);
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: 8px;
      color: #fff;
      font-family: 'Rajdhani', sans-serif;
      font-size: 15px;
      font-weight: 400;
      padding: 10px 14px;
      outline: none;
      transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    }
    input::placeholder,
    textarea::placeholder {
      color: #ffffff;
      opacity: 1;
      text-shadow: 0 0 5px rgba(255,255,255,0.8),
                   0 0 10px rgba(255,255,255,0.6),
                   0 0 15px rgba(255,255,255,0.4);
      }
    input:focus, select:focus, textarea:focus {
      border-color: rgba(220,38,38,0.7);
      box-shadow: 0 0 0 3px rgba(220,38,38,0.15);
      background: rgba(0,0,0,0.65);
    }
    input.valid, select.valid { border-color:rgba(74,222,128,0.6); }
    input.error               { border-color:rgba(248,113,113,0.65); }

    select {
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 14px center;
      cursor: pointer;
    }
    select option { background:#08041e; color:#fff; }
    textarea { resize:none; }

    .err-msg {
      font-size: 11px;
      color: #f87171;
      margin-top: 4px;
      display: none;
      letter-spacing: 0.5px;
    }
    .err-msg.show { display:block; }

    /* Submit button */
    .submit-btn {
      width: 100%;
      padding: 13px;
      background: linear-gradient(90deg, #b91c1c, #dc2626, #ef4444);
      border: none;
      border-radius: 8px;
      color: #fff;
      font-family: 'Orbitron', sans-serif;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      cursor: pointer;
      transition: transform 0.15s, box-shadow 0.2s;
      box-shadow: 0 4px 20px rgba(220,38,38,0.45);
    }
    .submit-btn:hover { transform:translateY(-1px); box-shadow:0 8px 28px rgba(220,38,38,0.65); }
    .submit-btn:active { transform:scale(0.98); }

    .alt-close { text-align:center; margin-top:10px; }
    .alt-close a {
      color: rgba(255,255,255,0.35);
      font-size: 12px;
      font-family: 'Rajdhani', sans-serif;
      letter-spacing: 0.5px;
      text-decoration: none;
      transition: color 0.2s;
    }
    .alt-close a:hover { color:rgba(255,255,255,0.6); }

    /* Success */
    #success-screen {
      display:none; text-align:center;
      padding:1rem 0 0.5rem;
      animation:fieldIn 0.4s ease;
    }
    .success-icon {
      width:64px; height:64px; border-radius:50%;
      background:rgba(74,222,128,0.12);
      border:2px solid rgba(74,222,128,0.55);
      display:flex; align-items:center; justify-content:center;
      margin:0 auto 16px;
      font-size:28px; color:#4ade80;
    }
    #success-screen h3 {
      font-family:'Orbitron',sans-serif;
      font-size:1.1rem; color:#4ade80;
      letter-spacing:1px; margin-bottom:8px;
    }
    #success-screen p { font-size:14px; color:rgba(255,255,255,0.4); font-weight:300; }
    .row.g-3 {
  --bs-gutter-x: 3px; /* horizontal gap */
  --bs-gutter-y: 3px; /* vertical gap */
}