﻿/* ═══════════════════════════════════════════════════
   2026 第八屆都更+危老博覽會 報名頁
   Theme: Warm Golden Yellow — 仿 KV 主視覺配色
   Primary   #F5C430  Golden Yellow
   Accent-R  #E04500  Orange-Red（危老）
   Accent-G  #009940  Green（都更）
   BG        #FDF7E4  Warm Cream
   ═══════════════════════════════════════════════════ */

:root {
    --c-yellow: #f5c430;
    --c-yellow-dk: #d4a000;
    --c-orange: #e04500;
    --c-green: #009940;
    --c-dark: #1c1c1c;
    --c-mid: #555555;
    --c-light: #999999;
    --c-cream: #fdf7e4;
    --c-card: #ffffff;
    --c-border: #ead98a;
    --shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    background: var(--c-cream);
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    color: var(--c-dark);
    margin: 0;
    padding: 0 0 48px 0;
}

/* ── 頁面結構 ─────────────────────── */
.page-wrapper {
    background: var(--c-cream);
    min-height: 100vh;
}

.main-container {
    max-width: 620px;
    margin: 0 auto;
}

/* ── KV 圖片 ──────────────────────── */
.kv-wrap img {
    display: block;
    width: 100%;
}

/* ── 卡片（表單 / 結果） ───────────── */
.form-card,
.result-card {
    background: var(--c-card);
    border-radius: 20px 20px 16px 16px;
    box-shadow: var(--shadow);
    margin: -24px 14px 0;
    position: relative;
    overflow: hidden;
}

/* 頂部彩色條 */
.form-card::before,
.result-card::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--c-orange) 0%,
        var(--c-yellow) 55%,
        var(--c-green) 100%
    );
}

.card-inner {
    padding: 22px 20px 30px;
}

/* ── Section 小標題 ───────────────── */
.section-title {
    font-size: 16px;
    font-weight: 900;
    color: var(--c-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.bar {
    display: inline-block;
    width: 4px;
    height: 18px;
    border-radius: 3px;
    flex-shrink: 0;
}
.bar-orange {
    background: var(--c-orange);
}
.bar-green {
    background: var(--c-green);
}
.bar-yellow {
    background: var(--c-yellow-dk);
}

/* ── 活動亮點清單 ─────────────────── */
.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1.5px dashed var(--c-border);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fffdf5;
    border: 1.5px solid var(--c-border);
    border-radius: 10px;
    padding: 12px 14px;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #fff;
}

.bg-orange {
    background: var(--c-orange);
}
.bg-yellow {
    background: var(--c-yellow-dk);
}
.bg-green {
    background: var(--c-green);
}

.benefit-body {
    flex: 1;
}

.benefit-title {
    font-size: 14px;
    font-weight: 900;
    color: var(--c-dark);
    margin-bottom: 4px;
}

.benefit-desc {
    font-size: 13px;
    color: var(--c-mid);
    line-height: 1.65;
}

.benefit-desc strong {
    color: var(--c-orange);
}

/* ── 活動亮點 Chips（保留，備用） ── */
.highlight-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1.5px dashed var(--c-border);
}

.chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff8dc;
    border: 1px solid var(--c-border);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #7a5500;
    white-space: nowrap;
}

.chip i {
    color: var(--c-orange);
    font-size: 13px;
}

/* ── 表單欄位 ─────────────────────── */
.field-group {
    margin-bottom: 14px;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--c-dark);
    margin-bottom: 6px;
}

.field-label i {
    color: var(--c-orange);
    width: 16px;
    text-align: center;
}

.badge-req {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--c-orange);
    border-radius: 4px;
    padding: 1px 7px;
    line-height: 1.5;
}

.badge-opt {
    font-size: 11px;
    font-weight: 400;
    color: #fff;
    background: var(--c-light);
    border-radius: 4px;
    padding: 1px 7px;
    line-height: 1.5;
}

.form-input {
    display: block;
    width: 100%;
    height: 46px;
    border: 1.5px solid #e2d49a;
    border-radius: 9px;
    padding: 0 14px;
    font-size: 15px;
    font-family: "Noto Sans TC", sans-serif;
    color: var(--c-dark);
    background: #fffdf5;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.form-input:focus {
    border-color: var(--c-yellow-dk);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 160, 0, 0.18);
}

.form-input::placeholder {
    color: #bdb09a;
}

/* ── 驗證訊息 ─────────────────────── */
.custom-required {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #dc3545;
    border-radius: 5px;
    padding: 2px 8px;
    margin-top: 4px;
}

/* ── 場次卡片 ─────────────────────── */
.session-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.session-card {
    border: 1.5px solid #ead98a;
    border-radius: 10px;
    padding: 11px 14px;
    background: #fffdf5;
    transition:
        border-color 0.2s,
        background 0.2s;
}

.session-card:hover {
    border-color: var(--c-yellow-dk);
    background: #fff9e0;
}

.session-card.mandatory {
    background: #fff5cc;
    border-color: var(--c-yellow-dk);
}

.session-card label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.session-card.mandatory label {
    cursor: default;
}

.session-card input[type="checkbox"] {
    margin-top: 3px;
    width: 17px;
    height: 17px;
    accent-color: var(--c-yellow-dk);
    flex-shrink: 0;
}

.session-info {
    flex: 1;
}

.session-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--c-dark);
    margin-bottom: 2px;
}

.session-name .tag-must {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: var(--c-orange);
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 6px;
    vertical-align: middle;
}

.session-time {
    font-size: 12px;
    color: var(--c-mid);
}

.session-note {
    font-size: 12px;
    color: var(--c-light);
    text-align: center;
    margin: 6px 0 0 0;
}

/* ── 活動資訊框 ───────────────────── */
.info-box {
    background: #fffdf5;
    border: 1.5px solid var(--c-border);
    border-radius: 10px;
    padding: 14px 16px;
    margin: 18px 0 16px;
}

.info-box-head {
    font-size: 14px;
    font-weight: 900;
    color: #7a5500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-box-head i {
    color: var(--c-orange);
}

.info-row {
    font-size: 13px;
    color: #5a4200;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.info-row:last-child {
    margin-bottom: 0;
}
.info-row i {
    color: var(--c-orange);
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── Google 地圖 ─────────────────────── */
.map-wrap {
    margin: 0 0 18px;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid var(--c-yellow-dk);
}

.map-wrap iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* ── 注意事項 ─────────────────────── */
.notice-box {
    background: #fffdf5;
    border: 1.5px solid var(--c-border);
    border-radius: 8px;
    padding: 14px 16px;
    margin: 0 0 18px;
    font-size: 13px;
    color: #5a4200;
    line-height: 1.8;
}

.notice-head {
    font-weight: 900;
    color: var(--c-orange);
    margin-bottom: 8px;
}

/* ── 同意條款 ─────────────────────── */
.agree-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--c-mid);
    margin: 14px 0 14px;
}

.agree-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
}

.agree-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--c-green);
    flex-shrink: 0;
}

/* ── 報名按鈕 ─────────────────────── */
.btn-register {
    display: block;
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--c-orange) 0%, #f5a800 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 6px;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(224, 69, 0, 0.28);
    transition:
        opacity 0.2s,
        transform 0.15s;
}

.btn-register:hover {
    opacity: 0.92;
    transform: translateY(-2px);
}
.btn-register:active {
    opacity: 1;
    transform: translateY(0);
}

/* ── 報名成功 ─────────────────────── */
.success-icon {
    font-size: 64px;
    color: var(--c-green);
    text-align: center;
    margin: 20px 0 10px;
}

.success-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--c-green);
    text-align: center;
    margin: 0 0 4px;
}

.success-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-mid);
    text-align: center;
    margin: 0 0 20px;
}

.success-info {
    background: linear-gradient(135deg, #fff9e0, #fff0bb);
    border: 1.5px solid var(--c-yellow-dk);
    border-radius: 10px;
    padding: 14px 16px;
}

.success-info .info-row {
    color: #5a4200;
}

/* ── 狀態頁（截止 / 未開放 / 錯誤） ── */
.status-icon {
    font-size: 52px;
    color: var(--c-yellow-dk);
    text-align: center;
    margin: 24px 0 14px;
}

.status-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--c-dark);
    text-align: center;
    margin: 0 0 10px;
}

.status-desc {
    font-size: 15px;
    color: var(--c-mid);
    text-align: center;
    margin: 0 0 24px;
}

/* ── Modal 覆蓋 ───────────────────── */
.modal-title {
    float: left;
}

/* ── 確認報名 Modal ──────────────── */
.confirm-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee8d0;
}

.confirm-row:last-child {
    border-bottom: none;
}

.confirm-label {
    min-width: 80px;
    font-size: 14px;
    font-weight: 700;
    color: var(--c-mid);
    flex-shrink: 0;
}

.confirm-label i {
    color: var(--c-orange);
    margin-right: 4px;
}

.confirm-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-dark);
    word-break: break-all;
}

.confirm-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #7a5500;
    background: #fff0bb;
    border: 1px solid var(--c-yellow-dk);
    border-radius: 5px;
    padding: 2px 8px;
    margin-right: 4px;
    margin-bottom: 4px;
}

.confirm-tag.tag-must {
    color: #fff;
    background: var(--c-orange);
    border-color: var(--c-orange);
}

.confirm-session-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.confirm-session-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fffdf5;
    border: 1.5px solid #ead98a;
    border-radius: 9px;
    padding: 10px 12px;
}

.confirm-session-row.row-must {
    background: #fff3e8;
    border-color: var(--c-orange);
}

.confirm-session-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.dot-orange {
    background: var(--c-orange);
}
.dot-yellow {
    background: var(--c-yellow-dk);
}

.confirm-session-info {
    flex: 1;
}

.confirm-session-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-dark);
    margin-bottom: 3px;
}

.confirm-session-row.row-must .confirm-session-name {
    color: var(--c-orange);
}

.confirm-session-date {
    font-size: 12px;
    color: var(--c-mid);
    font-weight: 400;
    line-height: 1.5;
}

/* ── 桌機寬螢幕微調 ────────────────── */
@media (min-width: 621px) {
    .form-card,
    .result-card {
        margin-left: 20px;
        margin-right: 20px;
    }
    .card-inner {
        padding: 28px 30px 36px;
    }
}
