/* ================================================
   预约页面样式 - booking.css
   主色: #f96c9f
   ================================================ */

/* ================================================
   预约流程
   ================================================ */
.booking-process {
    padding: 32px 0;
    background: #fff;
    border-bottom: 1px solid #f5e8ee;
}

.booking-process .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0e8ee;
    color: #999;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.process-step.active .step-number,
.process-step.done .step-number {
    background: linear-gradient(135deg, #f96c9f, #d9658d);
    color: #fff;
}

.step-title {
    font-size: 14px;
    font-weight: 500;
    color: #999;
}

.process-step.active .step-title {
    color: #f96c9f;
}

.step-desc {
    font-size: 12px;
    color: #bbb;
    text-align: center;
}

.process-line {
    flex: 1;
    height: 2px;
    background: #f0e8ee;
    margin: 0 12px;
    margin-bottom: 24px;
    max-width: 80px;
}

/* ================================================
   预约主体
   ================================================ */
.booking-section {
    padding: 40px 0 80px;
    background: #fafafa;
}

.booking-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.booking-wrapper {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

/* ================================================
   左侧表单
   ================================================ */
.booking-form-container {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    padding: 32px 36px;
    box-shadow: 0 4px 20px rgba(249, 108, 159, 0.07);
}

.form-step {
    display: none;
}

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

.form-step-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0e8ee;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.form-group .required {
    color: #f96c9f;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    border: 1.5px solid #f0e8ee;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #f96c9f;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(249, 108, 159, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ================================================
   服务类型选择
   ================================================ */
.service-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.service-type-option input {
    display: none;
}

.service-type-option .option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    background: #fafafa;
    border: 1.5px solid #f0e8ee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
    font-size: 13px;
}

.service-type-option .option-content i {
    font-size: 22px;
    color: #ccc;
}

.service-type-option input:checked + .option-content {
    background: #fff0f5;
    border-color: #f96c9f;
    color: #f96c9f;
}

.service-type-option input:checked + .option-content i {
    color: #f96c9f;
}

.service-type-option .option-content:hover {
    border-color: #f48fb1;
    background: #fff8fa;
}

/* ================================================
   咨询方式选择
   ================================================ */
.consult-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.consult-mode-option input {
    display: none;
}

.consult-mode-option .option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 16px 8px;
    background: #fafafa;
    border: 1.5px solid #f0e8ee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.consult-mode-option .option-content i {
    font-size: 22px;
    color: #ccc;
    margin-bottom: 2px;
}

.consult-mode-option .option-content span {
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.consult-mode-option .option-content small {
    font-size: 11px;
    color: #aaa;
}

.consult-mode-option input:checked + .option-content {
    background: #fff0f5;
    border-color: #f96c9f;
}

.consult-mode-option input:checked + .option-content i {
    color: #f96c9f;
}

.consult-mode-option input:checked + .option-content span {
    color: #f96c9f;
}

/* ================================================
   咨询师选择
   ================================================ */
.counselor-preference {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

/* 偏好切换 - 新UI */
.pref-toggle {
    display: inline-flex;
    background: #f5f0f3;
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}

.pref-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #777;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .25s ease;
}

.pref-btn:hover {
    color: #333;
}

.pref-btn.active {
    background: #fff;
    color: #f96c9f;
    box-shadow: 0 2px 8px rgba(249,108,159,.15);
}

.pref-btn i {
    font-size: 14px;
}

.counselor-preference .radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.counselor-preference input[type="radio"] {
    accent-color: #f96c9f;
}

.counselor-select {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
    padding: 4px;
}

.counselor-mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fafafa;
    border: 1.5px solid #f0e8ee;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.counselor-mini-card:hover {
    border-color: #f48fb1;
    background: #fff8fa;
}

.counselor-mini-card.active {
    border-color: #f96c9f;
    background: #fff0f5;
    box-shadow: 0 0 0 3px rgba(249, 108, 159, 0.1);
}

.counselor-mini-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.counselor-mini-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f5e8ee;
    flex-shrink: 0;
}

.counselor-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.counselor-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.counselor-level {
    font-size: 12px;
    color: #f96c9f;
}

.counselor-tags {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* ================================================
   日历选择
   ================================================ */
.calendar-wrap {
    background: #fafafa;
    border: 1.5px solid #f0e8ee;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.calendar-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.calendar-nav {
    display: flex;
    gap: 8px;
}

.calendar-nav button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #f0e8ee;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.2s;
}

.calendar-nav button:hover {
    border-color: #f96c9f;
    color: #f96c9f;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 4px;
}

.calendar-week span {
    font-size: 12px;
    font-weight: 500;
    color: #bbb;
    padding: 4px 0;
}

.date-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.date-item {
    text-align: center;
    padding: 7px 0;
    font-size: 13px;
    color: #555;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.date-item:not(.disabled):hover {
    background: #fff0f5;
    color: #f96c9f;
}

.date-item.active {
    background: linear-gradient(135deg, #f96c9f, #d9658d);
    color: #fff;
    font-weight: 600;
}

.date-item.disabled {
    color: #d5d5d5;
    cursor: not-allowed;
}

/* ================================================
   时间段选择
   ================================================ */
.time-slots {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.time-period h4 {
    font-size: 12px;
    font-weight: 500;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.time-slot input {
    display: none;
}

.time-slot span {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    color: #555;
    background: #fafafa;
    border: 1.5px solid #f0e8ee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot input:checked + span {
    background: linear-gradient(135deg, #f96c9f, #d9658d);
    border-color: #f96c9f;
    color: #fff;
    font-weight: 500;
}

.time-slot span:hover {
    border-color: #f48fb1;
    color: #f96c9f;
}

/* ================================================
   单选/复选框选项
   ================================================ */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.radio-option input[type="radio"] {
    accent-color: #f96c9f;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
    accent-color: #f96c9f;
    width: 16px;
    height: 16px;
}

.checkbox-option span {
    font-size: 13px;
    color: #888;
}

.checkbox-option a {
    color: #f96c9f;
}

.form-row {
    display: flex;
    gap: 14px;
}

.form-row .form-group {
    flex: 1;
}

/* ================================================
   表单操作按钮
   ================================================ */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f5e8ee;
}

.btn-prev {
    padding: 11px 24px;
    font-size: 14px;
    border-radius: 8px;
    border: 1.5px solid #f0e8ee;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-prev:hover {
    border-color: #f96c9f;
    color: #f96c9f;
}

/* ================================================
   右侧信息栏
   ================================================ */
.booking-sidebar {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 4px 16px rgba(249, 108, 159, 0.06);
    border: 1px solid #f5e8ee;
}

.sidebar-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0e8ee;
}

.sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.sidebar-card ul li i {
    color: #f96c9f;
    font-size: 13px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* 预约摘要 */
.booking-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.summary-item label {
    color: #999;
}

.summary-item span {
    color: #333;
    font-weight: 500;
}

/* 联系卡片 */
.contact-card p {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fafafa;
    border-radius: 8px;
    font-size: 13px;
    color: #f96c9f;
    transition: background 0.2s;
}

.contact-item:hover {
    background: #fff0f5;
}

.contact-item i {
    font-size: 14px;
}

/* ================================================
   响应式
   ================================================ */
@media (max-width: 900px) {
    .booking-wrapper {
        flex-direction: column;
    }
    
    .booking-sidebar {
        flex: none;
        width: 100%;
    }
    
    .service-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .consult-mode-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .booking-process {
        padding: 20px 0;
    }
    
    .process-steps {
        gap: 0;
    }
    
    .step-desc {
        display: none;
    }
    
    .process-line {
        margin-bottom: 0;
    }
    
    .booking-form-container {
        padding: 20px 16px;
    }
    
    .service-type-grid,
    .consult-mode-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .btn-prev,
    .btn-next,
    .btn-primary {
        width: 100%;
    }
}

/* ================================================
   预约摘要卡（步骤3显示）
   ================================================ */
.booking-summary-card {
    background: linear-gradient(135deg, #fff5f8 0%, #fff0f5 100%);
    border: 1.5px solid #fce4ec;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.booking-summary-card .summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #fce4ec;
}

.booking-summary-card .summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 13px;
    color: #999;
}

.summary-value {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

/* ================================================
   成功页
   ================================================ */
.booking-success {
    text-align: center;
    padding: 48px 20px;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #f96c9f, #d9658d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon i {
    font-size: 32px;
    color: #fff;
}

.booking-success h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.booking-success p {
    font-size: 14px;
    color: #888;
    line-height: 1.8;
    margin-bottom: 32px;
}

.btn-home {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #f96c9f, #d9658d);
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.btn-home:hover {
    opacity: 0.9;
}

/* ================================================
   Toast 提示
   ================================================ */
.pc-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(51, 51, 51, 0.92);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.pc-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ================================================
   咨询师分页
   ================================================ */
.counselor-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px;
}

.counselor-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0e8ee;
}

.page-btn,
.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border: 1.5px solid #eee;
    border-radius: 8px;
    background: #fff;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
    padding: 0 8px;
}

.page-btn:hover,
.page-num:hover {
    border-color: #f96c9f;
    color: #f96c9f;
}

.page-num.active {
    background: #f96c9f;
    border-color: #f96c9f;
    color: #fff;
}

.page-btn.disabled {
    opacity: .4;
    cursor: not-allowed;
}

.page-info {
    margin-left: 10px;
    font-size: 12px;
    color: #aaa;
}

/* ================================================
   顾问推荐提示（优化版）
   ================================================ */
.recommend-tip {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #fff5f8 0%, #fdf2f7 100%);
    border: 1.5px solid #fce4ec;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 20px;
    transition: all .35s ease;
    opacity: 0;
    transform: translateY(8px);
}

.recommend-tip.show {
    opacity: 1;
    transform: translateY(0);
}

.recommend-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f96c9f, #f48fb1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.recommend-icon i {
    font-size: 18px;
    color: #fff;
}

.recommend-content strong {
    display: block;
    font-size: 15px;
    color: #d9658d;
    margin-bottom: 4px;
}

.recommend-content p {
    font-size: 13px;
    color: #999;
    margin: 0;
}
