/**
 * Newsletter Popup Styles
 * Beautiful, non-intrusive newsletter subscription popup
 */

/* Newsletter Popup Overlay */
.newsletter-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.newsletter-popup.show {
    opacity: 1;
    visibility: visible;
}

.newsletter-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 3, 39, 0.85);
    backdrop-filter: blur(5px);
}

.newsletter-popup-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.newsletter-popup.show .newsletter-popup-content {
    transform: scale(1) translateY(0);
}

/* Close Button */
.newsletter-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.newsletter-close:hover {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(90deg);
}

/* Popup Body */
.newsletter-popup-body {
    padding: 50px 40px 40px;
    text-align: center;
}

.newsletter-icon {
    font-size: 60px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.newsletter-popup-body h3 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

.newsletter-popup-body > p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Newsletter Form */
.newsletter-form {
    margin-bottom: 20px;
}

.newsletter-input-group {
    position: relative;
    margin-bottom: 20px;
}

.newsletter-input-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.newsletter-input-group input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.newsletter-input-group input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 153, 102, 0.1);
}

.newsletter-input-group input::placeholder {
    color: #999;
}

/* Consent Checkbox */
.newsletter-consent {
    text-align: left;
    margin-bottom: 25px;
}

.newsletter-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.newsletter-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--secondary-color);
    flex-shrink: 0;
}

.newsletter-checkbox a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.newsletter-checkbox a:hover {
    color: var(--primary-color);
}

/* Submit Button */
.btn-newsletter-submit {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--secondary-color), #ff7744);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 153, 102, 0.3);
}

.btn-newsletter-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 102, 0.4);
}

.btn-newsletter-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Message Display */
.newsletter-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

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

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

/* Footer Text */
.newsletter-footer-text {
    margin: 20px 0 0 0;
    color: #999;
}

.newsletter-footer-text small {
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 576px) {
    .newsletter-popup-body {
        padding: 40px 25px 30px;
    }

    .newsletter-icon {
        font-size: 50px;
    }

    .newsletter-popup-body h3 {
        font-size: 24px;
    }

    .newsletter-popup-body > p {
        font-size: 14px;
    }

    .newsletter-input-group input {
        padding: 14px 20px 14px 45px;
        font-size: 14px;
    }

    .btn-newsletter-submit {
        padding: 14px 25px;
        font-size: 15px;
    }

    .newsletter-checkbox {
        font-size: 12px;
    }
}

/* Animation for showing popup */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.newsletter-popup.show .newsletter-popup-content {
    animation: slideInUp 0.4s ease-out;
}
