/* FPP Newsletter Popup Styles */
.fpp-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(5px);
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fpp-popup-overlay.fpp-show {
    opacity: 1;
}

.fpp-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(30px);
    background: #f5f0e8;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    padding: 40px 35px 35px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(201, 168, 76, 0.2);
}

.fpp-popup-overlay.fpp-show .fpp-popup-content {
    transform: translate(-50%, -50%) translateY(0);
}

.fpp-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #8a8a8a;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.fpp-popup-close:hover {
    background: rgba(26, 26, 46, 0.08);
    color: #1a1a2e;
}

.fpp-popup-icon {
    margin-bottom: 20px;
    opacity: 0.9;
}

.fpp-popup-content h2 {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #1a1a2e;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.fpp-popup-content p {
    color: #4a4a4a;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 30px 0;
    font-family: 'Georgia', serif;
}

.fpp-form-group {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    align-items: stretch;
}

#fpp-email {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #e8e0d6;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: white;
    color: #1a1a2e;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#fpp-email:focus {
    outline: none;
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

#fpp-email::placeholder {
    color: #999;
}

#fpp-submit-btn {
    padding: 14px 24px;
    background: #c9a84c;
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
}

#fpp-submit-btn:hover:not(:disabled) {
    background: #b8962d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

#fpp-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fpp-success {
    background: #d4f4dd;
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.fpp-success h3 {
    color: #2e7d2e;
    margin: 0 0 8px 0;
    font-family: 'Georgia', serif;
    font-size: 20px;
}

.fpp-success p {
    color: #2e7d2e;
    margin: 0;
    font-size: 14px;
}

.fpp-error {
    background: #ffe6e6;
    border: 1px solid #f44336;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #c62828;
}

.fpp-trust-signals {
    color: #777;
    font-size: 13px;
    line-height: 1.4;
    border-top: 1px solid rgba(26, 26, 46, 0.1);
    padding-top: 18px;
    margin-top: 5px;
}

/* Loading state */
.fpp-loading #fpp-submit-btn {
    position: relative;
    color: transparent;
}

.fpp-loading #fpp-submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border: 2px solid rgba(26, 26, 46, 0.3);
    border-top: 2px solid #1a1a2e;
    border-radius: 50%;
    animation: fpp-spin 1s linear infinite;
}

@keyframes fpp-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .fpp-popup-overlay {
        padding: 20px;
        align-items: flex-end;
    }
    
    .fpp-popup-content {
        position: relative;
        top: auto;
        left: auto;
        transform: translateY(100%);
        width: 100%;
        max-width: none;
        border-radius: 16px 16px 0 0;
        margin: 0;
        padding: 30px 25px 25px;
    }
    
    .fpp-popup-overlay.fpp-show .fpp-popup-content {
        transform: translateY(0);
    }
    
    .fpp-form-group {
        flex-direction: column;
        gap: 15px;
    }
    
    #fpp-submit-btn {
        width: 100%;
        padding: 16px;
    }
    
    .fpp-popup-content h2 {
        font-size: 24px;
    }
    
    .fpp-popup-content p {
        font-size: 15px;
    }
}

/* Smooth entrance animation */
@media (prefers-reduced-motion: no-preference) {
    .fpp-popup-content {
        animation: fpp-slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
}

@keyframes fpp-slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0) scale(1);
    }
}

/* Hide scrollbar when popup is open */
body.fpp-popup-open {
    overflow: hidden;
}