/* === 全局基础设置 === */
body {
    font-family: 'Nunito', sans-serif;
}

/* === 容器类 === */
.pj-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1rem;
}

.pj-container-wide {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* === 导航栏 === */
.navbar {
    height: 112px;
    background-color: #5a5a5a;
    padding: 0 1rem;
    margin-bottom: 0 !important;
}

.logo {
    height: 80px;
    object-fit: contain;
}

/* === 文本样式 === */
.custom-header {
    font-size: 2.125rem;
}

.custom-lead {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
}

.small-label {
    font-size: 1rem;
}

.small-label-bold {
    font-size: 1.1rem;
    font-weight: 600;
}

/* === 按钮样式 === */
.btn-primary {
    height: 55px !important;
    background-color: #ea8b26 !important;
    border-color: #ea8b26 !important;
    padding: 0 1.5rem !important;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #d47e22 !important;
    border-color: #d47e22 !important;
}

.btn-outline-info {
    font-size: 1.2rem;
    background-color: #fff;
    border-color: #dadada;
    color: #000;
}

.btn-outline-info:hover,
.btn-outline-info:focus {
    background-color: #e6f8fb;
    border-color: #dedede !important;
    color: #000 !important;
}

.btn-check:checked+.btn-outline-info {
    background-color: #17A2B8;
    border-color: #17A2B8;
    color: #fff;
}

.btn-check:checked+.btn-outline-info:hover,
.btn-check:checked+.btn-outline-info:focus {
    color: #fff !important;
    border-color: #17a2b8 !important;
}

.btn-outline-info.disabled,
.btn-outline-info:disabled {
    background-color: #fff !important;
    border-color: #dadada !important;
    color: #ccc !important;
    opacity: 1;
}

/* === 表单输入框 === */
.input-tall,
.date-row input.form-control {
    height: 60px;
    font-size: 1.2rem;
    border-radius: 0;
    padding: 10px 16px;
}

.input-tall:focus,
.date-row input.form-control:focus {
    border-color: #17A2B8;
    box-shadow: 0 0 0 0.25rem rgba(23, 162, 184, 0.25);
}

.no-rounded {
    border-radius: 0 !important;
}

/* === 选择人数按钮 === */
#peopleCountGroup .btn,
.gender-btn {
    height: 60px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* === 按钮区域布局 === */
.btn-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
}

.btn-wrapper>button {
    padding: 0.5rem 1.5rem;
    width: auto;
}

/* === 响应式调整 === */
@media (max-width: 767.98px) {
    .btn-wrapper {
        justify-content: center !important;
    }

    .btn-wrapper>button {
        width: 100% !important;
        max-width: 400px;
        display: block;
    }
}

@media (min-width: 768px) {
    .date-row {
        display: flex;
        gap: 24px;
    }
}

@media (max-width: 576px) {
    .navbar {
        height: auto;
        padding: 0.5rem 1rem;
    }

    .logo {
        height: 60px;
    }

    .navbar .d-flex {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        width: 100%;
    }

    .dropdown {
        margin-left: auto;
    }

    .custom-header {
        font-size: 1.825rem;
    }

    .custom-lead {
        font-size: 1rem;
    }
}

.riding-level-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
    /* 没有间距 */
}

@media (min-width: 768px) {
    .riding-level-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


.button-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 10px 0;
}

.action-btn {
    padding: 0.5rem 1.5rem;
    height: 60px;
    width: auto;
    min-width: 180px;
}

/* 手机时：垂直排列 + 占满宽度 */
@media (max-width: 767.98px) {
    .button-row {
        flex-direction: column-reverse;
        /* 让 Continue 在上面 */
        align-items: stretch;
    }

    .action-btn {
        width: 100%;
    }
}

.back-btn {
    background-color: #343a40;
    border-color: #343a40;
    color: #fff;
}

.back-btn:hover,
.back-btn:focus {
    background-color: #23272b;
    border-color: #23272b;
    color: #fff;
}

input[type="radio"].d-none {
    display: none;
}

.package-select-wrapper {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

@media (max-width: 767.98px) {
    .package-select-wrapper {
        flex-wrap: wrap;
        justify-content: center;
    }

    .package-select-wrapper .select-card {
        width: 100%;
        max-width: none;
    }
}

.select-card {
    display: flex;
    flex-direction: column;
    height: 300px;
    overflow: hidden;
    background-color: #fff;
    width: 250px;
    margin-bottom: 1rem;
    cursor: pointer;
    user-select: none;
    border: none;
    border-radius: 0;
}

/* 固定高度，防止缩小 */
.bottom-bar {
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    color: #666;
    position: relative;
    transition: background-color 0.3s;
}

.bottom-bar>div:nth-child(2) {
    /* 你那个字体大的div */
    line-height: 1;
    margin-top: 8px;
    /* 试着微调垂直偏移 */
}

.bar-line {
    height: 8px;
    flex-shrink: 0;
    background-color: #17a2b8;
}

/* 让内容撑满剩余空间 */
.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.5rem;
    flex-grow: 1;
    overflow: auto;
    /* 内容多时可以滚动 */
    /* 你可以调节间距 */
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 3px;
    margin-right: 0.5rem;
    position: relative;
    flex-shrink: 0;
    background-color: transparent;
    transition: border-color 0.3s;
}

/* 恢复你原来的对勾样式 */
input[type="radio"]:checked+label.select-card .checkbox-custom::after {
    content: "";
    position: absolute;
    left: 10px;
    top: -6px;
    width: 10px;
    height: 20px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* 选中时只改变 bottom-bar 背景 */
input[type="radio"]:checked+label.select-card .bottom-bar {
    background-color: #17A2B8;
    color: #fff;
}

input[type="radio"]:checked+label.select-card .checkbox-custom {
    border-color: #fff;
}

.boot-option-select {
    width: 250px;
    cursor: pointer;
}

.boot-option-bar {
    min-height: 90px;
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    padding-left: 1rem;
    border: 1px solid #ccc;
    user-select: none;
    transition: background-color 0.3s, border-color 0.3s;
}

.boot-option-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1rem;
    margin-left: 0.5rem;
}

.boot-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
}

.boot-price {
    font-size: 0.875rem;
    color: #aaa;
}

/* 手机时宽度撑满 */
@media (max-width: 767.98px) {
    .boot-option-select {
        width: 100%;
    }
}

/* 勾选后的样式 */
input[type="checkbox"]:checked+label.boot-option-bar,
input[type="radio"]:checked+label.boot-option-bar {
    background-color: #17A2B8;
    border-color: #17A2B8;
    color: #fff;
}

input[type="checkbox"]:checked+label.boot-option-bar .boot-price,
input[type="radio"]:checked+label.boot-option-bar .boot-price {
    color: #fff;
}

input[type="checkbox"]:checked+label.boot-option-bar .discount-text,
input[type="radio"]:checked+label.boot-option-bar .discount-text {
    color: #fff;
}

input[type="checkbox"]:checked+label.boot-option-bar .checkbox-custom,
input[type="radio"]:checked+label.boot-option-bar .checkbox-custom {
    border-color: #fff;
}

/* 复用你已有的对勾样式 */
input[type="checkbox"]:checked+label.boot-option-bar .checkbox-custom::after,
input[type="radio"]:checked+label.boot-option-bar .checkbox-custom::after {
    content: "";
    position: absolute;
    left: 10px;
    top: -6px;
    width: 10px;
    height: 20px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:checked+label.boot-option-bar .boot-title,
input[type="radio"]:checked+label.boot-option-bar .boot-title {
    color: #fff;
}

.outerwear-select-wrapper {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* 每个选项宽度一致，手机自动撑满 */
.outerwear-option,
.package-option {
    width: 220px;
    max-width: 100%;
}

@media (max-width: 767.98px) {
    .outerwear-option,
    .package-option {
        width: 100%;
    }
}

.sales-items-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 220px));
    gap: 0.5rem;
}

.sale-option {
    width: 100%;
}

@media (max-width: 767.98px) {
    .sales-items-wrapper {
        grid-template-columns: 1fr;
    }
}

.guest-name {
    color: #000;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
}

.card-description {
    flex-grow: 1;
    color: #666;
    font-size: 1rem;
    padding-left: 0.5rem;
    padding-right: 60px;
}

.card-price-info {
    height: 60px;
    padding-left: 0.5rem;
    padding-top: 0.5rem;
}

.price-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: #000;
}

.discount-text {
    font-size: 0.85rem;
    color: #999;
}

.price-summary-person {
    padding: 1rem 0;
    border-bottom: 1px solid #ccc;
}

.price-person-name {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.price-summary-line {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) minmax(180px, 1.4fr) minmax(80px, 0.7fr) minmax(90px, 0.8fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.45rem 0;
    font-size: 0.9rem;
}

.price-rate,
.price-duration {
    color: #666;
}

.price-subtotal {
    text-align: right;
    font-weight: 700;
}

.price-summary-discount .price-subtotal {
    grid-column: -2 / -1;
}

.price-summary-total {
    padding-top: 1rem;
    text-align: right;
    font-size: 1.15rem;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .price-summary-line {
        grid-template-columns: 1fr auto;
        gap: 0.25rem 1rem;
        padding: 0.65rem 0;
    }

    .price-item-name,
    .price-rate {
        grid-column: 1 / -1;
    }

    .price-duration {
        grid-column: 1;
    }

    .price-subtotal {
        grid-column: 2;
    }
}

.btn_g {
    font-size: 1rem;
    font-weight: 700;
    padding: 1rem 4rem;
    background-color: #17a2b8 !important;
    border: 2px solid #FFF !important;
    color: #FFF !important;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.btn_g:hover,
.btn_g:focus,
.btn_g:active {
    font-weight: 700;
    background-color: transparent !important;
    border: 2px solid #17a2b8 !important;
    color: #17a2b8 !important;
    text-decoration: none;
}

/* bg */
.sb1 {
    background-image: url('sb_1_bg.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 60px auto;
}

.sb2 {
    background-image: url('sb_2_bg.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 60px auto;
}

.sb3 {
    background-image: url('sb_3_bg.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 60px auto;
}

.sb4 {
    background-image: url('sb_4_bg.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 60px auto;
}

.sb5 {
    background-image: url('sb_5_bg.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 60px auto;
}

.ski1 {
    background-image: url('ski_1_bg.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 60px auto;
}

.ski2 {
    background-image: url('ski_2_bg.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 60px auto;
}

.ski3 {
    background-image: url('ski_3_bg.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 60px auto;
}

.ski4 {
    background-image: url('ski_4_bg.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 60px auto;
}

.result-section { background:#f4f5f7; min-height:calc(100vh - 136px); padding:48px 16px 72px; }
.result-card { max-width:620px; margin:0 auto; padding:42px; border-radius:20px; background:#fff; text-align:center; box-shadow:0 18px 50px rgba(0,0,0,.12); border-top:6px solid #198754; }
.result-card-error { border-top-color:#dc3545; }
.result-icon { display:grid; place-items:center; width:68px; height:68px; margin:0 auto 22px; border-radius:50%; background:#e9f7ef; color:#198754; font-size:36px; font-weight:700; }
.result-card-error .result-icon { background:#fdecec; color:#dc3545; }
.result-card h1 { font-size:clamp(1.7rem,4vw,2.25rem); font-weight:700; margin-bottom:14px; }
.result-card p { font-size:1.05rem; }
.result-muted { color:#6c757d; }
.result-reference { margin:28px 0 14px; padding:18px; border-radius:12px; background:#f6f7f8; }
.result-reference span,.result-reference strong { display:block; }
.result-reference strong { margin-top:5px; font-size:1.8rem; letter-spacing:.12em; }
.result-total { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; padding:0 8px; font-size:1.2rem; }
.result-total strong { font-size:1.5rem; }
.result-hold { margin:0 0 26px; color:#495057; }
.result-error-details { white-space:pre-wrap; margin:20px 0; padding:12px; border-radius:8px; background:#fff3f3; color:#842029; font:inherit; text-align:left; }
@media (max-width:575.98px) { .result-section{padding:24px 12px 48px}.result-card{padding:30px 20px;border-radius:14px}.result-reference strong{font-size:1.5rem} }

/* Allow translated shoe-size instructions to wrap on small screens. */
.boot-size-help {
    min-height: 60px;
    height: auto;
    padding: 12px;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 1rem;
    border: 1px solid #17a2b8;
    color: #17a2b8;
    background-color: #fff;
}
