/*
 * 预约表单样式（booking.html / quick_booking.html 共用）
 * 粉色主题 #f96c9f
 */

/* ==================== 共享规则 ==================== */

/* 选择服务类型（两页通用） */
.service-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.service-option { position: relative; }
.service-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.service-option .option-content { display: flex; flex-direction: column; align-items: center; padding: 13px 6px; background: #fff; border-radius: 12px; border: 2px solid transparent; transition: all 0.25s; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.service-option input:checked + .option-content { border-color: #f96c9f; background: linear-gradient(135deg, rgba(249,108,159,0.08), rgba(162,155,254,0.08)); }
.service-option .option-content i { font-size: 22px; color: #f96c9f; margin-bottom: 6px; }
.service-option .option-content span { font-size: 12px; color: #444; font-weight: 500; text-align: center; }

/* 咨询方式（两页通用） */
.consult-mode-list { display: flex; flex-direction: column; gap: 9px; }
.consult-mode-option { position: relative; }
.consult-mode-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.consult-mode-item { display: flex; align-items: center; padding: 13px 14px; background: #fff; border-radius: 12px; border: 2px solid transparent; transition: all 0.25s; cursor: pointer; gap: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.consult-mode-option input:checked + .consult-mode-item { border-color: #f96c9f; background: linear-gradient(135deg, rgba(249,108,159,0.06), rgba(162,155,254,0.06)); }
.consult-mode-item i { font-size: 18px; color: #f96c9f; width: 24px; text-align: center; flex-shrink: 0; }
.consult-mode-item .mode-info h4 { margin: 0; font-size: 14px; color: #333; font-weight: 600; }
.consult-mode-item .mode-info p { margin: 2px 0 0; font-size: 11px; color: #999; }

/* 复选框（两页通用，booking 用 .checkbox-option，quick 用 .cb-option）*/
.checkbox-option,
.cb-option { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-width: 0; }
.checkbox-option input[type="checkbox"],
.cb-option input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox-option .cb-box,
.cb-option .cb-box { width: 18px; height: 18px; border: 2px solid #ddd; border-radius: 4px; background: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all .2s; margin-top: 2px; }
.checkbox-option input[type="checkbox"]:checked + .cb-box,
.cb-option input[type="checkbox"]:checked + .cb-box { background: #f96c9f; border-color: #f96c9f; }
.checkbox-option .cb-box::after,
.cb-option .cb-box::after { content: ''; width: 5px; height: 9px; border: 2px solid #fff; border-top: none; border-left: none; transform: rotate(45deg) translateY(-1px); display: none; }
.checkbox-option input[type="checkbox"]:checked + .cb-box::after,
.cb-option input[type="checkbox"]:checked + .cb-box::after { display: block; }

/* Toast（两页通用，booking 用 .wap-toast，quick 用 .qb-toast）*/
.wap-toast,
.qb-toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.9); background: rgba(0,0,0,.72); color: #fff; padding: 13px 26px; border-radius: 10px; font-size: 14px; z-index: 99999; opacity: 0; transition: opacity .25s,transform .25s; pointer-events: none; white-space: nowrap; max-width: 80vw; text-align: center; }
.wap-toast.show,
.qb-toast.show { opacity: 1; transform: translate(-50%,-50%) scale(1); }


/* ==================== booking.html 独有 ==================== */

.wap-booking { background: #f5f6fa; min-height: 100vh; padding-bottom: 80px; }

/* 步骤指示器 */
.step-indicator { display: flex; align-items: flex-start; justify-content: center; padding: 20px 20px 8px; gap: 0; }
.step-indicator .step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }

/* 圆形图标容器 */
.step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f0e8ee;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all .35s ease;
    border: 3px solid #f5f0f3;
}
.step-icon {
    font-size: 15px;
    color: #bbb;
    transition: all .35s ease;
}
.step-check {
    position: absolute;
    font-size: 13px;
    color: #fff;
    opacity: 0;
    transform: scale(.5);
    transition: all .3s ease;
}

/* 激活态 */
.step.active .step-circle {
    background: linear-gradient(135deg, #f96c9f, #f48fb1);
    border-color: #f96c9f;
    box-shadow: 0 4px 14px rgba(249,108,159,.4);
    transform: scale(1.08);
}
.step.active .step-icon {
    color: #fff;
}

/* 完成态 */
.step.completed .step-circle {
    background: linear-gradient(135deg, #f96c9f, #f48fb1);
    border-color: #f96c9f;
}
.step.completed .step-icon { opacity: 0; }
.step.completed .step-check {
    opacity: 1;
    transform: scale(1);
}

/* 连接线 */
.step-line {
    flex: 1;
    height: 3px;
    background: #eee;
    margin-top: 19px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transition: background .4s ease;
}
.step-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #f96c9f, #f48fb1);
    border-radius: 2px;
    transition: width .5s ease;
}
.step-indicator .step.completed + .step-line::after,
.step-indicator .step.active + .step-line::after {
    width: 100%;
}

/* 标签文字 */
.step-label {
    font-size: 11.5px;
    color: #bbb;
    margin-top: 7px;
    font-weight: 500;
    white-space: nowrap;
    transition: all .3s ease;
}
.step.active .step-label {
    color: #f96c9f;
    font-weight: 700;
}
.step.completed .step-label {
    color: #999;
}

/* 表单步骤 */
.form-step { display: none; padding: 16px; }
.form-step.active { display: block; }

/* 咨询师选择 */
.counselor-select-list { display: flex; flex-direction: column; gap: 8px; max-height: 55vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.counselor-option { position: relative; }
.counselor-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.counselor-card { display: flex; align-items: center; padding: 12px; background: #fff; border-radius: 12px; border: 2px solid transparent; transition: all 0.3s; cursor: pointer; gap: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.counselor-option input:checked + .counselor-card { border-color: #f96c9f; background: linear-gradient(135deg, rgba(249,108,159,0.06), rgba(162,155,254,0.06)); }
.counselor-card .c-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #f0f0f0; }
.counselor-card .c-info { flex: 1; min-width: 0; }
.counselor-card .c-info h4 { margin: 0; font-size: 14px; color: #333; font-weight: 600; }
.counselor-card .c-info p { margin: 3px 0 0; font-size: 12px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.counselor-card .c-check { font-size: 20px; color: #ddd; flex-shrink: 0; transition: color 0.3s; }
.counselor-option input:checked + .counselor-card .c-check { color: #f96c9f; }

/* 通用表单组 */
.wap-form-group { margin-bottom: 14px; }
.wap-form-group label {font-size: 13px; color: #555; font-weight: 600; margin-bottom: 6px; }
.wap-form-group .required { color: #e74c3c; }
.wap-form-group input[type="text"],
.wap-form-group input[type="tel"],
.wap-form-group input[type="number"],
.wap-form-group select,
.wap-form-group textarea { width: 100%; padding: 11px 14px; border: 1.5px solid #e8e8e8; border-radius: 10px; font-size: 14px; color: #333; background: #fff; box-sizing: border-box; transition: border-color 0.3s; -webkit-appearance: none; appearance: none; }
.wap-form-group input:focus, .wap-form-group select:focus, .wap-form-group textarea:focus { outline: none; border-color: #f96c9f; }
.wap-form-group textarea { resize: vertical; min-height: 88px; line-height: 1.5; }

/* 按钮 */
.form-actions { display: flex; gap: 12px; margin-top: 20px; }
.form-actions .btn { flex: 1; padding: 12px; border-radius: 25px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: all 0.3s; text-align: center; display: inline-block; }
.btn-primary { background: linear-gradient(135deg, #f96c9f, #ffa309); color: #fff; }
.btn-primary:active, .btn-primary:disabled { opacity: 0.7; }
.btn-outline { background: #fff; color: #f96c9f; border: 1.5px solid #f96c9f; }
.btn-outline:active { background: rgba(249,108,159,0.06); }
.btn-block { width: 100%; padding: 13px; border-radius: 25px; font-size: 15px; font-weight: 600; border: none; cursor: pointer; background: linear-gradient(135deg, #f96c9f, #ffa309); color: #fff; transition: all 0.3s; display: block; text-align: center; }
.btn-block:active { opacity: 0.85; }

/* 选中摘要 */
.booking-summary { background: linear-gradient(135deg, rgba(249,108,159,0.08), rgba(162,155,254,0.08)); border-radius: 12px; padding: 14px; margin-bottom: 16px; }
.booking-summary .summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 6px 0; }
.booking-summary .summary-row:not(:last-child) { border-bottom: 1px solid rgba(249,108,159,0.1); }
.booking-summary .summary-label { color: #888; }
.booking-summary .summary-value { color: #333; font-weight: 600; }

/* 预约须知 */
.wap-booking-tips { margin: 0 16px 16px; padding: 14px; background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.wap-booking-tips h3 { margin: 0 0 8px; font-size: 13px; color: #333; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.wap-booking-tips h3 i { color: #f96c9f; }
.wap-booking-tips ul { margin: 0; padding: 0 0 0 18px; }
.wap-booking-tips li { font-size: 12px; color: #888; line-height: 2; }

/* 成功提示 */
.booking-success { text-align: center; padding: 48px 20px; }
.booking-success .success-icon { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #f96c9f, #ffa309); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 4px 20px rgba(249,108,159,0.3); }
.booking-success .success-icon i { font-size: 32px; color: #fff; }
.booking-success h3 { font-size: 18px; color: #333; margin: 0 0 10px; }
.booking-success p { font-size: 13px; color: #888; margin: 0 0 24px; line-height: 1.7; }
.booking-success .btn-home { display: inline-block; padding: 12px 32px; background: linear-gradient(135deg, #f96c9f, #ffa309); color: #fff; border-radius: 25px; font-size: 14px; text-decoration: none; font-weight: 600; box-shadow: 0 4px 12px rgba(249,108,159,0.3); }


/* ==================== quick_booking.html 独有 ==================== */

.wap-quick-booking { background: #f5f6fa; min-height: 100vh; padding-bottom: 80px; }

/* 咨询师信息卡片 */
.counselor-info-card { margin: 14px; padding: 16px; background: #fff; border-radius: 14px; display: flex; align-items: center; gap: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.counselor-info-card .c-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #f0f0f0; }
.counselor-info-card .c-detail { flex: 1; min-width: 0; }
.counselor-info-card .c-detail h3 { margin: 0; font-size: 16px; color: #333; font-weight: 700; }
.counselor-info-card .c-detail p { margin: 4px 0 0; font-size: 12px; color: #888; }
.counselor-info-card .c-price { text-align: right; flex-shrink: 0; }
.counselor-info-card .c-price .price-val { font-size: 18px; color: #f96c9f; font-weight: 800; }
.counselor-info-card .c-price .price-unit { font-size: 11px; color: #aaa; }

/* 步骤指示器（两步） */
.qb-step-indicator { display: flex; align-items: flex-start; justify-content: center; padding: 22px 24px 10px; gap: 0; }
.qb-step { display: flex; flex-direction: column; align-items: center; position: relative; }

/* 圆形图标容器 */
.qb-step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0e8ee;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all .35s ease;
    border: 3px solid #f5f0f3;
}
.qb-step-icon {
    font-size: 15px;
    color: #bbb;
    transition: all .35s ease;
}
.qb-step-check {
    position: absolute;
    font-size: 13px;
    color: #fff;
    opacity: 0;
    transform: scale(.5);
    transition: all .3s ease;
}

/* 激活态 */
.qb-step.active .qb-step-circle {
    background: linear-gradient(135deg, #f96c9f, #f48fb1);
    border-color: #f96c9f;
    box-shadow: 0 4px 14px rgba(249,108,159,.4);
    transform: scale(1.1);
}
.qb-step.active .qb-step-icon { color: #fff; }

/* 完成态 */
.qb-step.done .qb-step-circle {
    background: linear-gradient(135deg, #f96c9f, #f48fb1);
    border-color: #f96c9f;
}
.qb-step.done .qb-step-icon { opacity: 0; }
.qb-step.done .qb-step-check {
    opacity: 1;
    transform: scale(1);
}

/* 连接线 */
.qb-step-line {
    flex: 1;
    height: 3px;
    background: #eee;
    margin-top: 20px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transition: background .4s ease;
}
.qb-step-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #f96c9f, #f48fb1);
    border-radius: 2px;
    transition: width .5s ease;
}
#stepIndicator.active-step-2 .qb-step-line::after { width: 100%; }

/* 标签文字 */
.qb-step-label {
    font-size: 12px;
    color: #bbb;
    margin-top: 8px;
    font-weight: 500;
    white-space: nowrap;
    transition: all .3s ease;
}
.qb-step.active .qb-step-label {
    color: #f96c9f;
    font-weight: 700;
}
.qb-step.done .qb-step-label { color: #999; }

/* 步骤内容 */
.qb-step-content { display: none; padding: 8px 14px; animation: qbFadeIn 0.3s ease; }
.qb-step-content.active { display: block; }
@keyframes qbFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* 表单组 */
.qb-form-group { margin-bottom: 15px; }
.qb-form-group label {font-size: 13px; color: #555; font-weight: 600; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qb-form-group .req { color: #e74c3c; }
.qb-form-group input[type="text"],
.qb-form-group input[type="tel"],
.qb-form-group input[type="number"],
.qb-form-group select,
.qb-form-group textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #e8e8e8; border-radius: 10px; font-size: 14px; color: #333; background: #fff; box-sizing: border-box; transition: border-color 0.25s; -webkit-appearance: none; appearance: none; }
.qb-form-group input:focus, .qb-form-group select:focus, .qb-form-group textarea:focus { outline: none; border-color: #f96c9f; box-shadow: 0 0 0 3px rgba(249,108,159,0.1); }
.qb-form-group textarea { resize: vertical; min-height: 88px; line-height: 1.5; }

/* 摘要卡片 */
.qb-summary { background: linear-gradient(135deg, rgba(249,108,159,0.08), rgba(255,163,9,0.08)); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.qb-summary .qs-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 7px 0; }
.qb-summary .qs-row:not(:last-child) { border-bottom: 1px solid rgba(249,108,159,0.1); }
.qb-summary .qs-label { color: #888; }
.qb-summary .qs-value { color: #333; font-weight: 600; }

/* 按钮 */
.qb-btn { width: 100%; padding: 13px; border-radius: 25px; font-size: 15px; font-weight: 700; border: none; cursor: pointer; transition: all 0.25s; display: block; text-align: center; }
.qb-btn-primary { background: linear-gradient(135deg, #f96c9f, #ffa309); color: #fff; box-shadow: 0 4px 14px rgba(249,108,159,0.3); }
.qb-btn-primary:active { opacity: 0.82; transform: scale(0.98); }
.qb-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.qb-btn-outline { background: #fff; color: #f96c9f; border: 1.5px solid #f96c9f; }
.qb-btn-outline:active { background: rgba(249,108,159,0.06); }
.qb-btn-row { display: flex; gap: 12px; margin-top: 20px; }
.qb-btn-row .qb-btn { flex: 1; }

/* cb-option 文字（quick 用）*/
.cb-option span { font-size: 12px; color: #888; line-height: 1.5; }

/* 成功页 */
.qb-success { text-align: center; padding: 48px 20px; }
.qb-success .ok-icon { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg,#f96c9f,#ffa309); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 4px 20px rgba(249,108,159,.3); }
.qb-success .ok-icon i { font-size: 32px; color: #fff; }
.qb-success h3 { font-size: 18px; color: #333; margin: 0 0 10px; }
.qb-success p { font-size: 13px; color: #888; margin: 0 0 24px; line-height: 1.7; }
.qb-success a.btn-home { display: inline-block; padding: 12px 32px; background: linear-gradient(135deg,#f96c9f,#ffa309); color: #fff; border-radius: 25px; font-size: 14px; text-decoration: none; font-weight: 600; box-shadow: 0 4px 12px rgba(249,108,159,.3); }
