/* 確保表單初始時隱藏 */
.popup-overlay,
.popup-form {
    display: none;
}

/* 遮罩層樣式 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* 彈出表單 */
.popup-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 450px;
    max-width: 90%;
}

/* 關閉按鈕 */
.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
    cursor: pointer;
}

/* 表單輸入框 */
.popup-form input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

/* 按鈕 */
.popup-form button {
    margin-top: 15px;
    padding: 10px;
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.popup-form button:hover {
    background: #218838;
}

/* 提示訊息 */
.popup-message {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}

/* 新增媒體容器樣式 */
.media-container {
    position: relative;
    margin-bottom: 15px;
}

.media-container video {
    width: 100%;
    height: auto;
    border-radius: 3px;
}

/* 新增文字覆蓋樣式 */
.text-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 16px;
}

/* 新增 Open Form 按鈕樣式 */
#open-popup {
    padding: 10px 20px; /* 內距，與表單按鈕一致 */
    background: #28a745; /* 綠色背景，與表單按鈕一致 */
    color: white; /* 白色文字 */
    border: none; /* 無邊框 */
    border-radius: 3px; /* 圓角 */
    cursor: pointer; /* 滑鼠懸停時顯示手形 */
}

#open-popup:hover {
    background: #218838; /* 懸停時變深綠色 */
}