/* CivilsTap HPAS — Lead Gate Popup & Success Modal Styles v2.0 */

.ct-gate-ov {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(10,25,15,.72); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.ct-gate-ov.on { opacity: 1; pointer-events: all; }
.ct-gate-box {
  background: #fff; border-radius: 24px; width: 100%; max-width: 460px;
  box-shadow: 0 40px 100px rgba(0,0,0,.45), 0 0 0 1px rgba(26,92,56,.12);
  transform: translateY(32px) scale(.96); transition: transform .35s cubic-bezier(.22,.9,.36,1);
  overflow: hidden; font-family: 'DM Sans', sans-serif;
  box-sizing: border-box;
}
.ct-gate-ov.on .ct-gate-box { transform: translateY(0) scale(1); }
.ct-gate-box *, .ct-gate-box *::before, .ct-gate-box *::after { box-sizing: border-box; }

/* ── Header banner ── */
.ct-gate-top {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0f3d22 0%, #1A5C38 45%, #2E8B57 100%);
  padding: 30px 28px 24px; text-align: center;
}
.ct-gate-top::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255,255,255,.10), transparent 70%);
  pointer-events: none;
}
.ct-gate-top::after {
  content: 'HPAS'; position: absolute; right: -16px; bottom: -18px;
  font-family: 'Bebas Neue'; font-size: 110px; color: rgba(255,255,255,.055);
  line-height: 1; pointer-events: none; letter-spacing: 2px;
}
/* Close button */
.ct-gate-close-btn {
  position: absolute; top: 12px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9); font-size: 14px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s; z-index: 2; text-decoration: none; flex-shrink: 0;
}
.ct-gate-close-btn:hover { background: rgba(255,255,255,.28); color: #fff; }
/* Icon badge */
.ct-gate-icon-wrap {
  width: 62px; height: 62px; border-radius: 18px; margin: 0 auto 12px;
  background: linear-gradient(135deg, #E8761A, #FF9A3C);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 8px 24px rgba(232,118,26,.45);
  position: relative; z-index: 1;
}
.ct-gate-top h3 {
  font-family: 'Playfair Display'; font-size: 22px; font-weight: 700;
  color: #fff; line-height: 1.25; margin: 0 0 6px; padding: 0;
  position: relative; z-index: 1;
}
.ct-gate-top p {
  font-size: 13px; color: rgba(255,255,255,.78); line-height: 1.5;
  margin: 0; padding: 0; position: relative; z-index: 1;
}
.ct-gate-resource {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  padding: 5px 14px; border-radius: 20px; font-size: 12px; color: #fff; font-weight: 600;
  position: relative; z-index: 1; max-width: 100%;
}

/* ── Perks strip ── */
.ct-gate-perks {
  display: flex; border-bottom: 1.5px solid #e8f2ec;
  margin: 0; padding: 0;
}
.ct-gate-perk {
  flex: 1; padding: 11px 6px 10px; text-align: center;
  border-right: 1px solid #e8f2ec; background: #f5fbf7;
  margin: 0;
}
.ct-gate-perk:last-child { border-right: none; }
.ct-gate-perk .pi { font-size: 20px; display: block; margin: 0 0 4px; padding: 0; line-height: 1; }
.ct-gate-perk .pl { font-size: 9.5px; color: #1A5C38; font-weight: 700; letter-spacing: .04em; line-height: 1.3; text-transform: uppercase; display: block; margin: 0; padding: 0; }

/* ── Body ── */
.ct-gate-body { padding: 20px 24px 24px; margin: 0; }
.ct-gate-note {
  display: flex; align-items: flex-start; gap: 10px;
  background: #f0faf4; border: 1px solid rgba(26,92,56,.18); border-radius: 10px;
  padding: 11px 13px; margin: 0 0 16px; font-size: 13px; color: #2D3D30; line-height: 1.55;
}
.ct-gate-note .gn { font-size: 17px; flex-shrink: 0; margin-top: 1px; line-height: 1; }
.ct-gate-fg { margin: 0 0 11px; padding: 0; position: relative; width: 100%; }
.ct-gate-fg label {
  display: block; font-size: 10.5px; color: #6B8C75; margin: 0 0 5px; padding: 0;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.ct-gate-fg .fg-icon {
  position: absolute; left: 12px; top: 33px;
  font-size: 14px; line-height: 1; opacity: .45; pointer-events: none;
}
.ct-gate-fg input {
  display: block; width: 100%; padding: 11px 12px 11px 36px; margin: 0;
  background: #f8faf8; border: 1.5px solid rgba(26,92,56,.15);
  border-radius: 10px; color: #162818; font-family: 'DM Sans', sans-serif; font-size: 14px;
  outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.ct-gate-fg input:focus {
  border-color: #1A5C38; box-shadow: 0 0 0 3px rgba(26,92,56,.09); background: #fff;
}
.ct-gate-fg input::placeholder { color: rgba(107,140,117,.55); }
.ct-gate-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 20px; margin: 10px 0 0;
  background: linear-gradient(135deg, #E8761A, #FF9A3C);
  color: #fff; border: none; border-radius: 12px;
  font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all .22s; letter-spacing: .01em;
  box-shadow: 0 6px 20px rgba(232,118,26,.35);
}
.ct-gate-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(232,118,26,.5); }
.ct-gate-submit .sa { font-size: 16px; line-height: 1; }
.ct-gate-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin: 12px 0 0; padding: 0; gap: 8px;
}
.ct-gate-skip {
  font-size: 12px; color: #6B8C75; cursor: pointer; text-decoration: none;
  transition: color .2s; display: flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.ct-gate-skip:hover { color: #1A5C38; }
.ct-gate-privacy { font-size: 11px; color: #6B8C75; display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.ct-gate-privacy-old { display: none; }

/* ── SUCCESS MODAL ───────────────────────────────────────── */
.ct-lp-modal-ov { position: fixed; inset: 0; background: rgba(22,40,24,.45); backdrop-filter: blur(5px); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s; }
.ct-lp-modal-ov.on { opacity: 1; pointer-events: all; }
.ct-lp-modal-box { background: #fff; border: 2px solid #1A5C38; border-radius: 20px; padding: 42px 36px; max-width: 420px; width: 90%; text-align: center; transform: translateY(24px); transition: transform .32s; font-family: 'DM Sans'; }
.ct-lp-modal-ov.on .ct-lp-modal-box { transform: translateY(0); }
.ct-lp-modal-box .mico { font-size: 56px; margin-bottom: 14px; }
.ct-lp-modal-box h3 { font-family: 'Playfair Display'; font-size: 26px; font-weight: 700; color: #162818; margin-bottom: 8px; }
.ct-lp-modal-box p { font-size: 15px; color: #6B8C75; margin-bottom: 26px; line-height: 1.65; }
.ct-lp-modal-close { width: 100%; background: #1A5C38; color: #fff; border: none; padding: 14px; border-radius: 9px; font-weight: 700; font-size: 15px; cursor: pointer; font-family: 'DM Sans'; transition: background .2s; }
.ct-lp-modal-close:hover { background: #2E8B57; }

/* ── REVEAL ──────────────────────────────────────────────── */
.ct-lp .rv { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.ct-lp .rv.vis { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media(max-width:960px) {
  .ct-lp .lp-hero-grid { grid-template-columns: 1fr; }
  .ct-lp .lp-form-card { position: relative; top: 0; }
  .ct-lp .lp-lec-grid, .ct-lp .lp-feat-grid, .ct-lp .lp-testi-grid { grid-template-columns: 1fr 1fr; }
  .ct-lp .lp-vtesti-card { grid-template-columns: 240px 1fr; }
  .ct-lp .lp-vt-thumb { width: 240px; }
  .ct-lp .lp-notes-grid { grid-template-columns: 1fr 1fr; }
  .ct-lp .lp-mentor-card { grid-template-columns: 1fr; text-align: center; }
  .ct-lp .lp-mentor-stats { justify-content: center; }
  .ct-lp .lp-notes-banner { flex-direction: column; text-align: center; }
  .ct-lp .lp-faq-wrap { grid-template-columns: 1fr; }
  .ct-lp .lp-faq-side { position: relative; top: 0; }
}
@media(max-width:620px) {
  .ct-lp .lp-hero { padding: 36px 18px 48px; }
  .ct-lp .lp-sec { padding: 52px 18px; }
  .ct-lp .lp-stats { padding: 18px 20px; }
  .ct-lp .lp-si .n { font-size: 28px; }
  .ct-lp .lp-lec-grid, .ct-lp .lp-feat-grid, .ct-lp .lp-testi-grid, .ct-lp .lp-notes-grid { grid-template-columns: 1fr; }
  .ct-lp .lp-vtesti-card { grid-template-columns: 1fr; }
  .ct-lp .lp-vt-thumb { width: 100%; aspect-ratio: 16/9; }
  .ct-lp .lp-final { padding: 60px 20px; }
  .ct-lp .lp-notes-banner { padding: 24px 20px; }
  .ct-gate-ov { padding: 12px; }
  .ct-gate-box { border-radius: 18px; }
  .ct-gate-top { padding: 24px 20px 20px; }
  .ct-gate-body { padding: 16px 16px 20px; }
}