/* =========================================================
   TECHNOLOGY PRODUCT - requirements quote form (product page) and
   requirements editor on the Get a Quote page
   ========================================================= */

.np-tq {
    background: #fff;
    border: 1px solid var(--np-border, #eceef4);
    border-radius: 16px;
    padding: 24px 26px;
    margin-bottom: 20px;
}

.np-tq label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--header, #09052f); }
.np-tq label small { font-weight: 400; color: #8a8fa3; }
.np-tq-req { color: var(--np-pink, #e7287c); }

.np-tq-head { margin-bottom: 18px; }
.np-tq-head h4 { margin: 10px 0 6px; font-size: 20px; }
.np-tq-head p { margin: 0; color: var(--np-text, #555b6d); font-size: 14px; line-height: 1.6; }

.np-tq-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 30px;
    background: rgba(40, 115, 186, .08);
    color: var(--np-blue, #2873ba);
    font-size: 12px;
    font-weight: 700;
}

/* Editor */
.np-tq-editor-wrap { border-radius: 10px; }
.np-tq-editor-wrap .ql-toolbar.ql-snow { border-color: var(--np-border, #dfe2ea); border-radius: 10px 10px 0 0; background: #fafbfd; }
.np-tq-editor-wrap .ql-container.ql-snow { border-color: var(--np-border, #dfe2ea); border-radius: 0 0 10px 10px; font-family: inherit; font-size: 15px; }
.np-tq-editor-wrap .ql-editor { min-height: 180px; max-height: 420px; overflow-y: auto; line-height: 1.6; }
.np-tq-editor-wrap.is-invalid .ql-container.ql-snow,
.np-tq-editor-wrap.is-invalid .ql-toolbar.ql-snow,
.np-tq-editor-wrap.is-invalid textarea { border-color: #dc3545; }

/* Files */
.np-tq-attach {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px dashed #c9cdd9;
    border-radius: 8px;
    background: #fafbfd;
    font-size: 14px;
    color: var(--header, #09052f);
}
.np-tq-attach:hover { border-color: var(--np-blue, #2873ba); color: var(--np-blue, #2873ba); }
#np-tq-file-list { list-style: none; padding: 0; margin: 8px 0 0; }
#np-tq-file-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; border-bottom: 1px solid #f1f2f6; }
#np-tq-file-list .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#np-tq-file-list .size { color: #8a8fa3; }
#np-tq-file-list button { border: 0; background: none; color: #8a8fa3; padding: 2px 6px; }
#np-tq-file-list button:hover { color: #dc3545; }

/* Errors, alert, spam trap (same names as the Get a Quote page) */
.np-tq .np-q-err { display: none; margin-top: 5px; color: #dc3545; font-size: 13px; }
.np-tq .np-q-err.show { display: block; }
.np-tq .np-q-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.np-tq-alert { margin-top: 16px; padding: 10px 14px; border-radius: 8px; background: #fdecee; color: #b02a37; font-size: 14px; }
.np-tq-note { margin: 10px 0 0; font-size: 12px; color: #8a8fa3; }
.np-tq [hidden] { display: none !important; }

@media (max-width: 575px) {
    .np-tq { padding: 18px 16px; }
}
