/* Modern Newsletter Signup Component Styles
 * Premium design with refined glassmorphism
 * @version 2.1.0
 */

.newsletter-signup-section {
    background: linear-gradient(135deg, #0c2340 0%, #1a3a5c 50%, #0c2340 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

/* Ultra-black dark mode */
[data-theme="dark"] .newsletter-signup-section {
    background: #000000 !important;
}

/* Subtle animated background pattern */
.newsletter-signup-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.06) 0%, transparent 40%);
    animation: newsletterBgPulse 8s ease-in-out infinite;
}

@keyframes newsletterBgPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.newsletter-signup-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 28px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Header Styles */
.newsletter-header {
    color: white;
    margin-bottom: 2rem;
}

.newsletter-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    box-shadow:
        0 8px 20px rgba(212, 175, 55, 0.4),
        0 0 0 4px rgba(212, 175, 55, 0.15);
    animation: newsletter-float 4s ease-in-out infinite;
}

@keyframes newsletter-float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

.newsletter-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.newsletter-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Modern Form Container */
.newsletter-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Form Main Row */
.form-main-row {
    display: flex;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.form-field {
    flex: 1;
}

.email-field {
    flex: 2;
}

.name-field {
    flex: 1.5;
}

.submit-field {
    flex: 0 0 auto;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    z-index: 2;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 14px;
    font-size: 1rem;
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    border-color: #d4af37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: #64748b;
    opacity: 1;
}

/* Submit Button - Premium Gold */
.newsletter-submit-btn {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #0c2340;
    border: none;
    border-radius: 14px;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 160px;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow:
        0 4px 16px rgba(212, 175, 55, 0.4),
        0 0 0 0 transparent;
}

.newsletter-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
    transform: translateY(-3px);
    box-shadow:
        0 8px 28px rgba(212, 175, 55, 0.5),
        0 0 0 2px rgba(212, 175, 55, 0.3);
}

.newsletter-submit-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.newsletter-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-label {
    font-weight: 700;
}

.newsletter-submit-btn .btn-text,
.newsletter-submit-btn .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.newsletter-submit-btn .btn-text {
    display: flex !important;
}

.newsletter-submit-btn .btn-loading {
    display: none;
}

.newsletter-submit-btn.loading .btn-text {
    display: none !important;
}

.newsletter-submit-btn.loading .btn-loading {
    display: flex !important;
}

/* Subscription Options */
.subscription-options {
    margin-bottom: 1.5rem;
}

.subscription-options-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.subscription-option {
    position: relative;
}

.subscription-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.subscription-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.subscription-label:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.subscription-option input[type="radio"]:checked+.subscription-label {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.subscription-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.subscription-text {
    font-weight: 500;
}

/* Consent Section */
.consent-section {
    margin-bottom: 1rem;
}

.consent-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.consent-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

.consent-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    cursor: pointer;
    line-height: 1.4;
}

.consent-label i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.consent-text {
    font-weight: 400;
}

/* Privacy Section */
/* Success/Error Messages */
#newsletter-messages {
    margin-top: 1.5rem;
    animation: slideDown 0.3s ease-out;
}

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

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

#newsletter-messages .alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#newsletter-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

#newsletter-success i {
    font-size: 1.25rem;
}

#newsletter-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

#newsletter-error i {
    font-size: 1.25rem;
}

#newsletter-messages .message-text {
    flex: 1;
    font-weight: 500;
}

.newsletter-privacy {
    text-align: center;
    margin-top: 1rem;
}

.privacy-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.privacy-text i {
    font-size: 0.8rem;
}

.privacy-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.privacy-link:hover {
    opacity: 0.8;
}




/* Mobile Responsive */
@media (max-width: 768px) {
    .newsletter-signup-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .newsletter-title {
        font-size: 1.5rem;
    }

    .newsletter-subtitle {
        font-size: 0.95rem;
    }

    .newsletter-form-container {
        padding: 1.5rem;
    }

    .form-main-row {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .form-field {
        flex: none;
    }

    .form-input {
        padding: 1.25rem 1rem 1.25rem 3rem;
        font-size: 1.1rem;
    }

    .newsletter-submit-btn {
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
        width: 100%;
    }

    .subscription-options-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .subscription-label {
        padding: 1rem;
        font-size: 1rem;
        justify-content: center;
    }

    .consent-checkbox {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .consent-label {
        font-size: 0.9rem;
        text-align: center;
    }

    .privacy-text {
        font-size: 0.8rem;
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .newsletter-signup-card {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }

    .newsletter-form-container {
        padding: 1rem;
    }

    .newsletter-title {
        font-size: 1.25rem;
    }

    .newsletter-subtitle {
        font-size: 0.9rem;
    }

    .form-input {
        padding: 1rem 0.75rem 1rem 2.5rem;
        font-size: 1rem;
    }

    .newsletter-submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .subscription-label {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Dark theme compatibility */
[data-theme="dark"] .form-input {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
}

[data-theme="dark"] .form-input:focus {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .newsletter-submit-btn {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    color: #667eea;
}

[data-theme="dark"] .newsletter-submit-btn:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}