/* 表单基础样式 */
.freight-quote-form {
    --wd-gap-lg: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.wd-pf-input-wrap {
    position: relative;
}

.wd-pf-checkboxes {
    position: relative;
}

.wd-pf-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.wd-pf-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s;
}

.wd-pf-input:focus {
    border-color: #4CAF50;
    outline: none;
}

.wd-pf-results {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 按钮样式 */
.inquiry-btn {
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s;
    height: 100%;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inquiry-btn:hover {
    background: #45a049;
}

.inquiry-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 模态框样式 */
.freight-quote-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 25px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-body {
    max-height: calc(80vh - 60px);
    overflow-y: auto;
    padding-right: 10px;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

/* 报价结果样式 */
.quote-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quote-item {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    background-color: #f9f9f9;
    transition: transform 0.2s, box-shadow 0.2s;
}

.quote-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.quote-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.quote-price {
    font-size: 20px;
    font-weight: bold;
    color: #4CAF50;
}

.quote-details {
    color: #666;
}

.quote-details p {
    margin: 8px 0;
    line-height: 1.4;
}

.quote-error {
    color: #e74c3c;
    text-align: center;
    padding: 20px;
    font-size: 16px;
    background: #fdf0ed;
    border-radius: 4px;
}

/* 滚动条样式 */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .quote-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .inquiry-btn {
        margin-top: 15px;
    }
}