/* 禪意簡約風設計規範 */
:root {
    --primary-brown: #8D6E63;
    --bg-ivory: #F9F7F2;
    --accent-wood: #AF8F6F;
    --text-dark: #4E342E;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-ivory);
    color: var(--text-dark);
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    font-size: 18px;
    /* 方便年長者閱讀 */
    padding: 2rem 1rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #E0DCD0;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    color: var(--primary-brown);
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.title-select-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.event-selector {
    appearance: none;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--primary-brown);
    color: var(--primary-brown);
    font-size: 1.4rem;
    font-weight: 500;
    font-family: 'Noto Sans TC', sans-serif;
    letter-spacing: 1px;
    padding: 0.5rem 2.5rem 0.5rem 0.5rem;
    cursor: pointer;
    outline: none;
    text-align: center;
    max-width: 100%;
    width: 100%;
    transition: var(--transition);
}

.event-selector:hover,
.event-selector:focus {
    border-bottom-color: var(--accent-wood);
    color: var(--text-dark);
}

.title-select-wrapper::after {
    content: '▼';
    font-size: 1.2rem;
    color: var(--primary-brown);
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.subtitle {
    color: var(--accent-wood);
    font-size: 1rem;
    letter-spacing: 4px;
}

/* 法會海報區塊 */
.poster-container {
    text-align: center;
    margin-bottom: 2.5rem;
}

.poster-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* 柔和的陰影 */
    border: 1px solid #EAE3D6;
    display: block;
    margin: 0 auto;
}

/* 法會資訊說明區塊 */
.info-card {
    background: #FDFBF7;
    border: 1px solid #EAE3D6;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.description-block {
    background: #FDF5F0;
    border-left: 4px solid var(--accent-wood);
    padding: 1rem 1.2rem;
    border-radius: 0 6px 6px 0;
    margin-bottom: 1.5rem;
}

/* 當說明放在獨立的 info-card 裡時，h3 樣式 */
#eventDescriptionBlock h3 {
    font-size: 1.1rem;
    color: var(--primary-brown);
    margin-bottom: 0.5rem;
}

.description-text {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.8;
    white-space: pre-wrap;
    /* 保留換行與空白，同時自動折行 */
    margin: 0.5rem 0 0;
}

.info-section {
    margin-bottom: 1.5rem;
}

.info-section:last-of-type {
    margin-bottom: 0;
}

.info-section h3 {
    font-size: 1.1rem;
    color: var(--primary-brown);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 可折疊的注意事項區塊 */
.rules-toggle-header {
    cursor: pointer;
    border-bottom: 1px dashed #C8B89A;
    margin-bottom: 0 !important;
    /* 與內容緊靠 */
    user-select: none;
}

.rules-toggle-header:hover h3 {
    color: var(--accent-wood);
}

.toggle-hint {
    font-size: 0.75rem;
    color: #AAA;
    font-weight: normal;
    margin-left: 4px;
    letter-spacing: 0;
}

.rules-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.rules-content.open {
    max-height: 3000px;
    /* 足夠大的值讓所有內容能展開 */
}

.highlight-text {
    color: #D35400;
    font-weight: 500;
}

.muted-text {
    color: #888;
    font-size: 0.9rem;
}

.line-contact {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #EAE3D6;
}

.line-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #06C755;
    /* LINE Official Color */
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.line-btn:hover {
    background-color: #05AF4A;
    box-shadow: 0 2px 8px rgba(6, 199, 85, 0.3);
}

.important-notice {
    margin-top: 2rem;
    background-color: #FFF2E6;
    border-left: 4px solid #F39C12;
    padding: 1.2rem;
    border-radius: 0 8px 8px 0;
}

.important-notice h3 {
    color: #D68910;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.warning-text {
    margin-top: 10px;
    font-weight: bold;
    color: #C0392B;
    text-align: center;
}

/* -------------------- */
/* 表單區塊 */
/* -------------------- */
.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #F0ECE4;
}

/* =========================================================
   步驟導航列 (Stepper)
   ========================================================= */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0.5rem;
    margin-bottom: 1.5rem;
    gap: 0;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    cursor: default;
    user-select: none;
}

.stepper-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid #BCAAA4;
    background: #FFFFFF;
    color: #BCAAA4;
    transition: all 0.3s ease;
}

.stepper-label {
    font-size: 0.75rem;
    color: #BCAAA4;
    text-align: center;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.stepper-line {
    flex: 1;
    height: 2px;
    background: #BCAAA4;
    margin: 0 0.3rem;
    margin-bottom: 1.4rem;
    min-width: 24px;
    transition: background 0.3s ease;
}

/* Active step */
.stepper-step.active .stepper-circle {
    border-color: #5D4037;
    background: #5D4037;
    color: #FFFFFF;
}

.stepper-step.active .stepper-label {
    color: #5D4037;
    font-weight: 600;
}

/* Completed step */
.stepper-step.completed .stepper-circle {
    border-color: #4CAF50;
    background: #4CAF50;
    color: #FFFFFF;
}

.stepper-step.completed .stepper-label {
    color: #4CAF50;
    font-weight: 500;
}

.stepper-step.completed {
    cursor: pointer;
}

.stepper-line.completed {
    background: #4CAF50;
}

.section-title {
    font-size: 1.25rem;
    color: var(--primary-brown);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 1.25rem;
    background: var(--accent-wood);
    margin-right: 10px;
}

.section-title small {
    font-size: 0.85rem;
    font-weight: normal;
    color: #8D6E63;
    opacity: 0.8;
    margin-left: 0.5rem;
    line-height: normal;
}

/* 網格表單佈局 */
.grid-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.ordination-date-picker {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.ordination-date-picker select {
    flex: 1;
    min-width: 0;
}

.ordination-prefix,
.ordination-sep {
    font-size: 0.95rem;
    color: var(--text-dark);
    white-space: nowrap;
}

label small {
    display: block;
    font-weight: normal;
    font-size: 0.85rem;
    color: #795548;
    margin-top: 0.2rem;
    line-height: 1.4;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
select {
    padding: 0.8rem;
    border: 1px solid #D7CCC8;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #FBFAF8;
    transition: var(--transition);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-brown);
    box-shadow: 0 0 0 3px rgba(141, 110, 99, 0.1);
}

/* 身份選擇 (Radio 樣式) */
.radio-group {
    display: flex;
    gap: 2rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 0.5rem;
}

.radio-label input {
    accent-color: var(--primary-brown);
    width: 20px;
    height: 20px;
}

/* 日期選擇器 */
.checkbox-container {
    background: #FDFCF9;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px dashed #D7CCC8;
}

.day-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.day-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.divider {
    height: 1px;
    background: #E0DCD0;
    margin: 1rem 0;
}

/* 按鈕樣式 */
.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background-color: var(--primary-brown);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: #6D4C41;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 76, 65, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 成功彈窗 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(78, 52, 46, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.overlay-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.lotus-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.overlay button {
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    background: var(--accent-wood);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* 出家師父報到注意事項浮層 */
.monastic-info-block {
    background: #FFF8E1;
    border-left: 4px solid #FF9800;
    padding: 1rem 1.2rem;
    margin: 1.2rem 0 0;
    text-align: left;
    color: #5D4037;
    font-size: 0.95rem;
    line-height: 1.7;
    border-radius: 4px;
}

.monastic-info-block .kw,
#monasticReminderOverlay .kw {
    background: #FAC775;
    color: #A32D2D;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-weight: 700;
}

.monastic-divider {
    border: none;
    border-top: 1px solid #EAE3D6;
    margin: 1.2rem 0 0.8rem;
}

.monastic-ps {
    font-size: 0.85rem;
    color: #8D6E63;
    text-align: left;
    line-height: 1.6;
    margin: 0;
}

/* 手機版適配 */
@media (max-width: 600px) {
    .container {
        padding: 1.5rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }
}

/* 可隨喜參加日期選擇器的提示文字 */
.day-selector-hint {
    font-size: 0.9rem;
    color: var(--accent-wood);
    margin: 0.6rem 0 0.4rem;
    font-style: italic;
}

/* 食衣住獨立圖文卡片 */
/* =========================================================
   報名表單遮蔽（三項確認完成前）
   ========================================================= */
.form-gate {
    position: relative;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.form-gate.locked {
    pointer-events: none;
    opacity: 0.4;
    filter: grayscale(0.3);
}

.form-gate-hint {
    display: none;
    text-align: center;
    padding: 0.75rem 1rem;
    background: #FFF3E0;
    border: 1px solid #FFE082;
    border-radius: 8px;
    color: #E65100;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.form-gate.locked .form-gate-hint {
    display: block;
    pointer-events: none;
}

/* =========================================================
   三項確認卡片（點擊開啟對應浮層）
   ========================================================= */
.rules-cards {
    background: linear-gradient(135deg, #FFF9F0, #FDF5EC);
    border: 1px solid #E8DDD0;
    border-radius: 12px;
    padding: 1.75rem 1.5rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(141, 110, 99, 0.08);
}

.rules-cards-title {
    text-align: center;
    font-size: 1.25rem;
    color: var(--primary-brown);
    margin: 0 0 0.3rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.rules-cards-subtitle {
    text-align: center;
    color: #8D6E63;
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
}

.rule-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1.1rem 1.3rem 0.9rem;
    margin-bottom: 0.9rem;
    border: 1px solid #EAE3D6;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.25s ease;
    user-select: none;
}

.rule-card:last-child {
    margin-bottom: 0;
}

.rule-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.rule-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.rule-card-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.rule-card-header h3 {
    font-size: 1.05rem;
    color: var(--primary-brown);
    margin: 0;
    font-weight: 600;
}

.rule-card-summary {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #6D4C41;
    margin: 0 0 0.85rem;
}

.rule-check-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    background: #FAF6EF;
    border: 1px dashed #D7C9B5;
    border-radius: 6px;
    font-size: 0.88rem;
    color: #8D6E63;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.rule-check-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1.5px solid #BCAAA4;
    color: #BCAAA4;
    font-size: 0.85rem;
    font-weight: bold;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* 已確認狀態 */
.rule-card.confirmed {
    border-color: #66BB6A;
    background: #F6FBF6;
}

.rule-card.confirmed .rule-check-row {
    background: #E8F5E9;
    border-style: solid;
    border-color: #66BB6A;
    color: #2E7D32;
    font-weight: 600;
}

.rule-card.confirmed .rule-check-mark {
    background: #66BB6A;
    border-color: #2E7D32;
    color: #FFFFFF;
}

/* 已確認後的「點擊卡片可再次查看內容」提示（預設隱藏） */
.rule-card-reopen-hint {
    display: none;
    font-size: 12px;
    color: #BDBDBD;
    margin: 0.4rem 0 0;
    text-align: center;
}
.rule-card.confirmed .rule-card-reopen-hint {
    display: block;
}

/* 浮層查看模式 */
.bottom-sheet h2 .title-confirmed-suffix {
    color: #2E7D32;
    font-size: 0.85em;
    font-weight: 500;
    margin-left: 4px;
}

/* 三張規則卡片全部確認後的醒目區塊 */
.rules-all-confirmed {
    display: none;
    background: #0F6E56;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    padding: 16px 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rules-all-confirmed.show {
    display: flex;
    animation: rulesConfirmedFadeIn 0.4s ease-out;
}

.rules-all-confirmed .rules-confirmed-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

@keyframes rulesConfirmedFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.arrival-deadline-note {
    background: #FFF3E0;
    border-left: 3px solid #FF9800;
    padding: 0.6rem 0.8rem;
    margin-top: 0.5rem;
    border-radius: 0 4px 4px 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.monastic-reminder {
    background: #FFF3E0;
    border-left: 3px solid #FF9800;
    padding: 0.6rem 0.8rem;
    margin-top: 0.8rem;
    border-radius: 0 4px 4px 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* =========================================================
   三層確認浮層 (bring / notice / final)
   ========================================================= */
.bottom-sheet {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(78, 52, 46, 0.65);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.bottom-sheet.active {
    display: flex;
    animation: sheetFade 0.3s ease;
}

@keyframes sheetFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.bottom-sheet-content {
    background: #FFF8E1;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 1.5rem 1.25rem 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.92);
    opacity: 0;
    animation: sheetPopIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes sheetPopIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.bottom-sheet h2 {
    text-align: center;
    color: #5D4037;
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.bottom-sheet .sheet-subtitle {
    text-align: center;
    color: #8D6E63;
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

/* 需要自備：3x3 純文字卡片網格 */
.bring-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    align-items: stretch;
}

.bring-item {
    background: #FFFFFF;
    border: 1px solid #D7CCC8;
    border-radius: 10px;
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    user-select: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    height: 100%;
    box-sizing: border-box;
    white-space: normal;
    overflow: visible;
}

.bring-item .bring-label {
    font-size: 13px;
    color: #8D6E63;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    display: block;
    white-space: normal;
    overflow: visible;
    max-width: 100%;
}

/* bring 格子內的 Quill HTML 元素：保留段落換行 + 固定字體（覆蓋 inline style） */
.bring-item .bring-label p {
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}
.bring-item .bring-label p + p {
    font-size: 13px;
    margin-top: 2px;
}
.bring-item .bring-label strong {
    font-weight: 600;
}

/* Quill 編輯器的字體大小 class（Quill 不會套用，需手動對應） */
.bring-item .bring-label .ql-size-small { font-size: 10px; }
.bring-item .bring-label .ql-size-large { font-size: 18px; }
.bring-item .bring-label .ql-size-huge  { font-size: 22px; }

/* 確保 inline style 的 font-size 正常套用（不被覆蓋） */
.bring-item .bring-label [style*="font-size"] {
    font-size: inherit;
}
.bring-item .bring-label span[style*="font-size"] {
    font-size: revert;
}

.bring-item:hover {
    border-color: #8D6E63;
}

.bring-item.confirmed {
    background: #E1F5EE;
    border-color: #0F6E56;
}

.bring-item.confirmed .bring-label {
    color: #0F6E56;
}

.bring-item.confirmed::after {
    content: "✓";
    position: absolute;
    top: 4px;
    right: 8px;
    color: #0F6E56;
    font-weight: bold;
    font-size: 0.95rem;
}

/* 需要注意：條列清單 */
.notice-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.8rem;
}

.notice-list li {
    background: #FFFFFF;
    border: 2px solid #FFE082;
    border-radius: 10px;
    padding: 0.9rem 1rem 0.9rem 2.4rem;
    margin-bottom: 0.6rem;
    cursor: pointer;
    line-height: 1.75;
    color: #5D4037;
    font-size: 0.95rem;
    transition: background 0.25s ease, border-color 0.25s ease;
    position: relative;
    user-select: none;
}

.notice-list li::before {
    content: "○";
    position: absolute;
    left: 0.85rem;
    top: 0.85rem;
    color: #BCAAA4;
    font-size: 1.1rem;
    font-weight: bold;
}

.notice-list li.confirmed {
    background: #E8F5E9;
    border-color: #66BB6A;
}

.notice-list li.confirmed::before {
    content: "✓";
    color: #2E7D32;
}

.notice-list .keyword {
    background: #FAC775;
    color: #A32D2D;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    font-weight: 700;
    margin: 0 2px;
    display: inline-block;
}

/* 需要注意：條目內的縮排子清單（如「上殿著裝」） */
.notice-list .sub-list {
    list-style: disc;
    margin: 0.5rem 0 0;
    padding-left: 1.4rem;
}

.notice-list .sub-list li {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.15rem 0;
    margin: 0;
    font-size: 0.9rem;
    color: #6D4C41;
    cursor: inherit;
    line-height: 1.7;
}

.notice-list .sub-list li::before {
    content: none;
}

/* 進度 */
.sheet-progress {
    text-align: center;
    color: #8D6E63;
    font-size: 0.9rem;
    margin: 0.3rem 0 1rem;
}

.sheet-progress strong {
    color: #D84315;
    font-size: 1.1rem;
}

/* 浮層按鈕 */
.sheet-confirm-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #BCAAA4;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: not-allowed;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.sheet-confirm-btn.ready {
    background: linear-gradient(135deg, #A1887F, #6D4C41);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(93, 64, 55, 0.3);
}

.sheet-confirm-btn.ready:hover {
    transform: translateY(-2px);
}

/* 最終浮層 */
.final-content {
    text-align: center;
}

.final-content .final-icon {
    font-size: 3rem;
    margin-bottom: 0.4rem;
}

.final-content p {
    color: #5D4037;
    line-height: 1.9;
    font-size: 1rem;
    margin: 0.5rem 0;
}

.final-content .final-hint {
    color: #8D6E63;
    font-size: 0.88rem;
    margin-top: 1rem;
}

.final-content .final-subtitle {
    color: #8D6E63;
    font-size: 0.92rem;
    margin-bottom: 0.6rem;
}

.final-reminder-list {
    padding: 0;
    margin: 0 0 1rem;
    text-align: left;
}

/* 分組容器 */
.fr-group {
    margin-bottom: 0.9rem;
}
.fr-group:last-child {
    margin-bottom: 0;
}

/* 分組標題 */
.fr-group-title {
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 0.35rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #EAE3D6;
}
.fr-group-bring .fr-group-title { color: #0F6E56; }
.fr-group-notice .fr-group-title { color: #BA7517; }
.fr-group-ban .fr-group-title { color: #993C1D; }

/* 分組清單 */
.fr-group-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fr-group-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #5D4037;
}

.fr-group-list .fr-icon {
    flex-shrink: 0;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.fr-group-list .fr-icon.bring { color: #0F6E56; }
.fr-group-list .fr-icon.notice { color: #BA7517; }
.fr-group-list .fr-icon.ban { color: #993C1D; }

.final-reminder-list .keyword,
.fr-group-list .keyword {
    background: #FAC775;
    color: #A32D2D;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-weight: 700;
}

.final-fixed-text {
    border-top: 1px solid #EAE3D6;
    padding-top: 0.8rem;
    margin-top: 0.5rem;
}

.final-fixed-text p {
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .bring-grid {
        gap: 0.55rem;
    }
    .bring-item {
        padding: 12px 6px;
        min-height: 64px;
    }
    .bring-item .bring-label {
        font-size: 13px;
    }
}