/**
 * Tools + Consulting 頁面樣式
 *
 * v0.4.30：Tools 頁完全依 Anny_Chen_Site.html 原檔 Life Map 規格實作。
 * - .life-map / .lm-header / .lm-top / .lm-stage / .lm-box / .lmc / .lm-pill / .lm-corner / .lm-axis-x / .lm-center / .lm-bot
 * - .fit-grid / .fit-cell（Consulting · 適合誰 / 不適合誰）
 * - .wait-card / .wait-row / .wait-input（Consulting · 等候名單）
 *
 * @package AnnyCoach
 */


/* ═══════════════════════════════════════════════════════════════
   Tools · Life Map
═══════════════════════════════════════════════════════════════ */
.tools-life-section {
    padding: 0 0 120px;
}

.life-map {
    position: relative;
    max-width: 1180px;
    margin: 56px auto 0;
    padding: 36px 64px 24px;
    /* 四象限色：對應 .lmc[data-q="N"] */
    --q01: var(--plum);
    --q02: var(--bronze);
    --q03: var(--twilight);
    --q04: var(--mist);
}

/* ── 上方左右兩段小字 ─────────────────────────── */
.lm-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 28px;
    padding: 0 10px;
}
.lm-header .lm-h-label {
    font-family: var(--ff-m);
    font-size: 10.5px;
    letter-spacing: .26em;
    color: var(--plum);
    text-transform: uppercase;
    font-weight: 600;
}
.lm-header .lm-h-sub {
    font-family: var(--ff-cn, inherit);
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--mist);
    font-weight: 300;
    margin-top: 6px;
    max-width: 30ch;
}
.lang-en .lm-header .lm-h-sub { font-family: var(--ff-en, inherit); }
.lm-header .right { text-align: right; }
.lm-header .right .lm-h-sub { margin-left: auto; }


/* ── 三階段條：SELF / EXPLORE / INTEGRATE ─────── */
.lm-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin-bottom: 30px;
    position: relative;
}
.lm-top::before {
    content: '';
    position: absolute;
    left: 18%;
    right: 18%;
    top: 50%;
    border-top: 1px dashed var(--linen-2, var(--linen));
    z-index: 0;
}
.lm-stage {
    position: relative;
    z-index: 1;
    background: var(--bone-2);
    padding: 8px 18px;
    font-family: var(--ff-m);
    font-size: 10.5px;
    letter-spacing: .26em;
    color: var(--mist);
    text-transform: uppercase;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 90px;
}
.lm-stage .cn {
    font-family: var(--ff-cn, inherit);
    font-weight: 500;
    color: var(--twilight);
    letter-spacing: .16em;
    font-size: 14px;
}
.lang-en .lm-stage .cn { display: none; }
.lm-stage.active {
    background: var(--bone);
    border: 1px solid var(--plum);
    color: var(--plum);
    padding: 7px 17px;
}
.lm-stage.active .cn { color: var(--plum); }


/* ── 四象限 box ─────────────────────────────── */
.lm-box {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    border: 1px solid var(--linen-2, var(--linen));
    background: var(--bone);
    aspect-ratio: 1.22 / 1;
}
.lm-box::before,
.lm-box::after {
    content: '';
    position: absolute;
    background: var(--linen-2, var(--linen));
    z-index: 1;
}
.lm-box::before { left: 0; right: 0; top: 50%; height: 1px; }
.lm-box::after  { top: 0; bottom: 0; left: 50%; width: 1px; }

/* 四角 ✱ */
.lm-corner {
    position: absolute;
    font-size: 11px;
    color: var(--bronze);
    opacity: .6;
    line-height: 1;
    z-index: 2;
    font-family: var(--ff-m);
}
.lm-corner.tl { top: 10px;    left: 12px; }
.lm-corner.tr { top: 10px;    right: 12px; }
.lm-corner.bl { bottom: 10px; left: 12px; }
.lm-corner.br { bottom: 10px; right: 12px; }

/* 左右垂直 pills */
.lm-pill {
    position: absolute;
    top: 50%;
    font-family: var(--ff-m);
    font-size: 11px;
    letter-spacing: .26em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 10px 20px;
    background: var(--c-pill, var(--plum));
    color: var(--bone);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    z-index: 5;
}
.lm-pill .pill-cn {
    font-family: var(--ff-cn, inherit);
    letter-spacing: .18em;
    font-size: 13px;
    font-weight: 500;
}
.lang-en .lm-pill .pill-cn { display: none; }
.lm-pill.left {
    left: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
    --c-pill: var(--q01);
}
.lm-pill.right {
    right: 0;
    transform: translate(50%, -50%) rotate(90deg);
    --c-pill: var(--q02);
}


/* ── 四象限 cells ─────────────────────────────── */
.lmc {
    padding: 42px 32px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 6px;
    cursor: pointer;
    transition: background .2s;
    position: relative;
    text-decoration: none;
    color: inherit;
}
.lmc.dim { cursor: default; }
.lmc:hover         { background: var(--bone-2); }
.lmc.dim:hover     { background: var(--bone); }
.lmc[data-q="1"]   { --c: var(--q01); }
.lmc[data-q="2"]   { --c: var(--q02); }
.lmc[data-q="3"]   { --c: var(--q03); }
.lmc[data-q="4"]   { --c: var(--q04); }
.lmc.dim           { --c: var(--mist); }

/* 月相 SVG icon */
.lmc-icon {
    width: 54px;
    height: 54px;
    color: var(--c);
    opacity: .95;
    margin-bottom: 4px;
}
.lmc-icon svg { width: 100%; height: 100%; display: block; }
.lmc-icon .ring   { fill: none; stroke: currentColor; stroke-width: .5; opacity: .45; }
.lmc-icon .light  { fill: currentColor; }
.lmc-icon .shadow { fill: var(--bone-3, var(--bone-2)); }

.lmc-num {
    font-family: var(--ff-num, var(--ff-d));
    font-style: italic;
    font-weight: 300;
    font-size: clamp(54px, 7.2vw, 88px);
    line-height: .88;
    color: var(--c);
    letter-spacing: -.04em;
    margin: 0;
}
.lmc-cat {
    font-family: var(--ff-m);
    font-size: 10.5px;
    letter-spacing: .3em;
    color: var(--c);
    text-transform: uppercase;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
.lmc-cat::before,
.lmc-cat::after { content: '◆'; font-size: 5px; opacity: .7; }

.lmc-name {
    font-family: var(--ff-d);
    font-weight: 400;
    font-size: clamp(20px, 2.2vw, 26px);
    color: var(--twilight);
    line-height: 1.22;
    letter-spacing: -.015em;
    margin: 14px 0 12px;
}
.lang-en .lmc-name { font-style: italic; font-weight: 300; }

.lmc-desc {
    font-size: 13px;
    line-height: 1.75;
    color: var(--mist);
    max-width: 32ch;
    font-weight: 300;
    margin: 0;
}
.lang-en .lmc-desc { font-family: var(--ff-en, inherit); }

.lmc-foot {
    margin-top: 16px;
    font-family: var(--ff-m);
    font-size: 11px;
    letter-spacing: .18em;
    color: var(--c);
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
    padding-bottom: 3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap .2s;
}
.lmc:hover .lmc-foot { gap: 14px; }
.lmc.dim .lmc-foot   { color: var(--mist); }


/* ── 中心 compass + 軸標籤 ───────────────────── */
.lm-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    background: var(--bone);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    border-radius: 50%;
}
.lm-center svg {
    width: 26px;
    height: 26px;
    color: var(--plum);
}
.lm-axis-x {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--ff-m);
    font-size: 10.5px;
    letter-spacing: .28em;
    color: var(--mist);
    text-transform: uppercase;
    font-weight: 500;
    background: var(--bone-2);
    padding: 6px 14px;
    z-index: 4;
    white-space: nowrap;
}
.lm-axis-x.top { top: -15px; }
.lm-axis-x.bot { bottom: -15px; }


/* ── 底部流程 + 描述 ────────────────────────── */
.lm-bot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 0 12px;
    gap: 24px;
    flex-wrap: wrap;
}
.lm-bot-process {
    font-family: var(--ff-m);
    font-size: 10.5px;
    letter-spacing: .24em;
    color: var(--mist);
    text-transform: uppercase;
    font-weight: 500;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.lm-bot-process .step { color: var(--twilight); font-weight: 500; }
.lm-bot-process .arr  { color: var(--plum); }
.lm-bot-tag {
    font-family: var(--ff-d);
    font-style: italic;
    font-weight: 300;
    font-size: 15px;
    color: var(--bronze);
    letter-spacing: -.005em;
}
.lang-en .lm-bot-tag { font-family: var(--ff-en, inherit); }


/* ═══════════════════════════════════════════════════════════════
   Phase Grid · 完成測驗後 · 月相 4 階段（Tools 頁底部）
═══════════════════════════════════════════════════════════════ */
.phase-wrap {
    background: var(--bone-2);
    border-top: 1px solid var(--linen);
    padding: 90px 0 110px;
    margin-top: 40px;
    position: relative;
}
.phase-head {
    max-width: calc(var(--max) - 80px);
    margin: 0 auto;
    padding: 0 0 40px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.phase-head .eyebrow { margin-bottom: 14px; }
.phase-head .display-m { max-width: 34ch; }
.phase-head .note {
    font-family: var(--ff-d);
    font-style: italic;
    font-weight: 300;
    font-size: 18px;
    color: var(--bronze);
    max-width: 32ch;
    text-align: right;
    margin: 0;
}
.lang-en .phase-head .note { font-family: var(--ff-en, inherit); }

.phase-grid {
    max-width: calc(var(--max) - 80px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(15, 20, 25, .92);
    border: 1px solid #0F1419;
}
.phase-cell {
    background: #0F1419;
    color: #E8EBF0;
    padding: 44px 28px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
    position: relative;
}
.phase-cell .phase-svg { width: 64px; height: 64px; }
.phase-cell .phase-svg svg { width: 100%; height: 100%; display: block; }
.phase-cell .phase-svg .ring   { fill: none; stroke: rgba(232, 235, 240, .22); stroke-width: .5; }
.phase-cell .phase-svg .light  { fill: #E8EBF0; }
.phase-cell .phase-svg .shadow { fill: #0F1419; }

.phase-cell .phase-meta {
    font-family: var(--ff-m);
    font-size: 9.5px;
    letter-spacing: .3em;
    color: #C0CCDC;
    text-transform: uppercase;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.phase-cell .phase-meta::before,
.phase-cell .phase-meta::after {
    content: '';
    width: 12px;
    height: 1px;
    background: rgba(192, 204, 220, .4);
}
.phase-cell .phase-name {
    font-family: var(--ff-d);
    font-style: italic;
    font-weight: 300;
    font-size: 22px;
    letter-spacing: -.012em;
    line-height: 1.18;
    color: #E8EBF0;
}
.phase-cell .phase-quote {
    font-family: var(--ff-cn, inherit);
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(232, 235, 240, .65);
    font-weight: 300;
    margin: auto 0 0;
    padding-top: 6px;
    max-width: 18ch;
}
.lang-en .phase-cell .phase-quote { font-family: var(--ff-en, inherit); }


/* ═══════════════════════════════════════════════════════════════
   Consulting · Fit Grid
═══════════════════════════════════════════════════════════════ */
.fit-section { padding: 80px 0; }
.fit-grid {
    max-width: calc(var(--max) - 80px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--linen);
    border: 1px solid var(--linen);
}
.fit-cell { background: var(--bone); padding: 40px 36px; }
.fit-cell.no { background: var(--bone-3, var(--bone-2)); }
.fit-cell h4 {
    font-family: var(--ff-m);
    font-size: 11px;
    letter-spacing: .22em;
    color: var(--plum);
    text-transform: uppercase;
    margin: 0 0 18px;
    font-weight: 500;
}
.fit-cell.no h4 { color: var(--mist); }
.fit-cell ul   { list-style: none; padding: 0; margin: 0; }
.fit-cell li {
    padding: 14px 0;
    border-bottom: 1px solid var(--linen);
    font-size: 15px;
    line-height: 1.65;
    color: var(--twilight);
    font-weight: 300;
    display: flex;
    gap: 14px;
}
.fit-cell li:last-child { border-bottom: none; }
.fit-cell li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 1px;
    background: var(--plum);
    margin-top: 14px;
    flex-shrink: 0;
}
.fit-cell.no li::before { background: var(--mist); opacity: .55; }


/* ═══════════════════════════════════════════════════════════════
   Consulting · Waitlist 等候名單
═══════════════════════════════════════════════════════════════ */
.waitlist-section {
    padding: 80px 0 120px;
    background: var(--bone-2);
}
.waitlist-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 40px;
}
.waitlist-eyebrow { margin-bottom: 18px; }
.waitlist-title {
    font-family: var(--ff-d);
    font-weight: 300;
    margin: 0 0 14px;
    max-width: 24ch;
}
.lang-en .waitlist-title { font-style: italic; }
.waitlist-intro {
    margin: 0 0 40px;
    max-width: 40ch;
    color: var(--mist);
    font-size: 15px;
    line-height: 1.7;
}

.wait-card {
    max-width: 560px;
    background: var(--bone);
    border: 1px solid var(--linen-2, var(--linen));
    padding: 40px 36px;
}
.wait-row { margin-bottom: 24px; }
.wait-row .wl {
    font-family: var(--ff-m);
    font-size: 10px;
    letter-spacing: .18em;
    color: var(--mist);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}
.wait-input {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid var(--linen-2, var(--linen));
    padding: 8px 0;
    font-family: var(--ff-cn, inherit);
    font-size: 15px;
    color: var(--twilight);
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}
.lang-en .wait-input { font-family: var(--ff-en, inherit); }
.wait-input:focus { border-bottom-color: var(--plum); }
textarea.wait-input { min-height: 80px; resize: vertical; line-height: 1.7; }
.wait-submit { margin-top: 8px; }
.wait-card.is-submitted .wait-submit {
    background: var(--mist);
    border-color: var(--mist);
    cursor: default;
    pointer-events: none;
}
.wait-error {
    display: none;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #cb2431;
    font-family: var(--ff-cn, inherit);
}
.lang-en .wait-error { font-family: var(--ff-en, inherit); }


/* ═══════════════════════════════════════════════════════════════
   手機 RWD
═══════════════════════════════════════════════════════════════ */
@media (max-width: 880px) {
    .life-map {
        padding: 24px 20px 16px;
        margin-top: 32px;
    }
    .lm-header {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .lm-header .right { text-align: left; }
    .lm-header .right .lm-h-sub { margin-left: 0; }

    /* v0.4.31：手機版三階段條保持橫排（依使用者要求，不再上下排） */
    .lm-top {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 8px;
        padding: 0 4px;
    }
    .lm-top::before {
        left: 12%;
        right: 12%;
    }
    .lm-stage {
        min-width: 0;
        flex: 1;
        padding: 6px 8px;
        font-size: 9px;
        letter-spacing: .18em;
    }
    .lm-stage .cn { font-size: 12px; letter-spacing: .12em; }
    .lm-stage.active { padding: 5px 7px; }

    .lm-pill,
    .lm-corner,
    .lm-axis-x,
    .lm-center { display: none; }
    .lm-box {
        display: flex;
        flex-direction: column;
        aspect-ratio: auto;
    }
    .lm-box::before,
    .lm-box::after { display: none; }
    .lmc {
        border-bottom: 1px solid var(--linen);
        padding: 36px 24px;
    }
    .lmc:last-child { border-bottom: none; }
    .lm-bot {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    /* Phase Grid 手機版：4 欄改 2 欄 */
    .phase-grid { grid-template-columns: repeat(2, 1fr); }
    .phase-cell { padding: 34px 22px 28px; }
    .phase-head { padding: 0 24px 32px; }

    .fit-grid { grid-template-columns: 1fr; max-width: calc(100% - 40px); }
    .fit-cell { padding: 32px 24px; }

    .waitlist-inner { padding: 0 20px; }
    .wait-card { padding: 32px 24px; }
}



/* ═══════════════════════════════════════════════════════════════
   v0.9.12 · 預約表單新欄位（下拉 / 方案 / 同意條款）
   ═══════════════════════════════════════════════════════════════ */

.wait-card { max-width: 620px; }

/* 兩欄並排（文化背景 + 稱呼）*/
.wait-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
}

/* 下拉選單：沿用底線風格，換掉系統箭頭 */
.wait-select {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
    cursor: pointer;
    padding-right: 22px;
    background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%),
                      linear-gradient(135deg, var(--mist) 50%, transparent 50%);
    background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}
.wait-select:focus {
    background-image: linear-gradient(45deg, transparent 50%, var(--plum) 50%),
                      linear-gradient(135deg, var(--plum) 50%, transparent 50%);
}
.wait-select option { background: var(--bone); color: var(--twilight); }

/* ─── 方案選擇 ─── */
.wait-plans { margin-bottom: 28px; }

.plan-opts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.plan-opt { display: block; cursor: pointer; }
.plan-opt input {
    position: absolute;
    opacity: 0;
    width: 1px; height: 1px;
}

.plan-box {
    display: block;
    padding: 15px 18px;
    border: 1px solid var(--linen-2, var(--linen));
    border-radius: 2px;
    transition: border-color .22s var(--ease-moon),
                background-color .22s var(--ease-moon);
}
.plan-opt:hover .plan-box { border-color: var(--mist); }

.plan-opt input:checked + .plan-box {
    border-color: var(--plum);
    background: var(--bone-2, transparent);
    box-shadow: inset 0 0 0 1px var(--plum);
}
.plan-opt input:focus-visible + .plan-box {
    outline: 2px solid var(--plum);
    outline-offset: 3px;
}

.plan-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}
.plan-name {
    font-size: 15px;
    line-height: 1.5;
    color: var(--twilight);
    font-family: var(--ff-cn, inherit);
}
.lang-en .plan-name { font-family: var(--ff-en, inherit); }

.plan-price {
    flex: none;
    font-family: var(--ff-m);
    font-size: 12px;
    letter-spacing: .06em;
    color: var(--bronze);
    white-space: nowrap;
}

.plan-desc {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--mist);
    font-family: var(--ff-cn, inherit);
}
.lang-en .plan-desc { font-family: var(--ff-en, inherit); }

.wait-hint {
    margin: 12px 0 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--mist);
    font-family: var(--ff-cn, inherit);
}
.lang-en .wait-hint { font-family: var(--ff-en, inherit); }

/* ─── 同意條款 ─── */
.wait-consent {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--linen);
}
.consent-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}
.consent-line input[type="checkbox"] {
    flex: none;
    margin-top: 3px;
    width: 15px; height: 15px;
    accent-color: var(--plum);
    cursor: pointer;
}
.consent-text {
    font-size: 13px;
    line-height: 1.7;
    color: var(--twilight-2);
    font-family: var(--ff-cn, inherit);
}
.lang-en .consent-text { font-family: var(--ff-en, inherit); }
.consent-text a {
    color: var(--plum-hi);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wait-error.is-on { display: block; }

@media (max-width: 880px) {
    .wait-card { padding: 30px 22px; }
    .wait-row-2 { grid-template-columns: 1fr; gap: 0; }
    .plan-box { padding: 13px 15px; }
    .plan-top { flex-direction: column; gap: 3px; }
    .plan-name { font-size: 14.5px; }
}

/* v0.9.43 · 垃圾郵件提醒 */
.wait-spam-note {
    margin: 14px 0 0;
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--mist);
    font-family: var(--ff-cn, inherit);
}
.lang-en .wait-spam-note { font-family: var(--ff-en, inherit); }
