/* Newsletter Widget Styles */
.avawa-newsletter-widget {
    margin-bottom: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.avawa-newsletter-widget .widget-title {
    color: #222222;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.avawa-newsletter-description {
    color: #555555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Newsletter Form Styles */
.avawa-newsletter-form .newsletter-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.avawa-newsletter-form .newsletter-title {
    color: #222222;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.avawa-newsletter-form .newsletter-fields {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Email Input */
.avawa-newsletter-form input[type="email"],
.avawa-newsletter-form input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d1d1;
    background-color: #ffffff;
    color: #333333;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    height: 48px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.avawa-newsletter-form input[type="email"]:focus,
.avawa-newsletter-form input[type="text"]:focus {
    border-color: #000000;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.avawa-newsletter-form input[type="email"]::placeholder,
.avawa-newsletter-form input[type="text"]::placeholder {
    color: #888;
    opacity: 1;
}

/* Acceptance Checkbox */
.avawa-newsletter-form .wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    margin: 10px 0 5px;
    background: none;
    padding: 0;
}

.avawa-newsletter-form .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: flex-start;
}

.avawa-newsletter-form .wpcf7-acceptance input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 10px;
    width: 16px;
    height: 16px;
    min-width: 16px;
    cursor: pointer;
    accent-color: #ff5353;
}

.avawa-newsletter-form .wpcf7-acceptance span.wpcf7-list-item-label {
    color: #555555;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}

.avawa-newsletter-form .wpcf7-acceptance a {
    color: #ff5353; /* Using theme's accent color */
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.avawa-newsletter-form .wpcf7-acceptance a:hover {
    color: #e04a4a; /* Slightly darker shade of accent color */
    text-decoration: underline;
    text-decoration: underline;
}

/* Submit Button */
.avawa-newsletter-form .wpcf7-submit {
    background-color: #4CAF50;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 5px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avawa-newsletter-form .wpcf7-submit:hover {
    background-color: #3e8e41;
    transform: translateY(-1px);
}

.avawa-newsletter-form .wpcf7-submit:active {
    transform: translateY(0);
}

/* Response Messages */
.avawa-newsletter-form .wpcf7-response-output {
    margin: 15px 0 0 !important;
    padding: 12px 15px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    border: 1px solid transparent !important;
}

.avawa-newsletter-form .wpcf7-mail-sent-ok {
    background-color: #edf9f0 !important;
    color: #2e7d32 !important;
    border-color: #c8e6c9 !important;
}

.avawa-newsletter-form .wpcf7-validation-errors,
.avawa-newsletter-form .wpcf7-acceptance-missing {
    background-color: #fff8e1 !important;
    color: #ff8f00 !important;
    border-color: #ffe082 !important;
}

.avawa-newsletter-form .wpcf7-spam-blocked,
.avawa-newsletter-form .wpcf7-mail-sent-ng {
    background-color: #ffebee !important;
    color: #c62828 !important;
    border-color: #ffcdd2 !important;
}

/* Error Messages */
.avawa-newsletter-form .wpcf7-not-valid-tip {
    font-size: 12px !important;
    color: #f44336 !important;
    margin-top: 5px !important;
    margin-bottom: 0 !important;
    padding: 0 5px !important;
    display: block !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .avawa-newsletter-form .newsletter-title {
        font-size: 18px;
    }
    
    .avawa-newsletter-form input[type="email"],
    .avawa-newsletter-form input[type="text"],
    .avawa-newsletter-form .wpcf7-submit {
        height: 44px;
        font-size: 15px;
    }
}

/* Error message styles */
.avawa-newsletter-error {
    margin-top: 15px;
}

.avawa-newsletter-form .wpcf7-form-control {
    width: 100%;
    padding: 2px 6px;
    color: #222;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.avawa-newsletter-form .wpcf7-form-control:focus {
    border-color: #aaaaaa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.avawa-newsletter-form .wpcf7-submit {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.avawa-newsletter-form .wpcf7-submit:hover {
    background-color: #1b1b1b;
}

.avawa-newsletter-form .wpcf7-response-output {
    margin: 10px 0 0;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
}

.avawa-newsletter-form .wpcf7-not-valid-tip {
    font-size: 12px;
    color: #ff6b6b;
    margin-top: -10px;
    margin-bottom: 10px;
    display: block;
}

/* Error message styles */
.avawa-newsletter-error {
    background-color: #fff5f5;
    border-left: 4px solid #ff3860;
    color: #ff3860;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
}

.avawa-newsletter-error a {
    color: #ff3860;
    text-decoration: underline;
}

.avawa-newsletter-error a:hover {
    text-decoration: none;
}

/* Admin notice for missing plugin */
body.wp-admin .avawa-newsletter-error {
    background-color: #f8f9fa;
    border-left: 4px solid #007cba;
    color: #1e1e1e;
    padding: 15px;
    margin: 15px 0;
}
