/* Custom Newsletter Form Styles */

/* Newsletter Signup Section Styling */
.newsletter-signup {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background: #1a2329;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-signup::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(189, 214, 83, 0.08) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-10px, -10px) rotate(1deg); }
    50% { transform: translate(10px, -5px) rotate(-1deg); }
    75% { transform: translate(-5px, 10px) rotate(0.5deg); }
}

.newsletter-signup h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.newsletter-signup p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0 0 2.5rem 0;
    position: relative;
    z-index: 1;
}

.newsletter-signup strong {
    color: #bdd653;
    font-weight: 700;
}

/* Mobile Responsive for Newsletter Signup */
@media (max-width: 768px) {
    .newsletter-signup {
        padding: 2rem 1rem;
        margin: 0 1rem;
        border-radius: 15px;
    }
    
    .newsletter-signup h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .newsletter-signup p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .newsletter-signup {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
        border-radius: 12px;
    }
    
    .newsletter-signup h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .newsletter-signup p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
}

/* Target the original HTML structure */
.tnp.tnp-subscription {
    max-width: 500px;
    margin: 0 auto;
    font-family: inherit;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tnp.tnp-subscription form {
    margin: 0;
    padding: 0;
    border: 0;
    width: 100%;
}

/* Create a wrapper effect using the form itself */
.tnp.tnp-subscription form {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tnp.tnp-subscription form:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    border-color: rgba(39, 48, 57, 0.5);
}

.tnp-subscription-posts .tnp-subscription {
    max-width: 600px;
    margin: 60px auto!important;
}

.tnp.tnp-subscription .tnp-field {
    margin: 0;
    padding: 0;
    border: 0;
}

.tnp.tnp-subscription .tnp-field-email {
    flex: 1;
}

.tnp.tnp-subscription .tnp-field-button {
    flex-shrink: 0;
}

/* Hide the label since we're using placeholder */
.tnp.tnp-subscription label {
    display: none !important;
}

.tnp.tnp-subscription .tnp-email {
    width: 100%;
    padding: 15px 20px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.tnp.tnp-subscription .tnp-email::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.tnp.tnp-subscription .tnp-email:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #273039;
}

.tnp.tnp-subscription .tnp-submit {
    background: #273039;
    color: #fff;
    border: none;
    padding: 15px 30px;
    margin: 3px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-width: 120px;
}

.tnp.tnp-subscription .tnp-submit:hover {
    background: #1a2329;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(189, 214, 83, 0.3);
}

.tnp.tnp-subscription .tnp-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(189, 214, 83, 0.3);
}

/* Focus state for the entire form */
.tnp.tnp-subscription form:focus-within {
    border-color: #273039;
    box-shadow: 0 0 0 3px rgba(39, 48, 57, 0.3), 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .tnp.tnp-subscription form {
        flex-direction: column;
        border-radius: 25px;
        gap: 0;
    }
    
    .tnp.tnp-subscription .tnp-email {
        padding: 12px 18px;
        font-size: 0.95rem;
        border-radius: 25px 25px 0 0;
    }
    
    .tnp.tnp-subscription .tnp-submit {
        padding: 12px 20px;
        font-size: 0.95rem;
        border-radius: 0 0 25px 25px;
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tnp.tnp-subscription {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .tnp.tnp-subscription form {
        border-radius: 20px;
    }
    
    .tnp.tnp-subscription .tnp-email {
        padding: 10px 16px;
        font-size: 0.9rem;
        border-radius: 20px 20px 0 0;
    }
    
    .tnp.tnp-subscription .tnp-submit {
        padding: 10px 16px;
        font-size: 0.9rem;
        border-radius: 0 0 20px 20px;
    }
}

/* Alternative Style - Rounded Button */
.tnp.tnp-subscription.style-rounded form {
    border-radius: 50px;
}

.tnp.tnp-subscription.style-rounded .tnp-email {
    border-radius: 50px 0 0 50px;
}

.tnp.tnp-subscription.style-rounded .tnp-submit {
    border-radius: 0 50px 50px 0;
}

@media (max-width: 768px) {
    .tnp.tnp-subscription.style-rounded form {
        border-radius: 25px;
    }
    
    .tnp.tnp-subscription.style-rounded .tnp-email {
        border-radius: 25px 25px 0 0;
    }
    
    .tnp.tnp-subscription.style-rounded .tnp-submit {
        border-radius: 0 0 25px 25px;
    }
}

/* Loading State */
.tnp.tnp-subscription.loading .tnp-submit {
    background: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

.tnp.tnp-subscription.loading .tnp-submit::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top: 2px solid #273039;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success State */
.tnp.tnp-subscription.success form {
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid #2ecc71;
}

.tnp.tnp-subscription.success .tnp-email {
    background: transparent;
}

.tnp.tnp-subscription.success .tnp-submit {
    background: #2ecc71;
    color: white;
}

/* Error State */
.tnp.tnp-subscription.error form {
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid #e74c3c;
}

.tnp.tnp-subscription.error .tnp-email {
    background: transparent;
}

.tnp.tnp-subscription.error .tnp-submit {
    background: #e74c3c;
    color: white;
}

/* Dark Theme Variant */
.tnp.tnp-subscription.dark-theme form {
    background: #273039;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tnp.tnp-subscription.dark-theme .tnp-email {
    background: #273039;
    color: white;
}

.tnp.tnp-subscription.dark-theme .tnp-email::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.tnp.tnp-subscription.dark-theme .tnp-submit {
    background: linear-gradient(135deg, #bdd653 0%, #a8c442 100%);
    color: #273039;
}

/* Compact Style */
.tnp.tnp-subscription.compact form {
    border-radius: 8px;
}

.tnp.tnp-subscription.compact .tnp-email {
    padding: 10px 15px;
    font-size: 0.9rem;
    border-radius: 8px 0 0 8px;
}

.tnp.tnp-subscription.compact .tnp-submit {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 0 8px 8px 0;
    min-width: 100px;
}
