/* RFQ 询价表单页样式 */

.ky-quote-page {
    min-height: calc(100vh - 200px);
    background: #f5f7fa;
    padding-bottom: 60px;
}

/* Hero */
.ky-quote-hero {
    background: linear-gradient(135deg, #1a3a5c 0%, #2d6aa0 100%);
    padding: 48px 0;
    text-align: center;
}

.ky-quote-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.ky-quote-title {
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px;
    font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.ky-quote-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

/* Form Wrapper */
.ky-quote-form-wrapper {
    max-width: 800px;
    margin: -24px auto 0;
    padding: 0 24px;
}

.ky-quote-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 40px;
    position: relative;
    z-index: 1;
}

/* Section */
.ky-quote-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eef1f5;
}

.ky-quote-section:last-of-type {
    border-bottom: none;
    margin-bottom: 24px;
    padding-bottom: 0;
}

.ky-quote-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a3a5c;
    margin: 0 0 20px;
    padding-left: 12px;
    border-left: 3px solid #2d6aa0;
}

/* Form Layout */
.ky-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.ky-form-row:last-child {
    margin-bottom: 0;
}

.ky-form-row--2col .ky-form-group {
    flex: 1;
    min-width: 0;
}

.ky-form-group {
    display: flex;
    flex-direction: column;
}

.ky-form-group--full {
    width: 100%;
}

/* Label */
.ky-form-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.ky-form-label--required::after {
    content: " *";
    color: #e64539;
}

/* Input / Textarea */
.ky-form-input,
.ky-form-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
    background: #f9fafc;
    border: 1px solid #d9dde3;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.ky-form-input:focus,
.ky-form-textarea:focus {
    outline: none;
    border-color: #2d6aa0;
    box-shadow: 0 0 0 3px rgba(45, 106, 160, 0.1);
    background: #fff;
}

.ky-form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Actions */
.ky-quote-actions {
    text-align: center;
    padding-top: 8px;
}

.ky-quote-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 48px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2d6aa0 0%, #1a3a5c 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    font-family: inherit;
}

.ky-quote-submit-btn:hover {
    opacity: 0.9;
}

.ky-quote-submit-btn:active {
    transform: scale(0.98);
}

.ky-quote-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 2026-09-09 M7：询价页"在线咨询 AI 客服"按钮（与提交按钮并列居中） */
.ky-quote-actions .ky-btn-ai-chat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    margin-left: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #0f9b8e;
    background: #e6f7f5;
    border: 1px solid #0f9b8e;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s ease, color .15s ease;
    vertical-align: middle;
}

.ky-quote-actions .ky-btn-ai-chat:hover {
    background: #0f9b8e;
    color: #fff;
}

/* SweetAlert Overrides */
.sweet-alert h2 {
    font-size: 20px;
    font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
    .ky-quote-hero {
        padding: 32px 0;
    }

    .ky-quote-title {
        font-size: 24px;
    }

    .ky-quote-form {
        padding: 24px 20px;
    }

    .ky-form-row--2col {
        flex-direction: column;
        gap: 12px;
    }

    .ky-quote-submit-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}
