/* ==========================================================
   NEWSLETTER PAGE
========================================================== */

.newsletter-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
}

/* ==========================================================
   HERO
========================================================== */

.newsletter-hero {
    background: linear-gradient(135deg, #1d3d73, #2c146c);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    background: rgba(255,255,255,.15);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: .9rem;
    margin-bottom: 20px;
}

.newsletter-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-intro {
    max-width: 700px;
    margin: 0 auto 35px;
    font-size: 1.2rem;
    line-height: 1.7;
}

.hero-benefits {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px;
    max-width: 500px;
    text-align: left;
}

.hero-benefits li {
    padding: 8px 0;
    font-size: 1.05rem;
}

/* ==========================================================
   FORM
========================================================== */

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.newsletter-form input {
    width: 380px;
    max-width: 100%;
    padding: 15px 18px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    background: #d4af37;
    color: #000;
    border: none;
    padding: 15px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: .25s;
}

.newsletter-form button:hover {
    background: #c39b20;
}

.newsletter-note {
    font-size: .95rem;
    opacity: .9;
}

/* ==========================================================
   SECTIONS
========================================================== */

.newsletter-features,
.newsletter-preview,
.newsletter-cta {
    padding: 70px 20px;
}

.newsletter-preview {
    margin-top: 80px;
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading h2 {
    color: #2c146c;
    margin-bottom: 10px;
}

.section-heading p {
    color: #666;
}

/* ==========================================================
   FEATURE CARDS
========================================================== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap: 25px;
}

.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid #e8e8e8;
    box-shadow: 0 5px 15px rgba(0,0,0,.06);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #2c146c;
    margin-bottom: 12px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* ==========================================================
   NEWSLETTER PREVIEW
========================================================== */

.preview-card {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
}

.preview-image {
    flex: 1;
    max-width: 460px;
    height: 760px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    background: #fff;
}

.preview-image img {
    width: 100%;
    display: block;
}

.preview-image::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
   height: 180px;
     background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.4) 45%,
        rgba(255,255,255,0.85) 75%,
        #fff 100%
    );
    pointer-events: none;
}

.preview-content {
    flex: 1;
}

.preview-content h3 {
    color: #2c146c;
    margin-bottom: 20px;
}

.preview-list {
    padding-left: 20px;
    line-height: 2;
    margin-bottom: 30px;
}

.preview-button {
    display: inline-block;
    background: #2c146c;
    color: #fff;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 8px;
    transition: .25s;
}

.preview-button:hover {
    background: #1d0d48;
}

/* ==========================================================
   CTA
========================================================== */

.newsletter-cta {
    background: #f7f7fb;
    text-align: center;
}

.newsletter-cta h2 {
    color: #2c146c;
    margin-bottom: 15px;
}

.newsletter-cta p {
    max-width: 650px;
    margin: 0 auto 30px;
}

/* ==========================================================
   UTILITIES
========================================================== */

.sr-only {
    position: absolute;
    left: -9999px;
}

/* ==========================================================
   AJAX Messages
========================================================== */

#newsletter-message {

    margin-top:20px;
    font-weight:600;
    text-align:center;

}

.newsletter-success {

    color:#0a7a2f;

}

.newsletter-error {

    color:#c62828;

}

.newsletter-info{
    margin-top:40px;
}

.newsletter-arrow{
    margin-top:25px;
    font-size:1.2rem;
    font-weight:600;
    color:#D4AF37;
}

.newsletter-placeholder{
    min-height:300px;
    background:#f8f8fc;
    border:2px dashed #d4af37;
    border-radius:12px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:30px;
}

.newsletter-placeholder h3{
    color:#2c146c;
    margin-bottom:15px;
}

.newsletter-placeholder p{
    color:#666;
    max-width:300px;
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:768px) {

    .newsletter-hero {
        padding: 60px 20px;
    }

    .newsletter-hero h1 {
        font-size: 2rem;
    }

    .hero-intro {
        font-size: 1rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .preview-card {
        flex-direction: column;
    }

}