/* ================================
   MailerLite Form Custom Styles
   ================================ */

.newsletter {
    border: 1px solid var(--color-text-muted);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    max-width: 615px;
    /* Centre the box */
    margin: 1rem auto;
    background-color: rgba(15, 16, 10, 0.75);
    /* Add subtle shadow */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    /* Ensures padding doesn't increase total width */
    box-sizing: border-box;
    text-align: center;
    /* Set font size so it'll be consistent across website */
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    height:280px;
    /* Horizontally centre everything */
    align-items: center;
    /* Vertically centre everything */
    justify-content: center;
}

.newsletter h2 {
    font-size: 1.5rem;
    font-family: var(--font-header);
    margin-top: 0rem;
    color: var(--color-accent);
    text-align: center;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    /* Set font size so it'll be consistent across website */
    font-family: var(--font-header);
    font-size: 2rem;
}

.newsletter .newsletter-description {
    margin-bottom: 1.5rem;
    /* Set font size so it'll be consistent across website */
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--color-accent);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter input,
.newsletter button {
    font-size: 1rem;
}

.newsletter-success {
    display: none;
    margin-top: 1rem;
    text-align: center;
}

.newsletter-success.show {
    display: block;
    animation: fadeInSuccess 0.5s ease;
}

/* Input + button row styling */
.newsletter-widget form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}



/* --- NEWSLETTER SPECIFIC --- */
/* Page-specific adjustments for newsletter.html */
.newsletter-page .newsletter {
    /* remove dark background */  
    background: none;
    /* remove border */
    border: none;
    /* optional: make wider if you like */
    max-width: 615px;
}

.newsletter-page .newsletter h2 {
    font-family: var(--font-header);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    text-shadow: none;
}

/* Description in cream, not gold */
.newsletter-page .newsletter .newsletter-description {
    color: var(--color-text-main);
    opacity: 0.85;
    font-size: 0.9rem;
    font-family: var(--font-body);
    margin-bottom: 1rem;
}

/* Dark input with gold border */
.newsletter-page .email {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 0;
    background: rgba(15, 16, 10, 0.8);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 0.9rem;
    flex: 1;
}

.newsletter-page .email::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}

/* Gold button matching site's .btn style */
.newsletter-page .subscribe-btn {
    font-family: var(--font-header);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--color-accent);
    color: var(--color-bg);
    border: 1px solid var(--color-accent);
    border-radius: 0;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.newsletter-page .subscribe-btn:hover {
    background: transparent;
    color: var(--color-accent);
    transform: none;
    box-shadow: none;
}




.email {
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    font-family: var(--font-body);
}

.subscribe-btn {
    font-family: var(--font-header);
    border: none;
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 10px rgba(255,255,255,.2),
        0 0 20px rgba(255,255,255,.15);
}

.subscribe-btn.success {
    animation:
        glowPulse 1.2s ease;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 0 rgba(255,255,255,0);
    }
    50% {
        box-shadow:
            0 0 20px rgba(255,255,255,.8),
            0 0 40px rgba(255,255,255,.4);
    }
    100% {
        box-shadow: 0 0 0 rgba(255,255,255,0);
    }
}

.success-message {
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity .6s ease,
        transform .6s ease;
    margin-top: 1rem;
    /* Have message initially hidden */
    display: none;
    font-size: 0.9rem;
}

.success-message.show {
    /* Show when .show class is added */
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.honeypot {
    position: absolute;
    left: -9999px;
}
