/* 報價 Landing：沿用 agency.css，只補報價內容多出來的部分 */

/* Hero 區塊 */
    .offer-page .hero-img-card {
        background:url(../img/offer/offer-top-img.jpg) no-repeat;
        background-position: center;
        background-size: cover;
    }
    .offer-page .hero-left .line-4 {
        font-size: 1.125rem;
    }
    .offer-page .hero-img-card .offer-badge {
        flex-shrink: 0;
        margin-left: 0.5rem;
        padding: 0.1rem 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 1rem;
        font-size: 0.875rem;
        color: #fff;
    }
    .offer-page .hero-img-card .hero-note {
        font-size: 1rem;
        color: #fff;
    }
    .offer-page .offer-how-link {
        display: inline-block;
        margin-top: 1rem;
        color: var(--red-main);
    }
    .offer-page .offer-disclaimer {
        margin: 0.75rem 0 0;
        font-size: 0.875rem;
        line-height: 1.6;
        color: #666;
    }
    .offer-hero-bg-lines {
        position: absolute;
        inset: 0;
        background: url(../img/offer/top-bg-2.jpg) no-repeat;
        background-size: cover;
        z-index: 0;
    }

/* 報價輸入框 */
    .offer-page .offer-quote-box {
        display: flex;
        align-items: stretch;
    }
    .offer-page .offer-quote-input {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        align-items: center;
        margin-right: 0.75rem;
        padding: 0 1rem;
        background: #fff;
        border: 1px solid #ced4da;
        border-radius: 20px;
    }
    .offer-page .offer-quote-input:focus-within {
        border-color: var(--red-main);
    }
    .offer-page .offer-quote-input.is-invalid {
        border-color: #CC0000;
    }
    .offer-page .offer-quote-input i {
        margin-right: 0.5rem;
        color: var(--red-main);
    }
    .offer-page .offer-quote-input input {
        flex: 1 1 auto;
        min-width: 0;
        height: 2.5rem;
        padding: 0;
        border: none;
        background: transparent;
        text-overflow: ellipsis;
    }
    .offer-page .offer-quote-input input:focus {
        border: none;
        box-shadow: none;
    }
    .offer-page .offer-quote-box .btn-brand {
        flex-shrink: 0;
    }
    .offer-page .offer-quote-error {
        margin: 0.75rem 0 0;
        font-size: 0.9375rem;
        color: #CC0000;
    }
    .offer-page .check-list {
        list-style: none;
        padding-left: 0;
        margin-top: 1rem;
        font-size: 1rem;
        gap: 0.25rem 1.25rem;
    }
    .offer-page .check-list i {
        margin-right: 0.2rem;
        color: #039A17;
    }

/* 報價輸入框：膠囊樣式，比照線上 /offer。表單加 .offer-quote-pill 才套用，錯誤狀態掛在 .offer-quote-box */
    .offer-page .offer-quote-pill .offer-quote-box {
        flex-direction: row;
        align-items: center;
        padding: 0.5rem;
        background: #fff;
        border-radius: 9999px;
        box-shadow: 0 2px 4px rgba(31, 41, 55, 0.05), 0 16px 40px rgba(31, 41, 55, 0.12);
    }
    .offer-page .offer-quote-pill .offer-quote-box.is-invalid {
        box-shadow: 0 0 0 2px #B3261E, 0 2px 4px rgba(31, 41, 55, 0.05), 0 16px 40px rgba(31, 41, 55, 0.12);
    }
    .offer-page .offer-quote-pill .offer-quote-input {
        flex: 1 1 0;
        margin: 0 0.5rem 0 0;
        background: transparent;
        border: none;
        border-radius: 0;
    }
    .offer-page .offer-quote-pill .offer-quote-input i {
        flex-shrink: 0;
        margin-right: 0.75rem;
        font-size: 1.25rem;
        line-height: 1;
    }
    .offer-page .offer-quote-pill .offer-quote-input input {
        height: 3rem;
        font-size: 1rem;
        color: #1F2937;
    }
    .offer-page .offer-quote-pill .offer-quote-input input::placeholder {
        color: #718096;
        opacity: 1;
    }
    .offer-page .offer-quote-pill .offer-quote-box .btn-brand {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        height: 3rem;
        padding: 0 1.75rem;
        border: none;
        border-radius: 9999px;
        font-size: 1rem;
        font-weight: 700;
        white-space: nowrap;
        transition: background-color 0.15s;
    }
    .offer-page .offer-quote-pill .offer-quote-box .btn-brand:hover {
        background-color: #A8442F;
    }
    .offer-page .offer-quote-pill .offer-quote-box .btn-brand i {
        margin-left: 0.5rem;
        font-size: 1rem;
        line-height: 1;
    }
    .offer-page .offer-quote-pill .offer-quote-error {
        font-size: 0.875rem;
        color: #B3261E;
    }

/* 數字帶 */
    .offer-page .offer-stats {
        margin-top: 3rem;
    }
    .offer-page .offer-stats .stat-item {
        height: 100%;
        padding-left: 1rem;
        border-left: 1px solid var(--gold-main);
    }
    .offer-page .offer-stats h3 {
        margin-bottom: 0.25rem;
        font-size: 1.688rem;
        font-weight: bold;
    }
    .offer-page .offer-stats h3 span {
        font-size: 2.25rem;
        line-height: 1.2;
        color: var(--gold-main);
        font-family: Arial;
    }
    .offer-page .offer-stats p {
        margin: 0;
        font-size: 0.9375rem;
        color: #555;
    }

/* 卡片列對齊標題 */
    .offer-page .nextMove-section .row,
    .offer-page .exclusive-section .right-box .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    .offer-page .nextMove-section .offer-split > [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

/* 五種價格 */

    .nextMove-section {
        margin-top: 3rem;
        padding: 2rem 0 1rem;
        position: relative;
        overflow: hidden;
    }
    .nextMove-section .nextMove-bg-lines-offer {
        background: url(../img/offer/offer-area02-bg.jpg) no-repeat;
        background-position: center;
        background-size: cover;
    }

    .offer-page .nextMove-section .offer-filter-label {
        flex-shrink: 0;
        margin-right: 1rem;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: #555;
    }
    .offer-page .nextMove-section .filter-btn-group .btn {
        padding: 0.4rem 1.25rem;
    }
    .offer-page .nextMove-section .task-card .card-num {
        position: absolute;
        top: 1rem;
        right: 1.25rem;
        color: var(--gold-main);
        font-size: 1.25rem;
        font-weight: bold;
        font-family: Arial;
        opacity: 0.6;
    }
    .offer-page .nextMove-section .task-card h5 small {
        font-size: 0.8125rem;
        font-weight: normal;
        white-space: nowrap;
    }
    .offer-page .nextMove-section .task-card.is-fit {
        background: #FDF3F0;
        box-shadow: 0 0 0 2px var(--red-main);
    }
    .offer-page .nextMove-section .task-card.is-dim {
        opacity: 0.5;
    }
    .offer-page .nextMove-section .task-card {
        transition: opacity 0.3s, background 0.3s, box-shadow 0.3s, transform 0.8s;
    }

/* 流程 */
    .offer-page .progress-section {
        margin-top: 3rem;
        scroll-margin-top: 4.5rem;
    }
    .offer-page .progress-section .step-item .step-num {
        width: auto;
        padding: 0 0.9rem;
        border-radius: 1.3125rem;
        font-size: 1rem;
    }
    .offer-page .progress-section .step-item:before {
        left: 6.5rem;
        width: calc(100% - 7.625rem);
    }
    .progress-section .progress-bg-lines-offer {
        background: url(../img/offer/offer-area03-bg.jpg) no-repeat;
        background-position: center;
        background-size: cover;
    }

/* 數據依據、市場 */
    .offer-page .exclusive-section .offer-icon {
        display: block;
        margin-bottom: 0.5rem;
        font-size: 1.75rem;
        line-height: 1.2;
        color: var(--gold-main);
    }
    .offer-page .exclusive-section .offer-market-icon {
        margin-right: 0.25rem;
        color: var(--gold-main);
    }
    /* 數據依據卡片比照線上 /offer：無框，左側圖示方塊、右側文字，欄距 40px、列距 32px；字級沿用 agency.css */
    .offer-page .exclusive-section .offer-lab-grid {
        margin-top: 3rem;
    }
    .offer-page .exclusive-section .offer-lab-grid .row {
        margin-left: -1.25rem;
        margin-right: -1.25rem;
        margin-bottom: -1rem;
    }
    .offer-page .exclusive-section .offer-lab-grid [class*="col-"] {
        margin-bottom: 2rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .offer-page .exclusive-section .offer-lab-grid .advantage-box {
        display: flex;
        align-items: flex-start;
        padding: 0;
        border: none;
        border-radius: 0;
    }
    .offer-page .exclusive-section .offer-lab-grid .advantage-box > div {
        flex: 1 1 auto;
        min-width: 0;
    }
    .offer-page .exclusive-section .offer-lab-icon {
        display: flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        width: 3rem;
        height: 3rem;
        margin-right: 1rem;
        border-radius: 0.75rem;
        background: #F8FAFC;
        color: #BC984C;
    }
    .offer-page .exclusive-section .offer-lab-icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }

/* 賣方選擇 */
    .offer-page .offer-sellers {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    /* 內文會壓到背景建築，加一層白色遮罩 */
    .offer-page .offer-sellers .nextMove-bg-lines::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.55);
    }
    .offer-page .offer-sellers .task-card .card-body {
        padding: 1.75rem 1.25rem 1rem;
    }
    .offer-page .offer-sellers .btn-brand {
        font-size: 1.0625rem;
    }

/* 仲介合作 (黑底) */
    .offer-page .pro-section .container {
        position: relative;
    }
    .offer-page .pro-section .line-3 {
        font-size: 2.215rem;
    }
    .offer-page .pro-section .line-4 {
        line-height: 1.7;
    }
    .offer-page .pro-section .offer-agent-list {
        padding-left: 2.5rem;
        border-left: 1px solid var(--gold-main);
    }
    .offer-page .pro-section .offer-agent-list h5 {
        margin-bottom: 1rem;
        font-size: 1.25rem;
        font-weight: bold;
        color: var(--gold-main);
    }
    .offer-page .pro-section .offer-agent-list ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .offer-page .pro-section .offer-agent-list li {
        position: relative;
        padding-left: 1.75rem;
        margin-bottom: 0.75rem;
        font-size: 1.0625rem;
        line-height: 1.5;
    }
    .offer-page .pro-section .offer-agent-list li:last-child {
        margin-bottom: 0;
    }
    .offer-page .pro-section .offer-agent-list li i {
        position: absolute;
        left: 0;
        top: 0;
        color: var(--gold-main);
    }

/* 透明報價 */
    .offer-page .offer-transparent {
        padding: 3rem 0;
        background: #F7F6F2;
    }
    .offer-page .offer-transparent p.body {
        font-size: 1.0625rem;
        line-height: 1.8;
        color: #555;
    }

/* FAQ 與報價 CTA */
    .offer-page .FAQ-section .contact-box {
        padding: 2rem;
        border-radius: 1.2rem;
        background: #fff;
    }
    .offer-page .FAQ-section .contact-box .section-title {
        font-size: 1.875rem;
    }
   /* .offer-page .FAQ-section .contact-box .offer-quote-box {
        flex-direction: column;
    }
    .offer-page .FAQ-section .contact-box .offer-quote-input {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }*/
    .offer-page .FAQ-section .contact-box .link a {
        display: inline-block;
        margin-top: 1rem;
    }

@media (min-width: 1200px) {
    .offer-page .col-xl-offer5 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (max-width: 1199.98px) {
    .offer-page .hero-left .line-2 {
        font-size: 3.125rem;
    }
}

@media (max-width: 991.98px) {
    .offer-page .pro-section .offer-agent-list {
        padding-top: 1.5rem;
        padding-left: 0;
        border-top: 1px solid var(--gold-main);
        border-left: none;
    }
    /* 照片淡出處要和下半部同色才不會有接縫 */
    .offer-page .pro-section .pro-bg-lines .right-bg {
        background-color: #202425 !important;
    }
    /* 文字改疊在整張照片上，壓暗才讀得清楚 */
    .offer-page .pro-section .pro-bg-lines .left-bg::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(32, 36, 37, 0.5);
    }
}

@media (max-width: 767px) {
    .offer-page .hero-left .line-2 {
        font-size: 2.5rem;
    }
    .offer-page .offer-quote-box {
        flex-direction: column;
    }
    .offer-page .offer-quote-input {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    .offer-page .section-title {
        font-size: 1.75rem;
    }
    .offer-page .pro-section .line-3 {
        font-size: 1.625rem;
    }
    .offer-page .pro-section .btn-brand,
    .offer-page .offer-sellers .btn-brand,
    .offer-page .FAQ-section .btn-brand {
        width: 100%;
    }
    .offer-page .FAQ-section .contact-box {
        padding: 1.5rem 1.25rem;
    }
    /* 單欄時不需要 40px 欄距，負邊距會超出手機容器 */
    .offer-page .exclusive-section .offer-lab-grid .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    .offer-page .exclusive-section .offer-lab-grid [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* 膠囊輸入框：線上版在 640px 以下才改直排，和系列的 767px 不同。
   992～1199px 這裡是左右兩欄，欄位比線上窄，橫排時輸入區放不下，同樣改直排 */
@media (max-width: 639.98px), (min-width: 992px) and (max-width: 1199.98px) {
    .offer-page .offer-quote-pill .offer-quote-box {
        flex-direction: column;
        align-items: stretch;
        border-radius: 1rem;
    }
    .offer-page .offer-quote-pill .offer-quote-input {
        flex: 0 0 auto;
        margin: 0 0 0.5rem;
        padding: 0 0.75rem;
    }
    .offer-page .offer-quote-pill .offer-quote-box .btn-brand {
        width: 100%;
    }
}

@media (max-width: 374px) {
    .offer-page .hero-left .line-2 {
        font-size: 2.125rem;
    }
}
