/* 咨询页面样式 */

/* 咨询标题 */
.consultation-header {
    background-color: #2070c4;
    color: white;
    padding: 50px 0;
    text-align: center;
}

.consultation-header h1 {
    margin: 0;
    font-size: 42px;
    font-weight: bold;
}

/* 咨询部分 */
.consultation-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.consultation-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* 预约卡片 */
.booking-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.booking-header {
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.booking-info h2 {
    color: #333;
    font-size: 24px;
    margin: 0 0 5px;
}

.booking-info h3 {
    color: #2070c4;
    font-size: 28px;
    margin: 0 0 15px;
}

.booking-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.booking-detail {
    display: flex;
    margin-bottom: 15px;
}

.booking-detail-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
    color: #555;
}

.booking-detail-item .icon {
    color: #2070c4;
    margin-right: 8px;
    display: flex;
}

.booking-note {
    color: #666;
    font-style: italic;
    margin: 10px 0 0;
}

/* Calendly容器 */
.calendly-container {
    padding: 0;
    border-bottom: 1px solid #eee;
}

/* 预约页脚 */
.booking-footer {
    padding: 20px 30px;
    text-align: center;
    color: #666;
}

.booking-footer a {
    color: #2070c4;
    text-decoration: none;
}

.booking-footer a:hover {
    text-decoration: underline;
}

/* 日期选择 */
.date-selection {
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.date-selection h4 {
    color: #333;
    font-size: 18px;
    margin: 0 0 20px;
}

.calendar-container {
    margin-bottom: 30px;
}

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

.calendar-nav {
    background: none;
    border: none;
    color: #2070c4;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.calendar-weekdays div {
    padding: 10px;
    color: #555;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    padding: 10px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background-color: #e6f2ff;
}

.calendar-day.active {
    background-color: #2070c4;
    color: white;
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* 时间选择 */
.time-slots h4 {
    color: #333;
    font-size: 18px;
    margin: 0 0 15px;
}

.time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.time-slot {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot:hover {
    border-color: #2070c4;
    background-color: #e6f2ff;
}

.time-slot.active {
    background-color: #2070c4;
    color: white;
    border-color: #2070c4;
}

.time-slot.disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

/* 表单部分 */
.booking-form {
    padding: 30px;
}

.booking-form h4 {
    color: #333;
    font-size: 18px;
    margin: 0 0 20px;
}

/* 预约确认 */
.booking-confirmation {
    padding: 40px 30px;
    text-align: center;
}

.confirmation-icon {
    width: 70px;
    height: 70px;
    background-color: #31da4b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.confirmation-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.booking-confirmation h3 {
    color: #333;
    font-size: 24px;
    margin: 0 0 15px;
}

.booking-confirmation p {
    color: #666;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.booking-summary {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: left;
}

.summary-item {
    margin-bottom: 10px;
}

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

/* 按钮样式 */
.btn-primary {
    background-color: #2070c4;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #1a5ea0;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.btn-secondary:hover {
    background-color: #e5e5e5;
}

.form-actions {
    margin-top: 30px;
    display: flex;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .time-slots-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .booking-detail {
        flex-direction: column;
    }
    
    .booking-detail-item {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .time-slots-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calendar-days {
        gap: 2px;
    }
    
    .calendar-day {
        padding: 8px 5px;
    }
}
