/* ============================================
   Newsletter OTP – Front-end Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@400;500&display=swap');

.notp-wrapper {
  --clr-bg:        #0d0d14;
  --clr-card:      #13131e;
  --clr-border:    #252535;
  --clr-accent:    #7c5cfc;
  --clr-accent2:   #fc5ca8;
  --clr-text:      #e0e0f0;
  --clr-muted:     #7070a0;
  --clr-success:   #4ade80;
  --clr-error:     #f87171;
  --clr-warning:   #fbbf24;
  --radius:        18px;
  --font-head:     'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;

  max-width: 480px;
  margin: 40px auto;
  font-family: var(--font-body);
}

/* Card */
.notp-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  animation: notp-fadein .4s ease both;
}

.notp-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(124,92,252,.12) 0%, transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(252,92,168,.08) 0%, transparent 60%);
  pointer-events: none;
}

.notp-hidden { display: none !important; }

/* Header */
.notp-header { text-align: center; margin-bottom: 28px; }

.notp-icon {
  display: inline-block;
  font-size: 28px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.notp-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.2;
}

.notp-header p {
  color: #fff;
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}

/* Form fields */
.notp-field {
  margin-bottom: 18px;
}

.notp-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 7px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.notp-field .req { color: var(--clr-accent2); }

.notp-field input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}

.notp-field input:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(124,92,252,.18);
}

.notp-field input::placeholder { color: #3a3a55; }

/* Button */
.notp-btn {
  width: 100%;
  padding: 14px;
  background: #1e73be;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .04em;
  transition: opacity .2s, transform .1s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.notp-btn:hover { opacity: .9; }
.notp-btn:active { transform: scale(.98); }
.notp-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Spinner */
.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: notp-spin .7s linear infinite;
  display: none;
}
.notp-btn.notp-loading .btn-spinner { display: block; }
.notp-btn.notp-loading .btn-text    { opacity: 0; position: absolute; }

/* Messages */
.notp-msg {
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
  min-height: 20px;
}
.notp-msg.success { color: var(--clr-success); }
.notp-msg.error   { color: var(--clr-error); }
.notp-msg.info    { color: var(--clr-warning); }

/* OTP digit inputs */
.notp-otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 22px;
}

.notp-otp-digit {
  width: 50px !important;
  height: 58px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  padding: 0 !important;
  box-sizing: border-box;
}

.notp-otp-digit:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(124,92,252,.18);
  transform: translateY(-2px);
}

.notp-otp-digit.notp-filled {
  border-color: var(--clr-accent);
  background: #fff;
}

/* Resend + back */
.notp-resend {
  text-align: center;
  font-size: 13px;
  color: #fff;
  margin-top: 16px;
  margin-bottom: 0;
}

.notp-link-btn {
  background: none;
  border: none;
  color: var(--clr-accent);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-body);
  padding: 0;
  text-decoration: underline;
}

.notp-back {
  background: none;
  border: none;
  color: var(--clr-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 12px 0 0;
  display: block;
  font-family: var(--font-body);
  transition: color .2s;
}

.notp-back:hover { color: var(--clr-text); }

/* Success step */
.notp-success {
  text-align: center;
  padding: 16px 0;
}

.notp-checkmark {
  width: 72px; height: 72px;
  margin: 0 auto 24px;
  color: var(--clr-success);
  animation: notp-pop .5s cubic-bezier(.22,1,.36,1) both;
}

.notp-checkmark svg { width: 100%; height: 100%; }

.notp-success h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
}

.notp-success p {
  color: #fff;
  font-size: 15px;
  margin: 0;
}

/* Animations */
@keyframes notp-fadein {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes notp-spin {
  to { transform: rotate(360deg); }
}

@keyframes notp-pop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 520px) {
  .notp-card { padding: 28px 20px; }
  .notp-otp-digit { width: 42px !important; height: 50px; font-size: 20px; }
  .notp-otp-inputs { gap: 7px; }
}
