body {
    font-family: 'Noto Sans TC', 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7f6;
    margin: 0;
    padding: 0;
}

.step-content .form-label {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 600;
    color: #2c7a7b;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.page-bg {
    background: linear-gradient(180deg, #f4f7f5 0%, #eef4f0 40%, #f6f9f7 100%);
}

.page-section {
    padding: 20px 0;
}

.logo-img {
    height: 40px;
    width: auto;
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    position: relative;
    padding: 0.4rem 0;
    transition: color 0.2s, transform 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: 0;
    background-color: #28a745;
    transition: width 0.3s;
}

.nav-link:hover {
    color: #28a745;
    transform: translateY(-1px);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-item {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

/* Navbar */
.navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.border-bottom {
    border-bottom: none !important;
}

.banner {
    position: relative;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(245, 250, 247, 0.85), rgba(245, 250, 247, 0.85)), url(https://cuthouse.tw/img/banner.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 15px;
}

.banner-content {
    position: relative;
    z-index: 2;
    padding-top: 20px;
}

.banner h1 {
    font-size: 40px;
    color: #2f6f4e;
    letter-spacing: 4px;
    margin-bottom: 10px;
    font-weight: 600;
}

.banner-divider {
    width: 220px;
    height: 2px;
    background-color: #2f6f4e;
    margin: 16px auto;
    opacity: 0.6;
}

.banner p {
    font-size: 20px;
    font-weight: 600;
    color: #5f7f6a;
    letter-spacing: 1px;
}

.white-card {
    background: #fff;
    border-radius: 4px;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.step-flow {
    display: flex;
    overflow: hidden;
}

.step {
    position: relative;
    flex: 1;
    padding: 14px 20px;
    background: #f1f1f1;
    color: #777;
    text-align: center;
    font-size: 14px;
}

.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -20px;
    width: 0;
    height: 0;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 20px solid #f1f1f1;
    z-index: 2;
}

.step:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 20px solid #f1f1f1;
    z-index: 1;
}

.step.active {
    background: #2e6b3f;
    color: #fff;
    font-weight: bold;
}

.step.active::after {
    border-left-color: #2e6b3f;
}

.booking-box {
    background: #fff;
    margin-top: 20px;
    padding: 25px;
    border-radius: 6px;
}

.optgroup{
    color: #339396;
    font-size: 20px;
    font-weight: 700;
}

.optgroup option{
    color: #000000;
    font-size: 18px;
    font-weight: 500;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.designer-card {
    height: 100%;
    background: #fff;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    border: 1px solid #e3ede7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.designer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-color: #b9d7c4;
}

.designer-card img {
    width: 50%;
    height: 140px;
    margin: 0 auto 20px auto;
    border-radius: 90%;
    display: block;
    object-fit: cover;
}

.designer-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.designer-card h5 {
    margin: 6px 0 10px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2e6b3f;
}

.designer-card .meta {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
    width: 100%;
    max-width: 220px;
}

.designer-card .meta span:last-child {
    text-align: left;
}

.designer-card .label {
    display: inline-block;
    text-align: center;
    padding: 2px 0;
    font-size: 0.75rem;
    border-radius: 999px;
    background: #e8f3ec;
    color: #2e6b3f;
}

.btn-margin{
    margin-top: 10px;
}

.location-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    color: #2e6b3f;
    background-color: #e8f3ec;
    border: 1px solid #b9d7c4;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-btn:hover {
    background-color: #2e6b3f;
    color: #fff;
}

.booking-summary {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    border: 1px solid #e3ede7;
    border-radius: 0.6rem;
    overflow: hidden;
}

.summary-header {
    background: #e8f3ec;
    color: #2e6b3f;
    font-weight: 800;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1rem;
    padding: 0.7rem 1rem;
    border-top: 1px dashed #e3ede7;
    font-size: 0.95rem;
}

.summary-item .label {
    color: #777;
    font-weight: 600;
}

.summary-item .value {
    color: #333;
    line-height: 1.6;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1rem;
    background: #f6fbf8;
    border-top: 1px solid #cfe4d7;
    font-size: 1.05rem;
}

.summary-total strong {
    color: #2e6b3f;
    font-size: 1.3rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1rem;
    background-color: #fff8f0;
    padding: 0 1rem 1rem 1rem;
    border-radius: 0.6rem;
    border: 1px solid #ffd7a5;
}

.checkbox-group label {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.section {
    margin-bottom: 1.5rem;
    margin-top: 1.0rem;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 1rem 0 0.8rem 0;
    color: #339396;
    position: relative;
    font-family: "Segoe UI", "微軟正黑體", Arial, sans-serif;
}

.section-title::before,
.section-title::after {
    content: "";
    flex: 1;
    height: 2px;
    background: #ddd;
    margin: 0 10px;
}

.step4-result {
    padding: 40px 20px;
}

.step4-result p {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: #333;
}

.step4-qrcode {
    display: block;
    margin: 20px auto;
    width: 150px;
    max-width: 60vw;
    height: auto;
}

.terms-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 28px;
    font-family: "Segoe UI", "微軟正黑體", Arial, sans-serif;
    line-height: 1.8;
    color: #333;
}

.terms-page section {
    margin-bottom: 2.2rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px dashed #e3ede7;
}

.terms-page section:last-child {
    border-bottom: none;
}

.terms-page h5 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #2e6b3f;
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terms-page h5::before {
    content: "";
    width: 6px;
    height: 20px;
    background: #2e6b3f;
    border-radius: 3px;
}

.terms-page ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.terms-page li {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.terms-page li ul {
    margin-top: 0.4rem;
    padding-left: 1.2rem;
}

.terms-page li ul li {
    font-size: 0.9rem;
    color: #555;
    list-style-type: circle;
}

.line-float {
    position: fixed;
    left: 20px;
    bottom: 5%;
    z-index: 9999;
    width: 60px;
    height: 60px;
}

.line-float img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.line-float img:hover {
    transform: scale(1.1);
}

.float-btn {
    position: fixed;
    left: 20px;
    z-index: 9999;
    width: 60px;
    height: 60px;
}

.float-btn img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.float-btn img:hover {
    transform: scale(1.1);
}

.line-btn {
    bottom: 5%;
}

.fb-btn {
    bottom: calc(5% + 70px);
}

#orderResult {
    display: block;
}

#orderResult table {
    border-collapse: separate;
    border-spacing: 0 12px;
    width: 100%;
}

#orderResult thead {
    display: none;
}

#orderResult tbody tr {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    align-items: center;
    justify-content: space-between;
}

#orderResult tbody td {
    border: none;
    flex: 1 1 100px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    position: relative;
}

#orderResult tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

#orderResult tbody td button {
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.group-price-popover {
    max-width: 360px !important;
}

.group-price-popover .popover-body {
    font-size: 16px;
    line-height: 1.8;
    padding: 14px 16px;
}

.group-price-popover hr {
    margin: 10px 0;
    opacity: 0.25;
}

.group-price-popover .popover-header {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
}
.group-price-popover .popover-header::before {
    content: "✂️ ";
}

@media (max-width:768px) {
    .banner {
        height: 150px;
    }

    .banner-plant {
        width: 250px;
        height: 120px;
        right: -20px;
        opacity: 0.4;
    }

    .banner h1 {
        font-size: 30px;
    }

    .banner p {
        font-size: 16px;
        font-weight: 500;
        color: #437050;
        letter-spacing: 2px;
        margin-bottom: 8px;
    }

    .optgroup {
        color: #339396;
        font-size: 18px;
        font-weight: 700;
    }

    .optgroup option {
        color: #000000;
        font-size: 15px;
        font-weight: 500;
    }

    .designer-card .meta {
        max-width: 200px;
    }

    .designer-card img {
        width: 130px;
        height: 130px;
        margin: 0 auto 15px auto;
        max-width: 80%;
    }

    .step4-qrcode {
        width: 150px;
    }

    .step {
        font-size: 0.9rem;
        padding: 12px;
    }

    .designer-card img {
        height: 120px;
    }


    #orderResult table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 10px;
    }

    #orderResult thead {
        display: none;
    }

    #orderResult tbody,
    #orderResult tr,
    #orderResult td {
        display: block;
        width: 100%;
    }

    #orderResult tbody tr {
        margin-bottom: 15px;
        padding: 15px;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        border-radius: 12px;
    }

    #orderResult tbody td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border: none;
        margin-bottom: 8px;
    }

    #orderResult tbody td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 600;
        color: #6c757d;
        text-align: left;
    }

    #orderResult tbody td:last-child {
        margin-bottom: 0;
    }

    .navbar-collapse {
        text-align: center;
    }

    .navbar-nav {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .navbar-nav .nav-item {
        margin: 0.6rem 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.6rem 0;
    }
}

/* ===== mobile ===== */
@media (max-width:576px) {
    body.page-bg {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .navbar-collapse {
        text-align: center;
    }

    .navbar-nav {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .navbar-nav .nav-item {
        margin: 0.6rem 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.6rem 0;
    }

    .designer-card img {
        width: 110px;
        height: 110px;
        margin: 0 auto 10px auto;
        max-width: 80%;
    }

    .optgroup {
        color: #339396;
        font-size: 18px;
        font-weight: 700;
    }

    .optgroup option {
        color: #000000;
        font-size: 15px;
        font-weight: 500;
    }

    .terms-page {
        padding: 24px 18px;
    }

    .terms-page h5 {
        font-size: 1rem;
    }

    .terms-page li {
        font-size: 0.9rem;
    }

    .col-12.text-end {
        text-align: center !important;
    }

    .text-end {
        text-align: center !important;
    }

    .step-flow {
        display: flex;
        align-items: stretch;
        overflow: hidden;
        background: #f1f1f1;
    }

    .step {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        font-size: 10px;
        padding: 10px 6px;
        line-height: 1.2;
        text-align: center;
        background: #f1f1f1;
    }

    .step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 0;
        right: -12px;
        width: 0;
        height: 0;
        border-top: 18px solid transparent;
        border-bottom: 18px solid transparent;
        border-left: 12px solid #f1f1f1;
        z-index: 2;
    }

    .step:not(:first-child)::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 0;
        border-top: 18px solid transparent;
        border-bottom: 18px solid transparent;
        border-left: 12px solid #f1f1f1;
        z-index: 1;
    }

    .step.active {
        background: #2e6b3f;
        color: #fff;
        font-weight: bold;
    }

    .step.active::after {
        border-left-color: #2e6b3f;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        text-align: center;
    }

    .navbar-nav {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .navbar-nav .nav-item {
        margin: 0.6rem 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.6rem 0;
    }
}