/* ==========================================================================
   includes/package_modal.php — package purchase modal (index.php)
   Formerly a <style> block inside the include plus two style="" attributes.
   Linked from the include itself, at the same spot, so the cascade order is
   unchanged.
   ========================================================================== */
#pkgModal * { box-sizing: border-box; }

#pkgModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(6, 6, 18, 0.72);
  backdrop-filter: blur(10px);
}

#pkgModalBox {
  background: #f4f5f7;
  border-radius: 24px;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08);
  scrollbar-width: thin;
  scrollbar-color: #d0d4dc transparent;
}

/* ── Close button ── */
#pkgCloseBtn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #e4e6eb;
  color: #555;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background .18s;
}
#pkgCloseBtn:hover { background: #d0d3da; }

/* ── Header ── */
.pkg-header {
  padding: 36px 36px 0;
}

.pkg-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #1a1a1a;
  background: #c6f135;
  padding: 5px 14px 5px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.pkg-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b3bff;
  flex-shrink: 0;
}

.pkg-title {
  font-size: 28px;
  font-weight: 800;
  color: #111;
  margin: 0 0 6px;
  letter-spacing: -0.6px;
  line-height: 1.2;
}
.pkg-title span { color: #3b3bff; }

.pkg-subtitle {
  font-size: 14px;
  color: #888;
  margin: 0 0 22px;
}

/* ── Price card ── */
.pkg-price-card {
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.pkg-price-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #aaa;
  margin-bottom: 4px;
}

.pkg-price-amount {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.pkg-price-symbol { font-size: 22px; font-weight: 700; color: #3b3bff; }
.pkg-price-num    { font-size: 40px; font-weight: 900; color: #3b3bff; letter-spacing: -2px; line-height: 1; }
.pkg-price-per    { font-size: 14px; color: #aaa; font-weight: 400; margin-left: 2px; }
.pkg-price-inr    { font-size: 12px; color: #aaa; margin-top: 4px; }

/* ── Billing pill toggle ── */
.pkg-billing-toggle {
  display: flex;
  background: #f0f1f4;
  border-radius: 100px;
  padding: 4px;
  gap: 2px;
}
.pkg-billing-btn {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #777;
  transition: all .2s;
  white-space: nowrap;
  font-family: inherit;
}
.pkg-billing-btn.active {
  background: #3b3bff;
  color: #fff;
  box-shadow: 0 2px 8px rgba(59,59,255,0.3);
}

/* ── Form ── */
.pkg-form { padding: 0 36px 30px; }

.pkg-field { margin-bottom: 16px; }

.pkg-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #555;
  margin-bottom: 7px;
}
.pkg-label .req { color: #e63535; }

.pkg-input,
.pkg-textarea {
  width: 100%;
  background: #fff;
  border: 1.5px solid #e4e6eb;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: #111;
  outline: none;
  font-family: inherit;
  transition: border-color .18s, box-shadow .18s;
}
.pkg-input::placeholder,
.pkg-textarea::placeholder { color: #bbb; }
.pkg-input:focus,
.pkg-textarea:focus {
  border-color: #3b3bff;
  box-shadow: 0 0 0 4px rgba(59,59,255,0.08);
}
.pkg-textarea { resize: none; }

.pkg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ── Error ── */
#pkgError {
  display: none;
  background: rgba(230,53,53,0.08);
  border: 1px solid rgba(230,53,53,0.22);
  color: #c92a2a;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* ── CTA button ── */
#pkgPayBtn {
  width: 100%;
  background: #3b3bff;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  padding: 6px 6px 6px 28px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .2s, transform .15s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
#pkgPayBtn:hover { opacity: .92; transform: translateY(-1px); }
#pkgPayBtn:disabled { opacity: .65; transform: none; cursor: not-allowed; }

.pkg-btn-label { letter-spacing: -0.2px; }

.pkg-btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #c6f135;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  transition: transform .2s;
}
#pkgPayBtn:hover .pkg-btn-icon { transform: rotate(15deg) scale(1.05); }

/* ── Trust strip ── */
.pkg-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.pkg-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #999;
  font-weight: 500;
}
.pkg-trust-check {
  width: 14px;
  height: 14px;
  border: 1.5px solid #ccc;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #3b3bff;
  background: #fff;
  flex-shrink: 0;
}

/* ── Success state ── */
#pkgSuccess {
  display: none;
  padding: 52px 36px 44px;
  text-align: center;
}
.pkg-success-icon { font-size: 60px; margin-bottom: 20px; }
.pkg-success-title { font-size: 24px; font-weight: 900; color: #111; margin: 0 0 10px; letter-spacing: -0.5px; }
.pkg-success-sub   { color: #666; font-size: 14px; margin: 0 0 8px; }
.pkg-success-note  { color: #aaa; font-size: 12px; margin: 0 0 22px; }
#pkgSuccessPayId   { font-family: 'Courier New', monospace; font-size: 11px; color: #aaa; background: #f0f1f4; padding: 8px 16px; border-radius: 8px; display: inline-block; margin-bottom: 26px; }
.pkg-success-close { background: #3b3bff; border: none; color: #fff; padding: 12px 32px; border-radius: 100px; cursor: pointer; font-size: 14px; font-weight: 700; font-family: inherit; transition: opacity .18s; }
.pkg-success-close:hover { opacity: .85; }

/* ── Formerly inline ── */
/* #pkgModal's inline style repeated the #pkgModal rule above value for value, so it was dropped. */
#pkgPayBtnSpin { display: none; } /* "Please wait…" label, shown by the payment script */

/* SVG line icons (replaced emojis) */
.pkg-billing-btn .dd-ico { width: 14px; height: 14px; vertical-align: -2px; }
.pkg-btn-label .dd-ico { width: 16px; height: 16px; vertical-align: -3px; }
.pkg-btn-icon { color: #3b3bff; }
.pkg-btn-icon .dd-ico { width: 22px; height: 22px; }
.pkg-success-icon { color: #3b3bff; line-height: 1; }
.pkg-success-icon .dd-ico { width: 60px; height: 60px; stroke-width: 1.6; }
#pkgError .dd-ico { width: 15px; height: 15px; vertical-align: -3px; }
.dd-spin { animation: dd-spin 1s linear infinite; }
@keyframes dd-spin { to { transform: rotate(360deg); } }
