/* ========== 多步骤报价向导样式 ========== */

/* 报价向导模态框 */
.quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quote-modal.show {
    display: flex;
    opacity: 1;
}

.quote-wizard {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.quote-modal.show .quote-wizard {
    transform: scale(1);
}

.wizard-header {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 25px;
    position: relative;
}

.wizard-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.wizard-close:hover {
    opacity: 1;
}

.wizard-title {
    font-size: 1.4em;
    margin-bottom: 8px;
}

.wizard-subtitle {
    opacity: 0.9;
    font-size: 0.95em;
}

/* 步骤指示器 */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.step {
    display: flex;
    align-items: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #ff6b35;
    color: white;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step-label {
    margin-left: 10px;
    font-weight: 500;
    color: #6c757d;
    transition: color 0.3s ease;
}

.step.active .step-label {
    color: #ff6b35;
}

.step.completed .step-label {
    color: #28a745;
}

.step-line {
    width: 60px;
    height: 2px;
    background: #dee2e6;
    margin: 0 15px;
    transition: background 0.3s ease;
}

.step.completed + .step .step-line {
    background: #28a745;
}

/* 步骤内容 */
.wizard-content {
    padding: 30px;
    min-height: 420px;
    overflow-y: auto;
}

.step-content {
    display: none;
}

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

/* 第一步：产品配置 */
.product-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid #ff6b35;
}

.product-summary h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
}

.quantity-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    border-color: #ff6b35;
    color: #ff6b35;
}

.quantity-value {
    min-width: 60px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
}

/* 第二步：客户信息 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.required {
    color: #ff6b35;
}

/* 第三步：成功页面 */
.success-content {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 4em;
    color: #28a745;
    margin-bottom: 20px;
}

.success-title {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 15px;
}

.success-message {
    color: #7f8c8d;
    margin-bottom: 25px;
    line-height: 1.6;
}

.quote-number {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.quote-number strong {
    color: #ff6b35;
    font-size: 1.2em;
}

/* 导航按钮 */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f7931e, #e67e22);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .quote-wizard {
        width: 95%;
        max-width: none;
        margin: 10px;
        max-height: 85vh;
        display: flex;
        flex-direction: column;
    }

    .wizard-header {
        padding: 1.25rem 1rem;
        flex-shrink: 0;
    }

    .wizard-title {
        font-size: 1.2rem;
    }

    .wizard-subtitle {
        font-size: 0.85rem;
    }

    .step-indicator {
        flex-direction: column;
        gap: 10px;
        padding: 1rem;
        flex-shrink: 0;
    }

    .step-line {
        display: none;
    }

    .wizard-content {
        padding: 1.25rem;
        overflow-y: auto;
        flex: 1;
        -webkit-overflow-scrolling: touch;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* 防止iOS自动缩放 */
    }

    .wizard-actions {
        padding: 1rem;
        background: white;
        border-top: 1px solid #e9ecef;
        flex-shrink: 0;
        position: sticky;
        bottom: 0;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Small Screen Mobile - Full Screen Optimization */
@media (max-width: 480px) {
    .quote-wizard {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .wizard-header {
        padding: 1rem;
        border-radius: 0;
    }

    .wizard-title {
        font-size: 1.1rem;
    }

    .wizard-body {
        padding: 1rem;
        flex: 1;
    }

    .wizard-footer {
        padding: 1rem;
        border-radius: 0;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-control {
        font-size: 16px !important; /* Prevent iOS zoom */
        padding: 0.75rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 44px; /* Touch target */
    }
}