
/* =====================
   Contact 
   ===================== */

/* ---------- title ---------- */
.contact {
    min-height: 100vh;
    padding-bottom: 40vh;
}

.contact  .title-inner{
    margin-top: 280px;
    margin-bottom:60px;
}

.contact .small-text span{
    font-size:1.2rem;
    color:var(--color-gray);
    opacity:0.8;
}
.contact .small-text span:last-child{
    margin-right:1rem;
}
/* ---------- 版面 ---------- */
.wizard-body {
    align-items: flex-end;
}

/* ---------- 左側大數字 ---------- */
.wizard-counter {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    padding-right: 80px;
    padding-bottom:80px;
}

.counter-current {
    font-family:var(--en-font);
    font-size: clamp(46px, 5vw, 88px);
    line-height: 1;
    color: #1a1a1a;
    display: inline-block;  
}

.counter-total {
    font-family:var(--en-font);
    font-size: clamp(24px, 2.4vw, 44px);
    line-height: 1;
    color: #c9c9c9;
    display: inline-block;
}

/* ---------- 內容區 ---------- */
.wizard-content {
    min-height: 440px;   /* 以最高的 Step 1 為基準,固定框架 */
}

.q-title {
    font-size: clamp(22px, 2.2vw, 32px);
    font-weight: 700;
    letter-spacing: .02em;
    /* margin-bottom: 12px; */
    margin-bottom:40px;
    color: #222;
}

.q-sub {
    font-size: 14px;
    color: #8a8a8a;
    margin-bottom: 40px;
}

.q-error {
    font-size: 14px;
    color: var(--color-accent);
    margin-top: 8px;
}

/* ---------- 選項列(checkbox / radio 共用) ---------- */
.option-grid {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid #ececec;
}

.option-grid--two {
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 4px;
    border-bottom: 1px solid #ececec;
    cursor: pointer;
    transition: color .2s ease;
    margin-bottom: 0;
    color:#545252;
}

.option-row:hover { color:#000; }
.option-row:has(input:checked) {
    color: #222;
    font-weight:500;
}

.option-row input {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #999;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    transition: border-color .2s ease;
    margin: 0;
}

.option-row input[type="radio"] { border-radius: 50%; }

.option-row input:checked { border-color: #222;}

.option-row input:checked::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: #222;
}

.option-row input[type="radio"]:checked::after { border-radius: 50%; }

.option-row span {
    font-size:1.3rem;
    letter-spacing: .02em;
}
.option-row-price span{
    font-size:1.2rem;
}
/* ---------- 一般欄位 ---------- */
.field { margin-bottom: 40px; }

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size:1.3rem;
    color: #222;
    margin-bottom: 14px;
}

.field-input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #d5d5d5;
    background: transparent;
    padding-bottom:10px;
    font-size:1.2rem;
    color:#545252;
    border-radius: 0;
    transition: border-color .25s ease;
}

.field-input:focus {
    outline: none;
    border-bottom-color: #222;
}

.field-input::placeholder { color: #b8b8b8; }

.field-textarea {
    border: 1px solid #d5d5d5;
    padding: 14px;
    min-height: 130px;
    resize: none;
    overflow: hidden; 
    line-height: 1.7;
    color:#545252;
}

.field-textarea:focus { border-color: #222; }

.field-count {
    text-align: right;
    font-size: 12px;
    color: #b8b8b8;
    margin-top: 6px;
}

/* select 箭頭 */
select.field-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 24px;
    cursor: pointer;
    /* padding: 12px 8px;  */
}




/* ---------- pill 標籤 ---------- */
.pill {
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    padding: 4px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    color: #7d7d7d;
    white-space: nowrap;
}

.pill--required {
    border-color: #8b8b8b;
    color: #222;
}

/* ---------- radio chip(是否有品牌) ---------- */
.radio-inline { display: flex; gap: 16px; }

.radio-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding:8px 20px;
    border: 1px solid #9f9f9f;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color .2s ease;
    margin-bottom: 0;
}
.radio-chip:hover { border-color: #999; }
.radio-chip:has(input:checked) { background:#222;color:#fff;}

.radio-chip input {
    appearance: none;
    /* width: 14px;
    height: 14px;
    border: 1px solid #999;
    border-radius: 50%;
    position: relative;
    margin: 0; */
    cursor: pointer;
    opacity:0;display:none;
}

.radio-chip input:checked { border-color: #222; }
.radio-chip input:checked::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: #222;
    border-radius: 50%;
}

.radio-chip span { font-size:1rem;}

/* ---------- Step 6 摘要 ---------- */
.summary { margin: 0; }

.summary-row {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    align-items: start;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #ececec;
}

.summary-row dt {
    font-size:1rem;
    color: #999;
    font-weight: 400;
}

.summary-row dd {
    margin: 0;
    font-size: 1.2rem;
    color:#545252;
    line-height: 1.7;
}

.summary-row dd small { color: #888; font-size: 1rem; }

.summary-edit {
    background: none;
    border: 0;
    font-size: 13px;
    color: #999;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 0;
    transition: color .2s ease;
}

.summary-edit:hover { color: var(--color-accent); }

/* ---------- 進度條 ---------- */
.wizard-progress {
    display: flex;
    gap: 14px;
    /* margin-top: 60px; */
    margin-top: 40px;
    margin-bottom: 32px;
}

.progress-seg {
    flex: 1;
    height: 2px;
    border: 0;
    padding: 0;
    background: #ececec;
    cursor: default;
    transition: background-color .3s ease;
}

.progress-seg.is-done {
    background: #b0b0b0;
    cursor: pointer;
}

/* .progress-seg.is-done:hover { background: #E85D26; } */
.progress-seg.is-done:hover { background: #000000; }

.progress-seg.is-active {
    background: #222;
    transform-origin: left center;   /* GSAP scaleX */
}

/* ---------- 按鈕列 ---------- */
.wizard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.actions-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.btn-text {
    background: none;
    border: 0;
    padding: 0;
    font-size: 14px;
    color: #666;
    letter-spacing: .05em;
    cursor: pointer;
    transition: color .2s ease;
}

.btn-text:hover:not(:disabled) { color: #222; }

.btn-text:disabled {
    color: #d5d5d5;
    cursor: not-allowed;
}

.btn-skip { color: #a5a5a5; }

.btn-bg{
    padding:4px 10px;
    border-radius:999px;
    background:#222;
    color:#fff;
}
.btn-bg:hover{
    background:#000;
}
/* ---------- 完成畫面 ---------- */
.wizard-done {
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
}

/* ---------- 送出成功提示 ---------- */
.wizard-alert {
    display: none;
    position: fixed;
    top:60%;
    left: 50%;
    transform: translate(-50%, -50%); 
    z-index: 999;
    color: #0f5132;
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 8px;
    padding: 16px 20px;
    font-size:1rem;
    line-height: 1.6;
    text-align: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
}

@media (max-width: 1200px)and (orientation: portrait){
    .contact {
        min-height:120vh;
        padding-bottom: 30vh;
    }
}

@media (max-width: 1200px){
    .contact .container-fluid-m .row{
        justify-content:center;
    }
    .contact .container-fluid-m .row > div{
        width:60%;
    }
    .wizard-counter {
        justify-content: flex-start;
        padding-right: 0;
        padding-bottom: 32px;
    }

}
@media (max-width:1024px) {
    .q-sub{ margin-bottom: 20px;}

    .wizard-content { min-height: auto; }

    .option-grid--two { grid-template-columns: 1fr; }


    .field-row { grid-template-columns: 1fr; }
    .field-row .field:first-child { margin-bottom: 40px; }

    .summary-row {
        grid-template-columns: 1fr auto;
        gap: 8px 20px;
    }
    .summary-row dt { grid-column: 1 / -1; }

    .wizard-progress { gap: 8px; margin-top: 40px; }

    .actions-right { gap: 18px; }
}

@media (max-width:820px) {
    .contact .container-fluid-m .row > div{
        width:70%;
    }
    .contact .title-inner{
        margin-top: 180px;
        margin-bottom:60px;
    }
    .contact .title{
        font-size: clamp(3.2rem, 7.5vw, 10rem);
    }
   
}


@media (max-width:500px) {
    .contact {
        padding-bottom:240px;
    }
    .contact .container-fluid-m .row > div{
        width:100%;
    }
    .option-row {
        padding: 10px 4px;
    }
    .option-row span ,.field-label,.summary-row dd {
        font-size:1.15rem;
    }
    .option-row-price span,.field-input{
        font-size:1.05rem;
    }
    .radio-chip {
        padding:4px 20px;
    }
    .summary-row{ 
        padding:0;
        padding-top: 16px;
        padding-bottom:6px;
        gap: 10px;
    }
     .wizard-alert {
        left: 20px;
        right: 20px;
        transform: translateY(-50%);
    }
}

@media (max-width:450px) {
     .title-inner{
        margin-top:120px;
    }
}