/* ==== CC Lucky No Wheel – Form + popup styles (all ccnf-* to avoid conflicts) ==== */

.ccnf-wrap {
  max-width: 580px;
  margin: 0 auto;
}

/* --- Form card --- */

.ccnf-card {
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.14),
    0 2px 6px rgba(17, 24, 39, 0.06);
  padding: 20px;
  max-width: 480px;
  margin: 0 auto;
}

.ccnf-heading {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

.ccnf-sub {
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 14px;
}

.ccnf-row {
  margin-bottom: 12px;
}

.ccnf-row label {
  display: block;
  font-size: 13px;
  color: #374151;
  margin-bottom: 6px;
}

.ccnf-row input {
  width: 100%;
  height: 42px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: box-shadow 0.15s, border-color 0.15s;
  background: #fff;
}

.ccnf-row input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15);
}

.ccnf-privacy {
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
}

.ccnf-btn {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  color: #fff;
  box-shadow: 0 8px 18px rgba(139, 92, 246, 0.25);
  cursor: pointer;
  transition: transform 0.06s, opacity 0.15s, box-shadow 0.15s;
}

.ccnf-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.ccnf-btn:not(:disabled):active {
  transform: translateY(1px);
}

/* === Offer modal === */

body.ccnf-offer-open {
  overflow: hidden;
}

#ccnf-offer-modal {
  position: fixed;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 999999;
}

#ccnf-offer-modal.open {
  opacity: 1;
}

.ccnf-splash {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  /* darker overlay + stronger blur */
  background: rgba(15, 23, 42, 0.55);   /* dark transparent */
  backdrop-filter: blur(14px);          /* stronger blur */
}


/* Coupon card */

.ccnf-splash-card {
  position: relative;
  width: min(480px, 92vw);
  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 24px 20px 22px;
  box-shadow: 0 28px 60px rgba(17, 24, 39, 0.18);
  text-align: center;
}

/* Close button */
.ccnf-splash-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
}

/* Hero image */
.ccnf-hero {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 12px;
}

.ccnf-voucher-preview {
  display: block;
  width: 90%;
  max-width: 420px;
  height: auto;
  margin: 0 auto 10px;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
}

/* Text */

.ccnf-splash-title {
  margin: 4px 0 2px;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(90deg, #ec4899, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ccnf-splash-sub {
  margin: 0 0 4px;
  color: #6b7280;
  font-size: 14px;
}

.ccnf-splash-amount {
  margin: 2px auto 10px;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: #111827;
}

.ccnf-offer-label {
  margin-right: 4px;
}

/* Row with coupon code – HIDDEN as per your request */
/* Row with coupon code + note – hide both completely */
.ccnf-splash-code-row,
.ccnf-splash-note {
  display: none !important;
}

/* (kept for JS usage, but it will not show because parent is hidden) */
.ccnf-offer-code {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.6px;
  font-size: 18px;
  background: #f3f4f6;
  color: #111827;
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
}


/* Buttons */

.ccnf-splash-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.ccnf-btn-ghost,
.ccnf-btn-primary {
  min-width: 120px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  padding: 0 16px;
  font-weight: 700;
}

.ccnf-btn-ghost {
  background: #111827;
  color: #fff;
}

.ccnf-btn-primary {
  background: #ec4899;
  color: #fff;
}

.ccnf-btn-primary:hover {
  filter: brightness(1.03);
}

/* Email mini-modal */

.ccnf-email-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.16s ease;
  z-index: 100000000;
}

.ccnf-email-modal.open {
  opacity: 1;
}

.ccnf-email-modal[hidden] {
  display: none;
}

.ccnf-email-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(2px);
}

.ccnf-email-card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  max-width: 360px;
  width: 92%;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.22);
}

.ccnf-email-card h4 {
  margin: 0 0 10px;
  font-weight: 800;
}

.ccnf-email-input {
  width: 100%;
  height: 42px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  border-radius: 10px;
  padding: 8px 12px;
}

.ccnf-email-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.ccnf-email-actions button {
  flex: 1 1 auto;
  height: 40px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
}

.ccnf-email-cancel {
  background: #e5e7eb;
  color: #111827;
}

.ccnf-email-send {
  background: #10b981;
  color: #fff;
}

.ccnf-email-msg {
  margin-top: 8px;
  font-size: 13px;
  color: #4b5563;
}

/* Mobile tweaks */

@media (max-width: 420px) {
  .ccnf-card {
    padding: 16px;
  }

  .ccnf-splash-card {
    padding: 20px 16px 18px;
  }

  .ccnf-voucher-preview {
    width: 80%;
    max-width: 320px;
  }

  .ccnf-splash-title {
    font-size: 22px;
  }

  .ccnf-splash-amount {
    font-size: 32px;
  }
}
