/* =============================================================
   Newsletter Subscription Page — newsletter.css
   Ganesh Cap Mart | Foxiz Child Theme
   All selectors scoped to .nl-* to avoid cross-page conflicts
   ============================================================= */

/* ── Reset & Base ─────────────────────────────────────────── */
.nl-page *,
.nl-page *::before,
.nl-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.nl-page {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #1a1a2e;
    overflow-x: hidden;
}

.nl-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── HERO ─────────────────────────────────────────────────── */
.nl-hero {
    position: relative;
    background: linear-gradient(135deg, #ff6b00 0%, #e91e8c 40%, #6c1fc9 75%, #1a1a2e 100%);
    padding: 100px 0 120px;
    text-align: center;
    overflow: hidden;
}

/* Floating particles */
.nl-hero__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.nl-hero__particles span {
    position: absolute;
    display: block;
    border-radius: 50%;
    opacity: 0.18;
    animation: nl-float 8s ease-in-out infinite;
}

.nl-hero__particles span:nth-child(1)  { width: 280px; height: 280px; background: #ffdd00; top: -80px;  left: -60px;  animation-delay: 0s;   animation-duration: 10s; }
.nl-hero__particles span:nth-child(2)  { width: 180px; height: 180px; background: #ff6b00; top: 60%;   right: -40px; animation-delay: 2s;   animation-duration: 9s; }
.nl-hero__particles span:nth-child(3)  { width: 120px; height: 120px; background: #e91e8c; bottom: -30px; left: 30%;  animation-delay: 1s;   animation-duration: 11s; }
.nl-hero__particles span:nth-child(4)  { width:  80px; height:  80px; background: #fff;    top: 20%;   left: 20%;   animation-delay: 3s;   animation-duration: 7s; }
.nl-hero__particles span:nth-child(5)  { width: 200px; height: 200px; background: #6c1fc9; top: -40px;  right: 15%;  animation-delay: 4s;   animation-duration: 12s; }
.nl-hero__particles span:nth-child(6)  { width:  60px; height:  60px; background: #ffdd00; bottom: 10%; right: 30%;  animation-delay: 0.5s; animation-duration: 8s; }
.nl-hero__particles span:nth-child(7)  { width: 100px; height: 100px; background: #e91e8c; top: 50%;   left: 10%;   animation-delay: 2.5s; animation-duration: 9s; }
.nl-hero__particles span:nth-child(8)  { width: 140px; height: 140px; background: #ff6b00; bottom: 5%;  left: 60%;   animation-delay: 1.5s; animation-duration: 10s; }

@keyframes nl-float {
    0%, 100% { transform: translateY(0)   scale(1);   }
    50%       { transform: translateY(-30px) scale(1.06); }
}

/* Hero badge */
.nl-hero__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

/* Hero headline */
.nl-hero__headline {
    position: relative;
    z-index: 1;
    font-size: clamp(28px, 5vw, 54px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nl-highlight {
    background: linear-gradient(90deg, #ffdd00, #ff6b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nl-br-desktop { display: none; }
@media (min-width: 768px) { .nl-br-desktop { display: inline; } }

/* Hero subline */
.nl-hero__sub {
    position: relative;
    z-index: 1;
    font-size: 18px;
    color: rgba(255,255,255,0.88);
    margin-bottom: 36px;
    font-weight: 400;
}

/* Pill tags */
.nl-hero__pills {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.nl-hero__pills span {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 100px;
    transition: background 0.25s, transform 0.25s;
}

.nl-hero__pills span:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

/* ── FORM SECTION ─────────────────────────────────────────── */
.nl-form-section {
    background: #f4f1fb;
    padding: 80px 0 100px;
}

/* Card */
.nl-form-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(108, 31, 201, 0.13),
                0 4px 20px rgba(0,0,0,0.06);
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}

/* Glow accent top-left */
.nl-form-card__glow {
    position: absolute;
    top: -60px;
    left: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233,30,140,0.18) 0%, transparent 70%);
    pointer-events: none;
}

/* Card header */
.nl-form-card__header {
    background: linear-gradient(135deg, #6c1fc9, #e91e8c);
    padding: 44px 40px 36px;
    text-align: center;
    position: relative;
}

.nl-form-card__icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    animation: nl-bounce 2s ease-in-out infinite;
}

@keyframes nl-bounce {
    0%, 100% { transform: translateY(0);   }
    50%       { transform: translateY(-8px); }
}

.nl-form-card__title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.nl-form-card__desc {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

/* Card body */
.nl-form-card__body {
    padding: 40px 40px 44px;
}

/* ── CF7 Form Styling ───────────────────────────────────────── */
.nl-form-card__body .wpcf7 form {
    display: block;
}

/* Inner grid wrapper from the CF7 form */
.nl-form-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}

@media (max-width: 580px) {
    .nl-form-inner { grid-template-columns: 1fr; }
    .nl-form-card__header { padding: 36px 24px 28px; }
    .nl-form-card__body   { padding: 28px 24px 32px; }
}

/* Fields */
.nl-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.nl-field--half { grid-column: span 1; }
.nl-field--full { grid-column: 1 / -1; }

.nl-label {
    font-size: 13px;
    font-weight: 700;
    color: #44395e;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Text & email inputs */
.nl-form-card__body .wpcf7 input[type="text"],
.nl-form-card__body .wpcf7 input[type="email"] {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e8e0f5;
    border-radius: 12px;
    font-size: 15px;
    color: #1a1a2e;
    background: #faf8ff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.nl-form-card__body .wpcf7 input[type="text"]:focus,
.nl-form-card__body .wpcf7 input[type="email"]:focus {
    border-color: #6c1fc9;
    box-shadow: 0 0 0 4px rgba(108, 31, 201, 0.1);
    background: #fff;
}

.nl-form-card__body .wpcf7 input[type="text"]::placeholder,
.nl-form-card__body .wpcf7 input[type="email"]::placeholder {
    color: #b0a5c8;
}

/* ── Custom Checkboxes ────────────────────────────────────── */
.nl-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.nl-form-card__body .wpcf7 .nl-checkbox-group .wpcf7-list-item {
    display: flex;
    align-items: center;
    margin: 0;
}

.nl-form-card__body .wpcf7 .nl-checkbox-group .wpcf7-list-item-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #3a3050;
    user-select: none;
    padding: 12px 16px;
    border: 2px solid #e8e0f5;
    border-radius: 12px;
    width: 100%;
    background: #faf8ff;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.nl-form-card__body .wpcf7 .nl-checkbox-group .wpcf7-list-item-label:hover {
    border-color: #e91e8c;
    background: #fff0f8;
    transform: translateX(4px);
}

/* Hide native checkbox */
.nl-form-card__body .wpcf7 .nl-checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #c9b8e8;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    flex-shrink: 0;
}

.nl-form-card__body .wpcf7 .nl-checkbox-group input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #6c1fc9, #e91e8c);
    border-color: transparent;
}

.nl-form-card__body .wpcf7 .nl-checkbox-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 6px;
    height: 11px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.nl-form-card__body .wpcf7 .nl-checkbox-group input[type="checkbox"]:checked ~ span {
    color: #6c1fc9;
    font-weight: 600;
}

/* Checked row highlight */
.nl-form-card__body .wpcf7 .nl-checkbox-group .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label {
    border-color: #6c1fc9;
    background: #f3ecff;
}

/* ── Submit Button ────────────────────────────────────────── */
.nl-submit-wrap {
    margin-top: 8px;
}

.nl-form-card__body .wpcf7 input[type="submit"],
.nl-form-card__body .wpcf7 button[type="submit"] {
    width: 100%;
    padding: 17px 32px;
    background: linear-gradient(135deg, #ff6b00 0%, #e91e8c 50%, #6c1fc9 100%);
    background-size: 200% 200%;
    animation: nl-btn-gradient 4s ease infinite;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(233, 30, 140, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.nl-form-card__body .wpcf7 input[type="submit"]:hover,
.nl-form-card__body .wpcf7 button[type="submit"]:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 40px rgba(233, 30, 140, 0.55);
}

.nl-form-card__body .wpcf7 input[type="submit"]:active,
.nl-form-card__body .wpcf7 button[type="submit"]:active {
    transform: translateY(0) scale(0.98);
}

@keyframes nl-btn-gradient {
    0%   { background-position: 0% 50%;   }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%;   }
}

/* Shimmer effect on button */
.nl-form-card__body .wpcf7 input[type="submit"]::before,
.nl-form-card__body .wpcf7 button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    animation: nl-shimmer 3s ease-in-out infinite;
}

@keyframes nl-shimmer {
    0%   { left: -75%; }
    100% { left: 125%; }
}

/* CF7 Response messages */
.nl-form-card__body .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: none !important;
}

.nl-form-card__body .wpcf7 .wpcf7-mail-sent-ok {
    background: #e8f9f0;
    color: #1a8c50;
}

.nl-form-card__body .wpcf7 .wpcf7-validation-errors,
.nl-form-card__body .wpcf7 .wpcf7-mail-sent-ng {
    background: #fde8ef;
    color: #c62a2a;
}

/* Validation error spans */
.nl-form-card__body .wpcf7 .wpcf7-not-valid-tip {
    font-size: 12px;
    color: #e91e8c;
    margin-top: 4px;
}

/* ── TRUST BAR ────────────────────────────────────────────── */
.nl-trust {
    background: #1a1a2e;
    padding: 28px 0;
}

.nl-trust__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 40px;
}

.nl-trust__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.78);
    font-size: 14px;
    font-weight: 500;
}

.nl-trust__icon {
    font-size: 20px;
    line-height: 1;
}

/* ── PERKS ────────────────────────────────────────────────── */
.nl-perks {
    background: #fff;
    padding: 90px 0;
}

.nl-section-title {
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 800;
    text-align: center;
    color: #1a1a2e;
    margin-bottom: 52px;
    position: relative;
}

.nl-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b00, #e91e8c);
    border-radius: 100px;
    margin: 14px auto 0;
}

.nl-perks__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.nl-perk-card {
    background: #faf8ff;
    border: 2px solid #ede8f8;
    border-radius: 20px;
    padding: 36px 28px 32px;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.nl-perk-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(108,31,201,0.12);
    border-color: #c9a8f5;
}

.nl-perk-card__icon {
    font-size: 44px;
    margin-bottom: 16px;
    display: block;
}

.nl-perk-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.nl-perk-card p {
    font-size: 14px;
    line-height: 1.7;
    color: #5e5676;
}

/* ── CTA REPEAT ───────────────────────────────────────────── */
.nl-cta-repeat {
    background: linear-gradient(135deg, #ff6b00 0%, #e91e8c 50%, #6c1fc9 100%);
    padding: 60px 0;
    text-align: center;
}

.nl-cta-repeat__text {
    font-size: 18px;
    color: rgba(255,255,255,0.92);
    margin-bottom: 28px;
}

.nl-cta-repeat__text strong {
    color: #ffdd00;
    font-weight: 800;
}

.nl-cta-btn {
    display: inline-block;
    padding: 16px 40px;
    background: #fff;
    color: #6c1fc9;
    font-size: 17px;
    font-weight: 800;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.nl-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.3);
    color: #e91e8c;
}

/* ── Scroll link smooth ───────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── Confetti success overlay ─────────────────────────────── */
.nl-confetti-piece {
    position: fixed;
    top: -20px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    opacity: 0;
    pointer-events: none;
    animation: nl-confetti-fall linear forwards;
    z-index: 9999;
}

@keyframes nl-confetti-fall {
    0%   { transform: translateY(0)    rotate(0deg);   opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ── Responsive tweaks ────────────────────────────────────── */
@media (max-width: 768px) {
    .nl-hero        { padding: 70px 0 90px; }
    .nl-perks       { padding: 60px 0; }
    .nl-perks__grid { grid-template-columns: 1fr 1fr; }
    .nl-trust__list { gap: 10px 24px; }
}

@media (max-width: 480px) {
    .nl-perks__grid { grid-template-columns: 1fr; }
    .nl-cta-btn     { padding: 14px 28px; font-size: 15px; }
}
