/* Innovator Services Subscribe – Public Widget */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

.csub-widget {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f3f0fa;
  border-radius: 28px;
  padding: 56px 48px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(90, 70, 180, 0.10);
  max-width: 860px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Rings */
.csub-rings {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}
.csub-rings--left  { left: -120px; }
.csub-rings--right { right: -120px; }
.csub-ring {
  border-radius: 50%;
  border: 1.5px solid rgba(160, 140, 210, 0.13);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.csub-rings--left  .csub-ring:nth-child(1),
.csub-rings--right .csub-ring:nth-child(1) { width: 180px; height: 180px; }
.csub-rings--left  .csub-ring:nth-child(2),
.csub-rings--right .csub-ring:nth-child(2) { width: 270px; height: 270px; }
.csub-rings--left  .csub-ring:nth-child(3),
.csub-rings--right .csub-ring:nth-child(3) { width: 360px; height: 360px; }
.csub-rings--left  .csub-ring:nth-child(4),
.csub-rings--right .csub-ring:nth-child(4) { width: 450px; height: 450px; }

/* Send icon */
.csub-send-icon {
  position: absolute;
  top: 20px; right: 24px;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #f7794b, #f05a5a);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(240, 90, 90, 0.30);
  z-index: 2;
}
.csub-send-icon svg { width: 22px; height: 22px; fill: #fff; }

/* Inner */
.csub-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Heading */
.csub-heading {
  font-size: clamp(1.15rem, 2.8vw, 1.6rem) !important;
  font-weight: 800 !important;
  color: #3a3460 !important;
  line-height: 1.45 !important;
  max-width: 560px;
  margin: 0 auto 32px !important;
  letter-spacing: -0.01em;
}

/* Form row */
.csub-form-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Input wrap */
.csub-input-wrap {
  position: relative;
  flex: 1;
  max-width: 460px;
  min-width: 220px;
}
.csub-mail-icon {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  color: #6b6490;
  pointer-events: none;
  display: flex;
}
.csub-mail-icon svg { width: 20px; height: 20px; }

.csub-email-input {
  width: 100% !important;
  padding: 15px 18px 15px 50px !important;
  border: 2px solid #e4c97e !important;
  border-radius: 50px !important;
  background: #fff !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.97rem !important;
  color: #3a3460 !important;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  box-shadow: 0 2px 10px rgba(200, 180, 100, 0.08) !important;
  box-sizing: border-box !important;
}
.csub-email-input::placeholder { color: #b0a9ca !important; }
.csub-email-input:focus {
  border-color: #5b4fcf !important;
  box-shadow: 0 0 0 4px rgba(91, 79, 207, 0.10) !important;
}
.csub-email-input.csub-error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.10) !important;
}

/* Subscribe button */
.csub-btn-sub {
  padding: 15px 36px !important;
  background: linear-gradient(135deg, #f7794b 0%, #f05a5a 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(240, 90, 90, 0.28) !important;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.csub-btn-sub:hover:not(:disabled) {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(240, 90, 90, 0.35) !important;
}
.csub-btn-sub:disabled { opacity: 0.7 !important; cursor: not-allowed !important; transform: none !important; }

/* Spinner */
.csub-spinner {
  display: none;
  width: 17px; height: 17px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: csub-spin 0.7s linear infinite;
}
@keyframes csub-spin { to { transform: rotate(360deg); } }
.csub-btn-sub.csub-loading .csub-spinner { display: block; }
.csub-btn-sub.csub-loading .csub-btn-label { opacity: 0.6; }

/* Messages */
.csub-msg {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 18px;
  display: none;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.csub-msg.csub-msg--success { background: #eafaf1; color: #27ae60; display: block; }
.csub-msg.csub-msg--error   { background: #fdf0ef; color: #e74c3c; display: block; }

/* Privacy */
.csub-privacy {
  margin-top: 16px !important;
  font-size: 0.8rem !important;
  color: #6b6490 !important;
  opacity: 0.75;
}

/* Responsive */
@media (max-width: 560px) {
  .csub-widget { padding: 44px 20px 36px; }
  .csub-form-row { flex-direction: column; }
  .csub-btn-sub { width: 100% !important; justify-content: center !important; }
}
