/**
 * Newsletter Subscription Form Styles
 * 
 * Provides styling for the newsletter subscription shortcode
 */

/* Main container */
.wp-omeda-newsletter-subscription {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Heading section */
.wp-omeda-newsletter-heading {
    margin-bottom: 1.5rem;
    text-align: center;
}

.wp-omeda-newsletter-heading h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

/* Content area with side-by-side layout */
.wp-omeda-newsletter-content {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
}

/* Newsletter options column (left side) */
.wp-omeda-newsletter-options {
    flex: 1;
    min-width: 0;
}

.wp-omeda-newsletter-option {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    transition: background-color 0.2s ease;
}

.wp-omeda-newsletter-option:hover {
    background: #f3f4f6;
}

.wp-omeda-newsletter-option label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 500;
    margin: 0;
}

.wp-omeda-newsletter-checkbox {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.wp-omeda-newsletter-title {
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.5;
}

.wp-omeda-newsletter-description {
    margin: 0.5rem 0 0 2rem;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Form column (right side) */
.wp-omeda-newsletter-form {
    flex: 1;
    min-width: 0;
    padding: 1.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.wp-omeda-form-field {
    margin-bottom: 1rem;
}

.wp-omeda-form-field label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.wp-omeda-form-field .required {
    color: #dc2626;
    margin-left: 0.25rem;
}

.wp-omeda-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wp-omeda-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wp-omeda-submit-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.wp-omeda-submit-button:hover {
    background: #2563eb;
}

.wp-omeda-submit-button:active {
    transform: scale(0.98);
}

.wp-omeda-submit-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Form messages */
.wp-omeda-form-messages {
    margin-top: 1rem;
    padding: 0;
    border-radius: 6px;
    display: none;
}

.wp-omeda-form-messages.success {
    display: block;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
}

.wp-omeda-form-messages.error {
    display: block;
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.wp-omeda-form-messages p {
    padding: 0.75rem;
    margin: 0;
    font-size: 0.875rem;
}

.wp-omeda-form-messages.success p {
    color: #065f46;
}

.wp-omeda-form-messages.error p {
    color: #991b1b;
}

/* Disclaimer text */
.wp-omeda-disclaimer {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.5;
    text-align: center;
}

/* Admin notice */
.wp-omeda-newsletter-notice {
    padding: 1rem;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    color: #92400e;
    font-size: 0.875rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .wp-omeda-newsletter-subscription {
        padding: 1.5rem;
    }

    .wp-omeda-newsletter-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .wp-omeda-newsletter-heading h2 {
        font-size: 1.5rem;
    }

    .wp-omeda-newsletter-description {
        margin-left: 1.5rem;
    }

    .wp-omeda-newsletter-form {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .wp-omeda-newsletter-subscription {
        padding: 1rem;
        margin: 1rem;
    }

    .wp-omeda-newsletter-heading h2 {
        font-size: 1.25rem;
    }

    .wp-omeda-newsletter-option {
        padding: 0.5rem;
    }

    .wp-omeda-newsletter-description {
        margin-left: 1.25rem;
        font-size: 0.8125rem;
    }
}

/* Logged-in user message */
.wp-omeda-newsletter-logged-in {
    text-align: center;
    padding: 3rem 2rem;
}

.wp-omeda-newsletter-logged-in-message {
    max-width: 600px;
    margin: 0 auto;
}

.wp-omeda-message-text {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.wp-omeda-dashboard-link {
    margin: 0;
}

.wp-omeda-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: #3b82f6;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.wp-omeda-button:hover {
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
}

.wp-omeda-button:active {
    transform: scale(0.98);
}

@media (max-width: 480px) {
    .wp-omeda-newsletter-logged-in {
        padding: 2rem 1rem;
    }

    .wp-omeda-message-text {
        font-size: 1rem;
    }

    .wp-omeda-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
}

