/* === 全站主色 === */
:root {
  --gold: #dfbd62;
  --gold-dark: #c5a94f;
  --border: #e4e1d3;
  --bg: #fdfcf8;
}

/* === Dashboard Tabs === */
.seer8-dashboard {
  max-width: 1200px;
  margin: auto;
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
}

.seer8-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 3px solid var(--gold);
  margin-bottom: 20px;
}

.seer8-tab {
  padding: 10px 22px;
  cursor: pointer;
  font-weight: 600;
  border-radius: 8px 8px 0 0;
  background: #f4f1e6;
  color: #666;
  transition: 0.2s;
}

.seer8-tab.active {
  background: var(--gold);
  color: #fff;
}

.seer8-tab-content {
  display: none;
}
.seer8-tab-content.active {
  display: block;
  animation: fadeIn .3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px);}
  to { opacity: 1; transform: none;}
}

/* === Form 基礎樣式 === */
.seer8-form {
  max-width: 1200px;
  margin: auto;
  background: #fff;
  padding: 40px 50px;
  border-radius: 12px;
}

.seer8-form h2 {
  color: var(--gold-dark);
  margin-bottom: 10px;
  font-size: 18px;
  border-left: 4px solid var(--gold);
  padding-left: 10px;
}

.seer8-section {
  margin-top: 28px;
  margin-bottom: 5px;
}

select,
input,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-size: 15px;
}
select:hover,
input:focus,
textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 2px rgba(223,189,98,0.2);
}

/* === 提交按鈕 === */
button[type="submit"] {
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 30px;
  width: 100%;
}
button[type="submit"]:hover {
  background: var(--gold-dark);
}

/* === Fieldset === */
fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  margin-top: 12px;
  background: #fefdf9;
}
legend {
  font-weight: 600;
  color: var(--gold-dark);
}

/* === Notes === */
.seer8-note {
  background: var(--bg);
  border-left: 4px solid var(--gold);
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  color: #555;
}

/* === 橫向欄位 === */
.seer8-flex {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* === File Drop Zone === */
.seer8-dropzone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  background: #fdfcf8;
  cursor: pointer;
  color: #777;
  transition: 0.25s;
}
.seer8-dropzone.dragover {
  background: #fff8e6;
  border-color: var(--gold-dark);
  color: var(--gold-dark);
}

/* ======================
   Modal Base
====================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

/* ======================
   Modal Content
====================== */
.modal-content {
    background: #fff;
    width: 460px;
    max-width: 92%;
    padding: 36px 30px;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    text-align: center;
    position: relative;
    animation: fadeUp 0.28s ease-out;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ======================
   Title
====================== */
.modal-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 28px;
    line-height: 1.4;
}

/* ======================
   Close Button
====================== */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px;
    border-radius: 50%;
    background: #f7f7f7;
    cursor: pointer;
    border: none;
    font-size: 16px;
    font-weight: bold;
    transition: 0.2s;
}

.modal-close:hover {
    background: #ffe0ef;
    color: #C2185B; /* 品紅 */
}

/* ======================
   Buttons
====================== */
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

#seer8-login-btn,
#seer8-pay-btn {
    border: 2px solid #C2185B; /* 品紅 */
    color: #C2185B;
    background: #ffffff;
    padding: 10px 26px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: 0.25s ease;
}

#seer8-login-btn:hover,
#seer8-pay-btn:hover {
    background-color: #C2185B;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(194,24,91,0.25);
}

/* 手機 RWD 微調 */
@media(max-width: 480px) {
    .modal-content {
        padding: 26px 20px;
    }
    h3 {
        font-size: 20px;
    }
}


/* ✅ Checkbox 美化 — 每列最多 4 個 */
.seer8-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.seer8-checkbox-group label {
  cursor: pointer;
  background: #f7f4e9;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  min-width: calc(25% - 12px);
  text-align: center;
  transition: all .2s ease;
}

/* ✅ 選取狀態加強 */
.seer8-checkbox-group input[type="radio"] {
  display: none;
}

.seer8-checkbox-group input[type="radio"]:checked + span,
.seer8-checkbox-group input[type="radio"]:checked ~ label {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold-dark);
}

/* === Checkbox / Radio Group === */
.seer8-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 隱藏原生 input */
.seer8-checkbox-group input[type="radio"],
.seer8-checkbox-group input[type="checkbox"] {
  display: none;
}

/* Label 外框樣式 */
.seer8-checkbox-group label {
  flex: 1 1 calc(25% - 10px); /* ✅ 一列最多 4 個 */
  text-align: center;
  background: #f9f7ef;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 10px;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  color: #333;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

/* 滑過互動效果 */
.seer8-checkbox-group label:hover {
  border-color: var(--gold-dark);
  background: #fff9e3;
}

/* 讓 label 內文字垂直置中 */
.seer8-checkbox-group label span {
  display: inline-block;
  width: 100%;
}

/* ✅ 讓選取的 radio 或 checkbox，整塊變色 */
.seer8-checkbox-group label:has(input[type="radio"]:checked),
.seer8-checkbox-group label:has(input[type="checkbox"]:checked) {
  background: var(--gold) !important;
  border-color: var(--gold-dark) !important;
  color: #fff !important;
}

/* ✅ 已選取的 label 文字微亮（選配） */
.seer8-checkbox-group label:has(input:checked) span {
  color: #fff;
}
