/* Newsletter Page Styles */

/* Newsletter Page Layout */
.newsletter-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Newsletter Form Container */
.newsletter-form-container {
    max-width: 500px;
    margin: 0 auto;
}

/* Email Octopus Form Overrides */
.newsletter-form-container form {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

.newsletter-form-container .field-group {
    margin-bottom: 1rem;
    width: 100%;
}

.newsletter-form-container input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    background: white;
}

.newsletter-form-container input[type="email"]:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.newsletter-form-container input[type="submit"] {
    width: 100%;
    padding: 0.75rem 2rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
    margin-top: 0.5rem;
}

.newsletter-form-container input[type="submit"]:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.newsletter-form-container input[type="submit"]:active {
    transform: translateY(0);
}

/* Success/Error Messages */
.newsletter-form-container .success-message,
.newsletter-form-container .error-message {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.newsletter-form-container .success-message {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.newsletter-form-container .error-message {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Benefits Grid Responsive */
@media (max-width: 768px) {
    .newsletter-page .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Feature Icons Hover Effect */
.newsletter-page .bg-red-100 {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.newsletter-page .bg-red-100:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
}

/* Testimonial Cards */
.newsletter-page .bg-white {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.newsletter-page .bg-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Loading state for form */
.newsletter-form-container.loading input[type="submit"] {
    background: #6b7280;
    cursor: not-allowed;
    position: relative;
}

.newsletter-form-container.loading input[type="submit"]:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form labels styling */
.newsletter-form-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

/* Privacy notice styling */
.newsletter-page .text-sm.text-gray-500 a {
    color: #dc3545;
    text-decoration: underline;
}

.newsletter-page .text-sm.text-gray-500 a:hover {
    color: #c82333;
}