/* 全域樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* 頭部區域 */
.header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.logo {
    font-size: 60px;
    margin-bottom: 15px;
}

h1 {
    font-size: 28px;
    color: #667eea;
    margin-bottom: 10px;
}

.subtitle {
    color: #888;
    font-size: 14px;
}

.back-btn {
    position: absolute;
    left: 0;
    top: 0;
    color: #667eea;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
}

/* 介紹區塊 */
.intro-section {
    margin-bottom: 30px;
}

.intro-section h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.intro-section p {
    color: #666;
    line-height: 1.6;
}

/* 資訊卡片 */
.info-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item .icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
}

.info-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 3px;
}

.info-value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* 按鈕 */
.btn-primary {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin-bottom: 25px;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 12px 24px;
    background: #f0f0f0;
    color: #333;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* 服務項目 */
.services-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.service-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.service-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-duration {
    font-size: 13px;
    opacity: 0.9;
}

/* 步驟指示器 */
.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: -1;
}

.step:first-child::before {
    display: none;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 600;
    font-size: 14px;
}

.step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.step-label {
    font-size: 12px;
    color: #999;
}

.step.active .step-label {
    color: #667eea;
    font-weight: 600;
}

/* 步驟內容 */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.step-content h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

.selected-info {
    background: #f0f7ff;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #667eea;
    font-weight: 500;
}

/* 日曆 */
.calendar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.date-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.date-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.date-card.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.date-day {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.date-month {
    font-size: 12px;
    opacity: 0.8;
}

.date-weekday {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 5px;
}

/* 時段選擇 */
.time-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.time-slot {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.time-slot .time {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.time-slot .available {
    font-size: 12px;
    color: #28a745;
}

.no-slots {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* 表單 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.form-actions button,
.form-actions a {
    flex: 1;
}

/* 完成頁面 */
.success-animation {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.booking-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .label {
    color: #888;
    font-size: 14px;
}

.summary-item .value {
    color: #333;
    font-weight: 600;
    font-size: 15px;
}

/* 載入動畫 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 響應式設計 */
@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
}