/* seemb6 询价页，参考 mb6 /rfq 页面 */

.rfq-page .content-box {
    background: #f6f8fb;
}

.uaf-rfq {
    min-height: calc(100vh - 260px);
    padding: 22px 0 42px;
    background: #f6f8fb;
}

.uaf-rfq-inner {
    width: var(--jq_w1200);
    max-width: calc(100% - 24px);
    margin: 0 auto;
}

.uaf-rfq-breadcrumb {
    width: 100%;
    line-height: 1.5;
    padding: 8px 18px;
    margin-bottom: 14px;
    background: #ffffff;
    border: 1px solid #edf0f4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(16, 40, 80, 0.03);
    color: var(--jq_color10);
}

.uaf-rfq-breadcrumb a {
    font-size: var(--jq_fs2);
    color: var(--jq_color10);
    padding: 4px 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.uaf-rfq-breadcrumb a:hover {
    color: var(--jq_color14);
}

.uaf-rfq-breadcrumb [aria-current="page"] {
    color: var(--jq_color1);
    font-weight: 500;
}

.uaf-rfq-panel {
    margin-bottom: 16px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 40, 80, 0.03);
}

.uaf-rfq-title {
    margin: 0 0 16px;
    color: var(--jq_color1);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.uaf-rfq-contact .uaf-rfq-title {
    font-size: 20px;
}

.uaf-rfq-bom-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 0 0 16px;
}

.uaf-rfq-file-label {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.uaf-rfq-file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.uaf-rfq-template-link {
    color: #1d62ad;
    font-size: var(--jq_fs2);
    text-decoration: none;
}

.uaf-rfq-template-link:hover {
    text-decoration: underline;
}

.uaf-rfq-file-name {
    color: #666;
    font-size: var(--jq_fs1);
}

.uaf-rfq-tips {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 18px;
    color: #666;
    font-size: var(--jq_fs2);
    line-height: 1.5;
}

.uaf-rfq-tips strong {
    color: #d07100;
}

.uaf-rfq-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5eaf2;
}

.uaf-rfq-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: var(--jq_fs2);
}

.uaf-rfq-table th,
.uaf-rfq-table td {
    padding: 10px 9px;
    border-bottom: 1px solid #edf0f5;
    text-align: left;
    vertical-align: middle;
}

.uaf-rfq-table th {
    background: #f5f7fb;
    color: #555;
    font-weight: 700;
    white-space: nowrap;
}

.uaf-rfq-table tr:last-child td {
    border-bottom: none;
}

.uaf-rfq-table input {
    width: 100%;
    min-width: 80px;
    padding: 7px 8px;
    border: 1px solid #dce2ea;
    border-radius: 3px;
    box-sizing: border-box;
    font-size: var(--jq_fs1);
}

.uaf-rfq-table input[data-f="part_number"] {
    min-width: 150px;
}

.uaf-rfq-row-remove {
    border: none;
    padding: 4px 8px;
    background: transparent;
    color: #d64528;
    cursor: pointer;
}

.uaf-rfq-row-remove:hover {
    text-decoration: underline;
}

.uaf-rfq-table-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.uaf-rfq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 9px 20px;
    font-size: var(--jq_fs2);
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: none;
}

.uaf-rfq-btn--primary {
    background: var(--jq_color5);
    border-color: var(--jq_color5);
    color: #fff;
}

.uaf-rfq-btn--secondary {
    background: #eef4ff;
    border-color: #c9d8ef;
    color: #245d9f;
}

.uaf-rfq-btn--danger {
    background: #ff6221;
    border-color: #ff6221;
    color: #fff;
}

.uaf-rfq-btn:hover:not(:disabled) {
    opacity: 0.92;
}

.uaf-rfq-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.uaf-rfq-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 22px;
}

.uaf-rfq-form label {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    color: #555;
    font-size: var(--jq_fs2);
}

.uaf-rfq-form label > span {
    white-space: nowrap;
}

.uaf-rfq-req {
    margin-left: 2px;
    color: #e53935;
}

.uaf-rfq-form-full {
    grid-column: 1 / -1;
    align-items: start;
}

.uaf-rfq-form input,
.uaf-rfq-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #dce2ea;
    border-radius: 3px;
    padding: 8px 9px;
    color: #333;
    font-size: var(--jq_fs1);
    line-height: 1.4;
    box-sizing: border-box;
}

.uaf-rfq-form textarea {
    resize: vertical;
}

.uaf-rfq-captcha-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.uaf-rfq-captcha-row input {
    flex: 1 1 110px;
    max-width: 150px;
}

.uaf-rfq-captcha-img {
    flex-shrink: 0;
    border: 1px solid #dce2ea;
    border-radius: 3px;
    cursor: pointer;
}

.uaf-rfq-msg {
    margin: 14px 0 0;
    min-height: 1.4em;
    color: #c0392b;
    font-size: var(--jq_fs2);
}

.uaf-rfq-msg.is-success {
    color: #1e7e34;
}

.uaf-rfq-msg.is-error {
    color: #c0392b;
}

.uaf-rfq-form .uaf-rfq-btn--primary {
    margin-top: 10px;
    min-width: 120px;
}

.uaf-rfq-success-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
}

.uaf-rfq-success-backdrop.is-open {
    display: flex;
}

.uaf-rfq-success-dialog {
    width: 100%;
    max-width: 420px;
    padding: 28px 24px 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    box-sizing: border-box;
}

.uaf-rfq-success-dialog__title {
    margin: 0 0 12px;
    color: #222;
    font-size: 18px;
    font-weight: 700;
}

.uaf-rfq-success-dialog__msg {
    margin: 0 0 22px;
    color: #555;
    line-height: 1.55;
}

@media (max-width: 768px) {
    .uaf-rfq {
        padding: 12px 12px 30px;
    }

    .uaf-rfq-inner {
        max-width: 100%;
    }

    .uaf-rfq-breadcrumb {
        padding: 6px 14px;
        border-radius: 6px;
    }

    .uaf-rfq-panel {
        padding: 18px 14px;
    }

    .uaf-rfq-form-grid,
    .uaf-rfq-form label {
        grid-template-columns: 1fr;
    }

    .uaf-rfq-table-actions {
        justify-content: stretch;
    }

    .uaf-rfq-table-actions .uaf-rfq-btn,
    .uaf-rfq-form .uaf-rfq-btn--primary {
        width: 100%;
    }
}
