/* Styles from newsletter-signup.php */
body.banner-visible {
    padding-top: 140px !important;
}

body:not(.banner-visible) {
    padding-top: 80px !important;
}

.newsletter-signup {
    margin-top: 0;
    padding: 4rem 1rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.signup-form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.signup-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2.5rem;
}

/* Newsletter form styles */
.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    width: 100%;
}

.form-group input[type="email"],
.form-group input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #15635E;
    box-shadow: 0 0 0 3px rgba(21, 99, 94, 0.1);
}

.form-group input.success {
    border-color: #28a745;
}

.form-group input.error {
    border-color: #dc3545;
}

/* Checkbox styling with proper vertical alignment */
.checkbox-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    width: 100%;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.checkbox-text {
    display: inline-block;
    line-height: 1.5;
    flex: 1;
}

.btn {
    width: 100%;
    padding: 1rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.btn:hover {
    background: #1e7e34;
}

.btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.btn-text,
.btn-loading {
    display: inline;
}

.btn-loading {
    display: none;
}

.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
    width: 100%;
}

.field-error.show {
    display: block;
}

.success-message,
.error-message {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 12px;
    width: 100%;
    display: block !important;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.btn-secondary {
    background: #6c757d;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background: #5a6268;
}

.privacy-note {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.5;
    width: 100%;
}

.privacy-note a {
    color: #15635E;
    text-decoration: none;
}

.privacy-note a:hover {
    text-decoration: underline;
}

/* Styles from includes/newsletter-signup.php */
.newsletter-signup-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    margin: 2rem 0;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-text h2 {
    color: #15635E;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.newsletter-text p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.newsletter-form-compact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.form-group-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-compact input {
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-group-compact input:focus {
    outline: none;
    border-color: #15635E;
    box-shadow: 0 0 0 3px rgba(21, 99, 94, 0.1);
}

.form-group-compact input.success {
    border-color: #28a745;
}

.form-group-compact input.error {
    border-color: #dc3545;
}

.checkbox-group-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-label-compact {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
    text-align: left;
}

.checkbox-label-compact input[type="checkbox"] {
    margin: 0;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.checkbox-text-compact {
    flex: 1;
}

.btn-newsletter-compact {
    background: #15635E;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    width: 100%;
}

.btn-newsletter-compact:hover {
    background: #0f4a47;
}

.btn-newsletter-compact:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.privacy-note-compact {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.5;
}

.privacy-note-compact a {
    color: #15635E;
    text-decoration: none;
}

.privacy-note-compact a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .newsletter-signup-section {
        padding: 2rem 0;
    }

    .newsletter-text h2 {
        font-size: 1.5rem;
    }

    .newsletter-text p {
        font-size: 1rem;
    }

    .newsletter-form-compact {
        max-width: 100%;
    }
}