/* Custom Newsletter Frontend Styles */

.cn-newsletter-form {
    max-width: 100%;
    margin: 20px 0;
}

.cn-subscription-form {
    width: 100%;
}

.cn-form-group {
    margin-bottom: 15px;
}

.cn-email-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.cn-email-input:focus {
    outline: none;
    border-color: #FF4444;
}

.cn-terms-group {
    display: flex;
    align-items: flex-start;
}

.cn-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    color: #666;
}

.cn-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 2px;
    cursor: pointer;
}

.cn-submit-button {
    width: 100%;
    padding: 12px 20px;
    background-color: #FF4444;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cn-submit-button:hover {
    background-color: #E63939;
}

.cn-submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.cn-form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.cn-form-message.cn-success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cn-form-message.cn-error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Sidebar Widget Styles */
.widget .cn-newsletter-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.widget .cn-newsletter-form h3 {
    margin-top: 0;
    font-size: 18px;
    margin-bottom: 10px;
}

.widget .cn-newsletter-form p {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

/* Subscriber Count */
.cn-subscriber-count {
    font-size: 13px;
    color: #666;
    display: inline-block;
    margin-bottom: 10px;
}

/* Loading State */
.cn-subscription-form.cn-loading .cn-submit-button {
    opacity: 0.6;
    cursor: wait;
}

.cn-subscription-form.cn-loading .cn-submit-button:after {
    content: '...';
    display: inline-block;
    animation: cn-dots 1.5s infinite;
}

@keyframes cn-dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Responsive */
@media (max-width: 768px) {
    .cn-email-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
