/* Newsletter Popup Styles */
.di-newsletter-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: diFadeIn 0.3s;
}

@keyframes diFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.di-newsletter-popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.di-popup-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: diSlideUp 0.3s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@keyframes diSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.di-popup-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: color 0.3s;
}

.di-popup-close:hover {
    color: #1a1a1a;
}

.di-popup-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a1a;
}

.di-popup-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.di-email-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.di-email-form input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    background-color: #ffffff;
    transition: border-color 0.3s;
}

.di-email-form input[type="email"]:focus {
    outline: none;
    border-color: #1a1a1a;
}

.di-email-form button {
    width: 100%;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.di-email-form button:hover {
    background-color: #333;
}

/* AWeber Form Styling */
.di-aweber-wrapper {
    margin: 0;
}

.di-aweber-wrapper input[type="text"],
.di-aweber-wrapper input[type="email"] {
    width: 100% !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    margin-bottom: 10px !important;
    box-sizing: border-box !important;
    transition: border-color 0.3s !important;
}

.di-aweber-wrapper input[type="text"]:focus,
.di-aweber-wrapper input[type="email"]:focus {
    outline: none !important;
    border-color: #1a1a1a !important;
}

.di-aweber-wrapper input[type="submit"],
.di-aweber-wrapper button[type="submit"] {
    width: 100% !important;
    padding: 16px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background-color 0.3s !important;
    box-sizing: border-box !important;
}

.di-aweber-wrapper input[type="submit"]:hover,
.di-aweber-wrapper button[type="submit"]:hover {
    background-color: #333 !important;
}

.di-aweber-wrapper label {
    display: none !important;
}

.di-aweber-wrapper p {
    font-size: 14px !important;
    color: #999 !important;
    margin-top: 15px !important;
}

.di-aweber-wrapper .AW-Form-231160561 {
    max-width: 100% !important;
}

/* Generic Form Wrapper Styling */
.di-form-wrapper {
    margin: 0;
}

.di-form-wrapper input[type="text"],
.di-form-wrapper input[type="email"] {
    width: 100% !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    margin-bottom: 10px !important;
    box-sizing: border-box !important;
}

.di-form-wrapper input[type="submit"],
.di-form-wrapper button[type="submit"] {
    width: 100% !important;
    padding: 16px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

/* Newsletter Link Styles */
.newsletter-link {
    color: #1a1a1a;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.3s;
    display: inline-block;
}

.newsletter-link:hover {
    opacity: 0.7;
}

.di-auto-link {
    margin-left: 10px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .di-popup-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .di-popup-content h3 {
        font-size: 24px;
    }
    
    .di-popup-close {
        right: 15px;
        top: 15px;
        font-size: 24px;
    }
}