
/* 页面基础样式 */
body {
    background-color: #f5f5f5;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333;
    line-height: 1.5;
}

.required::after {
    content: "*";
    color: #e41749;
    margin-left: 4px;
}

.main-framework {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 1280px;
    margin: 0 auto;
    max-width: 100%;
    padding: 30px 0;
}

/* 左侧表单区域 */
.booking-form-container {
    width: 864px;
    max-width: 100%;
}

/* 右侧订单摘要 */
.floating-booking-container {
    position: sticky;
    top: 70px;
    align-self: flex-start;
    width: 380px;
    z-index: 1000;
    margin-left: 16px;
    margin-bottom: 50px;
}

/* 卡片通用样式 */
.contact-details-card,
.activity-details-card,
.payment-details-card,
.booking-summary-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

/* 卡片头部 */
.card-header {
    padding: 22px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    background-color: #fff;
    transition: background-color 0.2s ease;
}

.card-header:hover {
    background-color: #f9f9f9;
}

.card-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

.step-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #00a698;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 166, 152, 0.3);
}

.card-header i {
    margin-left: auto;
    font-size: 16px;
    color: #666;
    margin-right: 70px; /* 添加右边距，避免与edit按钮重叠 */
}

.card-header .edit-btn {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #00a698;
    cursor: pointer;
    display: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.card-header .edit-btn:hover {
    background-color: rgba(0, 166, 152, 0.1);
    color: #008577;
}

/* 活动详情样式 */
.activity-info-section {
    margin-bottom: 32px;
}

.activity-info-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    align-items: center;
}

.activity-main-image {
    flex: 0 0 220px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.activity-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-main-image:hover img {
    transform: scale(1.05);
}

.activity-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.activity-title h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #222;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .activity-info-wrapper {
        flex-direction: column;
        gap: 16px;
    }

    .activity-main-image {
        flex: 0 0 auto;
        height: 180px;
        width: 100%;
    }
}

.activity-meta {
    margin-bottom: 16px;
    background-color: #f8f9fa;
    padding: 16px;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.meta-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-item i {
    flex: 0 0 16px;
    color: #00a698;
    margin-right: 10px;
    margin-top: 3px;
    font-size: 15px;
}

.meta-item span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.meta-item .meta-content {
    flex: 1;
}

.meta-detail {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #666;
}

.activity-operator {
    font-size: 15px;
    color: #333;
    margin-top: 15px;
}

.activity-operator a {
    color: #00a698;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.activity-operator a:hover {
    color: #008577;
    text-decoration: underline;
}

.traveler-section,
.pickup-section,
.additional-info-section {
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.traveler-section h3,
.pickup-section h3,
.additional-info-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

.pickup-options {
    margin-top: 15px;
}

.pickup-option {
    margin-bottom: 15px;
}

.radio-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.radio-container input {
    margin-right: 10px;
    accent-color: #00a698;
    width: 18px;
    height: 18px;
}

.pickup-search {
    display: flex;
    margin-top: 12px;
    margin-left: 28px;
}

.pickup-search .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.search-btn {
    background-color: #00a698;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 0 18px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background-color: #008577;
}

/* 卡片内容 */
.card-body {
    padding: 24px;
}

/* 信息文本 */
.info-text {
    margin-bottom: 24px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

/* 登录提示 */
.login-prompt {
    background-color: #f5f5f5;
    padding: 16px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    border-left: 4px solid #00a698;
}

.login-prompt i {
    margin-right: 12px;
    color: #00a698;
    font-size: 16px;
}

.login-prompt span {
    font-size: 15px;
    color: #444;
}

/* 表单行 */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.form-group {
    margin-bottom: 24px;
    width: 100%;
}

.form-group.half {
    width: 50%;
    padding: 0 12px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    padding-left: 0;
}

.form-group label i {
    color: #777;
    margin-left: 5px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    padding: 0 12px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #00a698;
    box-shadow: 0 0 0 3px rgba(0, 166, 152, 0.15);
    outline: none;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    height: 44px !important;
    border-radius: 8px !important;
}

/* 电话输入组 */
.phone-input-group {
    display: flex;
    padding-left: 0;
    position: relative;
}

.country-code-selector {
    width: 240px;
    margin-right: 12px;
}

/* 复选框 */
.checkbox-group {
    margin-top: 12px;
    padding-left: 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding-left: 0;
}

.checkbox-container input {
    margin-right: 10px;
    margin-top: 3px;
    margin-left: 0;
    accent-color: #00a698;
    width: 18px;
    height: 18px;
}

.checkbox-text {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

/* 下一步按钮 */
.btn-next {
    background-color: #00a698;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 166, 152, 0.3);
}

.btn-next:hover {
    background-color: #008577;
    box-shadow: 0 4px 8px rgba(0, 166, 152, 0.4);
    transform: translateY(-1px);
}

.btn-next:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 166, 152, 0.3);
}

/* 折叠面板 */
.collapsed .fa-chevron-down {
    transform: rotate(-90deg);
}

.fa-chevron-down {
    transition: transform 0.3s;
}

/* 右侧订单摘要卡片 */
.booking-summary-card {
    padding: 0;
}

/* 保留倒计时 */
.holding-timer {
    background-color: #fff5f5;
    color: #d32f2f;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #fde0e0;
}

.holding-timer i {
    margin-right: 10px;
}

/* 活动摘要 */
.activity-summary {
    padding: 16px;
    display: flex;
    border-bottom: 1px solid #eee;
}

.activity-image {
    width: 90px;
    height: 90px;
    margin-right: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-image:hover img {
    transform: scale(1.05);
}

.activity-info h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    color: #222;
}

/* 预订详情 */
.booking-details {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.detail-item i {
    width: 20px;
    margin-right: 10px;
    color: #666;
}

.cancellation-policy {
    display: flex;
    flex-direction: column;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px dashed #eee;
}

.cancellation-policy i {
    color: #4CAF50;
    margin-right: 10px;
}

.cancellation-policy span {
    color: #4CAF50;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.cancellation-policy p {
    margin: 5px 0 0 30px;
    font-size: 13px;
    color: #666;
}

/* 优惠码 */
.promo-code {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.promo-input {
    position: relative;
}

.promo-input i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.promo-input input {
    width: 100%;
    padding: 12px 12px 12px 36px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.promo-input input:focus {
    border-color: #00a698;
    box-shadow: 0 0 0 3px rgba(0, 166, 152, 0.15);
    outline: none;
}

/* 价格明细 */
.price-summary {
    padding: 16px;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    margin-bottom: 8px;
}

.charge-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.now-pay {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
}

.price {
    font-weight: bold;
    font-size: 20px;
}

.green {
    color: #4CAF50;
}

/* 评分与信任标签 */
.trust-rating {
    padding: 16px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.trustpilot {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stars {
    color: #00b67a;
    margin: 6px 0;
    font-size: 16px;
}

.trustpilot span:last-child {
    font-size: 13px;
    color: #666;
}

/* 服务亮点 */
.service-highlights {
    padding: 16px;
    border-bottom: 1px solid #eee;
    background-color: #f9feff;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.highlight-item:last-child {
    margin-bottom: 0;
}

.highlight-item i {
    color: #4CAF50;
    margin-right: 10px;
    margin-top: 3px;
}

/* 客服联系方式 */
.customer-support {
    padding: 16px;
}

.support-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-weight: 500;
}

.support-phone i {
    margin-right: 10px;
    color: #00a698;
}

.chat-button {
    width: 100%;
    padding: 12px;
    background-color: #00a698;
    color: white;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 166, 152, 0.3);
}

.chat-button:hover {
    background-color: #008577;
    box-shadow: 0 4px 8px rgba(0, 166, 152, 0.4);
}

.chat-button i {
    margin-right: 8px;
}

/* 支付方式样式 */
.payment-methods {
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    overflow: hidden;
}

.payment-method {
    padding: 18px !important;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.payment-method:hover {
    background-color: #f9f9f9;
}

.payment-method.active {
    border: 2px solid #00a698 !important;
}

.payment-label {
    font-weight: 500 !important;
    font-size: 15px;
}

.book-now-btn {
    background-color: #00a698 !important;
    width: 100%;
    margin-top: 20px;
    color: white;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 166, 152, 0.3);
}

.book-now-btn:hover {
    background-color: #008577 !important;
    box-shadow: 0 4px 8px rgba(0, 166, 152, 0.4);
}

/* 响应式样式 */
@media (max-width: 1280px) and (min-width: 1025px) {
    .main-framework {
        width: 100%;
        margin: 0 auto;
        padding: 20px 24px;
    }

    .booking-form-container {
        width: 65%;
        max-width: 864px;
    }

    .floating-booking-container {
        position: sticky;
        top: 70px;
        width: 30%;
        min-width: 300px;
        margin-left: 24px;
    }
}

@media (max-width: 1024px) {
    .main-framework {
        width: 100%;
        padding: 20px;
        flex-direction: column;
    }

    .booking-form-container {
        width: 100%;
        margin: 0 auto;
    }

    .floating-booking-container {
        position: static;
        width: 100%;
        margin: 10px auto;
    }

    .form-group.half {
        width: 100%;
        padding: 0 8px;
    }
    
    .form-row {
        margin: 0 -8px;
    }
}

@media (max-width: 768px) {
    .main-framework {
        padding: 15px;
    }

    .card-header {
        padding: 18px;
    }
    
    .card-body {
        padding: 18px;
    }

    .phone-input-group {
        flex-direction: column;
    }

    .country-code-selector {
        width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .btn-next {
        width: 100%;
    }
}

/* 添加tooltip相关样式 */
.tooltip-icon {
    position: relative;
    color: #777;
    cursor: help;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: #fff;
    color: #333;
    text-align: left;
    border-radius: 8px;
    padding: 12px 16px;
    position: absolute;
    z-index: 9999;
    bottom: 150%;
    left: -18px;
    transform: translateY(-10px);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 13px;
    line-height: 1.5;
    font-weight: normal;
    font-family: Arial, sans-serif;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    border: 1px solid #e0e0e0;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 16px;
    border-width: 6px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
    filter: drop-shadow(0 2px 1px rgba(0,0,0,0.1));
}

.tooltip-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .tooltip-text {
        width: 250px;
    }
}

.form-control.error {
    border-color: #e41749 !important;
    background-color: #fff1f1 !important;
}

.error-message {
    color: #e41749;
    font-size: 12px;
    margin-top: 6px;
    display: none;
    font-weight: 500;
}

.form-group.number .error-message {
    margin-top: 0;
    margin-left: 0;
    clear: both;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.show {
    animation: fadeIn 0.3s ease forwards;
}

/* 活动预览 - 在折叠状态下显示 */
.activity-preview {
    display: flex;
    align-items: center;
    margin-left: auto;
    max-width: 60%;
    padding-right: 50px; /* 为Edit按钮留出空间 */
}

.activity-preview-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.activity-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-preview-info {
    flex: 1;
    min-width: 0; /* 防止文本溢出 */
}

.activity-preview-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.activity-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.activity-preview-meta span {
    display: flex;
    align-items: center;
}

.activity-preview-meta i {
    margin-right: 4px;
    font-size: 12px;
    color: #00a698;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .activity-preview {
        max-width: 100%;
        margin-top: 10px;
        margin-left: 0;
        padding-right: 0;
    }
    
    .card-header {
        flex-wrap: wrap;
    }
}

/* 当活动详情展开时，隐藏预览 */
.card-header:not(.collapsed) .activity-preview {
    display: none;
}

/* 活动预览区域 - 在标题下方显示 */
.activity-preview-section {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #fff;
    display: none; /* 默认隐藏，通过JS控制显示 */
}

/* 当活动详情折叠时显示预览 */
.activity-details-card .card-header.collapsed + .activity-preview-section {
    display: block;
}

/* 当活动详情展开时隐藏预览 */
.activity-details-card .card-header:not(.collapsed) + .activity-preview-section {
    display: none;
}

/* 右侧订单摘要卡片样式 */
.booking-summary-section {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #fff;
}

/* 确保右侧订单摘要卡片中的样式与活动详情一致 */
.booking-summary-card .activity-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking-summary-card .activity-main-image {
    flex: 0 0 auto;
    height: 180px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.booking-summary-card .activity-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.booking-summary-card .activity-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.booking-summary-card .activity-title h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #222;
}

.booking-summary-card .activity-meta {
    margin-top: 12px;
    background-color: #f8f9fa;
    padding: 16px;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* 移除旧的活动摘要样式 */
.activity-summary {
    display: none;
}

.booking-details {
    display: none;
}

/* 调整其他订单摘要卡片样式 */
.price-summary {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.trust-rating {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.service-highlights {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #f9feff;
}

.customer-support {
    padding: 20px;
    border-top: 1px solid #eee;
}