/**
 * Simple Newsletter Signup Styles
 *
 * @package SimpleNewsletterSignup
 */

/* Form Container */
.sns-newsletter-form {
    max-width: 400px;
}

/* Form Groups */
.sns-form-group {
    margin-bottom: 15px;
}

/* Labels */
.sns-newsletter-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.sns-newsletter-form .required {
    color: #dc3232;
}

/* Input Fields */
.sns-newsletter-form .sns-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.sns-newsletter-form .sns-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Help Text */
.sns-help-text {
    margin: 10px 0;
    font-size: 13px;
    color: #666;
}

.sns-help-text small {
    font-size: inherit;
}

/* Submit Button */
.sns-newsletter-form .sns-submit {
    background-color: #0073aa;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    width: 100%;
}

.sns-newsletter-form .sns-submit:hover {
    background-color: #005a87;
}

.sns-newsletter-form .sns-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Response Messages */
.sns-response {
    margin-top: 15px;
}

.sns-response span {
    display: block;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
}

.sns-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.sns-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* Widget Specific Styles */
.sns-newsletter-widget {
    padding: 20px;
}

.sns-widget-intro {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.sns-widget-intro p:last-child {
    margin-bottom: 0;
}

/* Title */
.sns-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* Responsive Design */
@media (max-width: 600px) {
    .sns-newsletter-form {
        max-width: 100%;
    }
    
    .sns-newsletter-form .sns-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Accessibility */
.sns-newsletter-form *:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.sns-newsletter-form button:focus {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

/* Loading State */
.sns-newsletter-form.sns-loading .sns-submit::after {
    content: '...';
    animation: sns-dots 1.5s infinite;
}

@keyframes sns-dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* RTL Support */
.rtl .sns-newsletter-form label,
.rtl .sns-help-text {
    text-align: right;
}
