/**
 * Newsletter Popup Styles
 * RiseCreatives Theme
 */

/* 遮罩層 */
.rise-theme-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.rise-theme-popup-overlay.rise-theme-active {
    display: flex;
    opacity: 1;
    justify-content: center;
    align-items: center;
}

/* 彈窗容器 */
.rise-theme-popup-container {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.rise-theme-popup-overlay.rise-theme-active .rise-theme-popup-container {
    transform: scale(1);
    opacity: 1;
}

/* 關閉按鈕 */
.rise-theme-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s ease;
}

.rise-theme-popup-close:hover {
    color: #333;
}

/* 標題 */
.rise-theme-popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* 表單容器 */
.rise-theme-popup-form {
    margin: 25px 0;
}

/* 說明文字 */
.rise-theme-popup-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .rise-theme-popup-container {
        width: 95%;
        padding: 30px 20px;
    }
    
    .rise-theme-popup-title {
        font-size: 20px;
    }
    
    .rise-theme-popup-close {
        top: 10px;
        right: 10px;
        font-size: 24px;
    }
}

/* 動畫優化 */
@media (prefers-reduced-motion: reduce) {
    .rise-theme-popup-overlay,
    .rise-theme-popup-container {
        transition: none;
    }
}
