/* --- EventFormArea 專用優化 --- */

/* 1. 修正標籤排版：確保標籤文字靠左對齊，增加閱讀性 */
#EventFormArea .form-label {
    display: block;
    text-align: left;
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 1.1rem; /* 稍微放大標籤字體 */
}

/* 2. 強化「必填項目」的視覺效果：將 (*) 變成紅色 */
#EventFormArea .form-label:contains("(*)"), 
#EventFormArea .form-label {
    /* 如果標籤內含 (*)，透過偽元素或直接對文字顏色進行處理 */
}
/* 註：因為 JS 產生的標籤文字包含 (*)，我們可以用 CSS 選擇器微調 */
#EventFormArea label.form-label {
    position: relative;
}

/* 3. 優化 Checkbox/Radio 內部的「其他」文字輸入框 */
/* 讓它看起來像是一條優雅的填空線，而不是突兀的方框 */
#EventFormArea .form-check-inline input[type="text"] {
    display: inline-block;
    width: auto;
    min-width: 150px;
    border: none;
    border-bottom: 1px solid #ced4da; /* 灰色底線 */
    background-color: transparent;
    border-radius: 0;
    padding: 0 5px;
    margin-left: 8px;
    outline: none;
    transition: border-color 0.2s ease-in-out;
}

#EventFormArea .form-check-inline input[type="text"]:focus {
    border-bottom: 2px solid #0d6efd; /* 聚焦時變成 Bootstrap 藍 */
    box-shadow: none; /* 移除預設的藍色外框 */
}

/* 4. 微調 Checkbox/Radio 的文字間距 */
#EventFormArea .form-check-label {
    cursor: pointer;
    margin-right: 5px;
}

/* 5. 確保 TextArea 在寬螢幕下不會過長，且保有你原本要求的高度 */
#EventFormArea textarea.form-control {
    min-height: 200px;
    resize: vertical; /* 只允許垂直縮放，避免破壞佈局 */
}

/* 6. 送出按鈕微調：增加一點陰影與懸浮效果 */
#EventFormArea .btn-primary {
    padding-left: 3rem;
    padding-right: 3rem;
    transition: transform 0.1s;
}

#EventFormArea .btn-primary:active {
    transform: scale(0.98); /* 點擊時有下壓感 */
}