/* ===== TumuTrip Common CSS Variables & Shared Components ===== */

:root {
    --primary-color: #6C5CE7;
    --primary-dark: #5A4BD1;
    --primary-light: #A29BFE;
    --secondary-color: #FFD93D;
    --accent-color: #00B894;
    --accent-dark: #00A381;
    --gradient-primary: linear-gradient(135deg, #6C5CE7, #0984E3);
    --gradient-accent: linear-gradient(135deg, #00B894, #00CEC9);
    --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --success-color: #00B894;
    --danger-color: #e74c3c;
    --error-color: #e74c3c;
    --warning-color: #fdcb6e;
    --info-color: #0984E3;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e2e8f0;
    --medium-gray: #6c757d;
    --dark-gray: #2d3436;
    --text-color: #2d3436;
    --text-light: #636e72;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Shared Section Headings ===== */
.section-heading {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    padding-bottom: 15px;
    border-bottom: 2px solid transparent;
    border-image: var(--gradient-primary);
    border-image-slice: 1;
}

/* ===== Progress Steps ===== */
.booking-progress {
    background-color: var(--white);
    padding: 24px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(108,92,231,0.06);
    border-bottom: 1px solid rgba(108,92,231,0.04);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 60%;
    width: 80%;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.step.active:not(:last-child)::after,
.step.completed:not(:last-child)::after {
    background: var(--gradient-primary);
}

.step-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--gradient-primary);
    box-shadow: 0 0 0 5px rgba(108, 92, 231, 0.15);
}

.step.completed .step-number {
    background: var(--gradient-accent);
    box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.15);
}

.step.completed .step-number::after {
    content: '\2713';
    font-size: 16px;
}

.step.completed .step-number {
    font-size: 0;
}

.step-title {
    font-size: 13px;
    color: var(--medium-gray);
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
}

.step.active .step-title {
    color: var(--primary-color);
    font-weight: 700;
}

.step.completed .step-title {
    color: var(--accent-color);
    font-weight: 600;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-block;
    padding: 11px 28px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-xl);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5A4BD1, #0873C7);
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.35);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-block;
    padding: 11px 28px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-xl);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.35);
    transform: translateY(-1px);
}

.btn-primary-link {
    display: inline-block;
    padding: 12px 32px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-xl);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary-link:hover {
    background: linear-gradient(135deg, #5A4BD1, #0873C7);
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.35);
    transform: translateY(-1px);
}

/* ===== Cards ===== */
.card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* ===== Form Elements ===== */
.form-section {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.form-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-light);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* 错误状态样式 */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--danger-color);
}

.form-group.error input:focus,
.form-group.error select:focus,
.form-group.error textarea:focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.field-validation-error {
    display: block;
    color: var(--danger-color);
    font-size: 12px;
    margin-top: 5px;
}

.text-danger {
    color: var(--danger-color);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-hint {
    font-size: 13px;
    color: var(--medium-gray);
    margin-top: 4px;
}

.required {
    color: var(--danger-color);
}

/* ===== Detail Items ===== */
.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--medium-gray);
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 12px;
}

.detail-value {
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

/* ===== No Data State ===== */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--medium-gray);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .progress-steps {
        max-width: 100%;
        padding: 0 15px;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .step-title {
        font-size: 11px;
    }

    .booking-progress {
        padding: 18px 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .step-title {
        font-size: 10px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin-bottom: 6px;
    }

    .form-section {
        padding: 20px 16px;
    }
}
