/* FST Báo giá 1.0.0 — trang Yêu cầu báo giá.
   Cùng bảng màu và phông với FST Nav, trang đích và widget sidebar. Chỉ dùng các độ đậm giao diện đã nạp:
   Big Shoulders Display 600, Barlow Condensed 500, Montserrat 400–700. Mọi quy tắc nằm trong #fstq. */

.fstq {
	--ink: #19202d; --ink2: #3d4552; --mut: #5c6370; --line: #e5e9ec; --line3: #dde3e8; --bg: #f6fafc;
	--teal: #02838d; --teal-d: #026a72; --err: #b42318;
	--fd: "Big Shoulders Display", "Barlow Condensed", "Arial Narrow", sans-serif;
	--fc: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
	--fb: Montserrat, "Segoe UI", Arial, sans-serif;
	--pad: clamp(16px, 4vw, 24px);
	background: var(--bg);
	border-bottom: 1px solid #eef2f5;
	color: var(--ink);
	font: 400 15px/1.55 var(--fb);
	letter-spacing: 0;
	text-align: left;
	overflow-wrap: break-word;
	-webkit-text-size-adjust: 100%;
}
.fstq-main { display: block; margin: 0; padding: 0; max-width: none; width: 100%; }

#fstq *, #fstq *::before, #fstq *::after { box-sizing: border-box; }
#fstq h1, #fstq h2, #fstq p, #fstq ul, #fstq ol, #fstq li, #fstq fieldset, #fstq legend, #fstq form { margin: 0; padding: 0; border: 0; background: none; min-width: 0; float: none; width: auto; max-width: none; letter-spacing: inherit; text-transform: none; text-align: inherit; }
#fstq h1::before, #fstq h1::after, #fstq h2::before, #fstq h2::after, #fstq li::before, #fstq li::marker { content: none; }
#fstq ul, #fstq ol { list-style: none; }
#fstq nav, #fstq div, #fstq ul, #fstq ol, #fstq li, #fstq a, #fstq span, #fstq small, #fstq strong, #fstq b, #fstq label, #fstq legend, #fstq fieldset, #fstq aside, #fstq header { font-family: inherit; letter-spacing: inherit; }
#fstq span, #fstq small, #fstq strong, #fstq b, #fstq li, #fstq p, #fstq label { font-size: inherit; line-height: inherit; color: inherit; }
#fstq strong, #fstq b { font-weight: 600; }
#fstq svg { display: block; flex: none; }
#fstq a { color: var(--teal-d); text-decoration: none; box-shadow: none; border: 0; background: none; transition: color .15s, background-color .15s, border-color .15s; }
#fstq a:hover { color: #014f55; text-decoration: none; }
#fstq a:focus-visible, #fstq input:focus-visible, #fstq select:focus-visible, #fstq textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

#fstq .fstq-wrap { width: 100%; max-width: calc(var(--fstq-width, 1110px) + var(--pad) * 2); margin: 0 auto; padding: 18px var(--pad) clamp(32px, 5vw, 56px); display: flex; flex-direction: column; gap: 18px; }
#fstq .fstq-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; }

/* Đường dẫn, tiêu đề */
#fstq .fstq-crumb { font-size: 13px; color: var(--mut); }
#fstq .fstq-crumb ol { display: flex; flex-wrap: wrap; gap: 0 6px; }
#fstq .fstq-crumb li + li::before { content: "›"; margin-right: 6px; }
#fstq .fstq-crumb a { color: var(--mut); }
#fstq .fstq-crumb a:hover { color: var(--ink); }
#fstq .fstq-crumb [aria-current] { font-weight: 600; color: var(--ink); }
#fstq .fstq-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 32px; }
#fstq .fstq-top__text { flex: 1 1 420px; min-width: 0; }
#fstq .fstq-h1 { font: 600 clamp(32px, 8.4vw, 44px)/1.08 var(--fd); text-transform: uppercase; color: var(--ink); }
#fstq .fstq-lead { margin-top: 6px; max-width: 560px; color: #3c4656; }
#fstq .fstq-promises { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; font-weight: 600; color: #3c4656; }
#fstq .fstq-promises li { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
#fstq .fstq-promises li::before { content: "✓"; color: var(--teal); }

/* Hai cột */
#fstq .fstq-cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
#fstq .fstq-formcard { flex: 999 1 560px; min-width: 0; padding: clamp(18px, 3vw, 26px) clamp(16px, 3vw, 28px) clamp(20px, 3vw, 28px); }
#fstq .fstq-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 1000px) {
	#fstq .fstq-side { position: sticky; top: 16px; }
}

/* Form: các bước */
#fstq .wpcf7 { margin: 0; padding: 0; }
#fstq .fstq-form { display: flex; flex-direction: column; gap: 26px; counter-reset: fstq; }
#fstq .fstq-form > p { display: none; }
#fstq .fstq-step { display: flex; flex-direction: column; gap: 12px; counter-increment: fstq; }
#fstq .fstq-step > legend { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 12px; font: 500 22px/1.2 var(--fc); color: var(--ink); }
#fstq .fstq-step > legend::before { content: counter(fstq, decimal-leading-zero); flex: none; padding: 3px 9px; border-radius: 8px; background: var(--ink); color: #fff; font: 500 17px/1.55 var(--fc); }
#fstq .fstq-sp > legend::before { background: #cc004c; }
#fstq .fstq-dv > legend::before { background: #004aad; }
/* Ẩn khối không liên quan theo lựa chọn ở bước 1 (không cần JavaScript) */
#fstq .fstq-form:has(input[name="nhu-cau"][value="Tư vấn dịch vụ"]:checked) .fstq-sp,
#fstq .fstq-form:has(input[name="nhu-cau"][value="Báo giá sản phẩm"]:checked) .fstq-dv { display: none; }

#fstq .fstq-row { min-width: 0; }
#fstq .fstq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 14px; }
#fstq .fstq-label { display: block; margin: 0 0 6px; font: 700 12.5px/1.4 var(--fb); color: var(--ink2); cursor: default; }
#fstq label.fstq-label { cursor: pointer; }
#fstq .fstq-label small, #fstq .fstq-hint { font-weight: 400; color: var(--mut); }
#fstq .fstq-hint { display: block; margin-top: 6px; font-size: 12.5px; }
#fstq .wpcf7-form-control-wrap { position: relative; display: block; width: 100%; }

/* Ô nhập */
#fstq .fstq-form input[type="text"], #fstq .fstq-form input[type="email"], #fstq .fstq-form input[type="tel"], #fstq .fstq-form select, #fstq .fstq-form textarea {
	display: block; width: 100%; max-width: 100%; min-height: 46px; margin: 0; padding: 11px 13px;
	font: 500 16px/1.35 var(--fb); color: var(--ink);
	background-color: var(--bg); border: 1.5px solid var(--line3); border-radius: 10px; box-shadow: none;
	-webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
#fstq .fstq-form textarea { min-height: 104px; max-height: 320px; resize: vertical; line-height: 1.5; }
#fstq .fstq-form select { padding-right: 38px; cursor: pointer; text-overflow: ellipsis; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2302838D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
#fstq .fstq-form input::placeholder, #fstq .fstq-form textarea::placeholder { font-weight: 400; font-size: 14px; color: #6b7480; opacity: 1; }
#fstq .fstq-form input[type="text"]:hover, #fstq .fstq-form input[type="email"]:hover, #fstq .fstq-form input[type="tel"]:hover, #fstq .fstq-form select:hover, #fstq .fstq-form textarea:hover { border-color: #c5ced6; }
#fstq .fstq-form input[type="text"]:focus, #fstq .fstq-form input[type="email"]:focus, #fstq .fstq-form input[type="tel"]:focus, #fstq .fstq-form select:focus, #fstq .fstq-form textarea:focus { outline: 0; background-color: #fff; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(2, 131, 141, .12); }
#fstq .fstq-form .wpcf7-not-valid { border-color: var(--err) !important; background-color: #fff6f5 !important; }
#fstq .wpcf7-not-valid-tip { display: block; margin-top: 5px; font: 600 12.5px/1.35 var(--fb); color: var(--err); }

/* Nhóm lựa chọn: thẻ (bước 1) và nhãn tròn */
#fstq .wpcf7-radio, #fstq .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 8px; }
#fstq .wpcf7-list-item { display: block; margin: 0; }
#fstq .wpcf7-list-item label { position: relative; display: flex; align-items: center; gap: 7px; margin: 0; padding: 8px 13px; border: 1.5px solid var(--line3); border-radius: 999px; background: #fff; color: #3c4656; font: 600 13px/1.55 var(--fb); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
#fstq .wpcf7-list-item label:hover { border-color: #b9c2cb; }
#fstq .wpcf7-list-item input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
#fstq .wpcf7-list-item label:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
#fstq .fstq-chips .wpcf7-list-item label:has(input:checked) { border-color: var(--ink); background: #e9edf1; color: var(--ink); }
#fstq .fstq-chips--sp .wpcf7-list-item label:has(input:checked) { border-color: #a3003d; background: #fce8ef; color: #a3003d; }
#fstq .fstq-chips--dv .wpcf7-list-item label:has(input:checked) { border-color: #004aad; background: #eaf1fb; color: #004aad; }
#fstq .wpcf7-checkbox .wpcf7-list-item label:has(input:checked)::before { content: "✓"; }

#fstq .fstq-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
#fstq .fstq-cards .wpcf7-list-item label { align-items: center; gap: 12px; height: 100%; padding: 12px 14px; border-width: 2px; border-color: var(--line); border-radius: 14px; background: #fbfcfd; --fg: #a3003d; --tint: #fce8ef; }
#fstq .fstq-cards .wpcf7-list-item:nth-child(2) label { --fg: #004aad; --tint: #eaf1fb; }
#fstq .fstq-cards .wpcf7-list-item:nth-child(3) label { --fg: #026a72; --tint: #e0f3f4; }
#fstq .fstq-cards .wpcf7-list-item label::before { content: ""; flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--tint); }
#fstq .fstq-cards .wpcf7-list-item label::after { content: ""; position: absolute; left: 23px; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: var(--fg); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6l-5 9a2 2 0 0 0 1.8 3h10.4a2 2 0 0 0 1.8-3l-5-9V3M7.5 15h9'/%3E%3C/svg%3E"); }
#fstq .fstq-cards .wpcf7-list-item:nth-child(2) label::after { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E"); }
#fstq .fstq-cards .wpcf7-list-item:nth-child(3) label::after { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 5-9 5-9-5zM3 13l9 5 9-5'/%3E%3C/svg%3E"); }
#fstq .fstq-cards .wpcf7-list-item-label { display: flex; flex-direction: column; min-width: 0; font: 500 20px/1.15 var(--fc); color: var(--ink); }
#fstq .fstq-cards .wpcf7-list-item-label::after { content: "Hóa chất, vật tư, thiết bị"; font: 400 12.5px/1.45 var(--fb); color: var(--mut); }
#fstq .fstq-cards .wpcf7-list-item:nth-child(2) .wpcf7-list-item-label::after { content: "R&D, chất lượng, nhà máy"; }
#fstq .fstq-cards .wpcf7-list-item:nth-child(3) .wpcf7-list-item-label::after { content: "Sản phẩm kèm dịch vụ"; }
#fstq .fstq-cards .wpcf7-list-item label:has(input:checked) { border-color: var(--fg); background: #fff; box-shadow: 0 4px 14px rgba(25, 32, 45, .08); }

/* Tệp đính kèm */
#fstq .fstq-file { padding: 12px 14px; border: 1.5px dashed #c9d1da; border-radius: 12px; background: #fbfcfd; }
#fstq .fstq-file input[type="file"] { display: block; width: 100%; max-width: 100%; font: 400 13px/1.5 var(--fb); color: var(--mut); }
#fstq .fstq-file input[type="file"]::file-selector-button { margin: 0 12px 0 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: 500 17px/1.3 var(--fc); cursor: pointer; }
#fstq .fstq-file input[type="file"]::file-selector-button:hover { border-color: var(--ink); }

/* Cuối form */
#fstq .fstq-end { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
#fstq .fstq-sum { position: relative; padding: 12px 14px 12px 31px; border-radius: 12px; background: var(--bg); font-size: 13.5px; }
#fstq .fstq-sum[hidden] { display: none; }
#fstq .fstq-sum::before { content: ""; position: absolute; left: 14px; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
#fstq .wpcf7-acceptance { display: block; }
#fstq .wpcf7-acceptance .wpcf7-list-item label { align-items: flex-start; gap: 10px; padding: 0; border: 0; border-radius: 0; background: none; font: 400 13px/1.55 var(--fb); color: #3c4656; }
#fstq .wpcf7-acceptance .wpcf7-list-item label::before { content: none; }
#fstq .wpcf7-acceptance .wpcf7-list-item input { position: static; opacity: 1; flex: none; width: 18px; height: 18px; margin: 1px 0 0; pointer-events: auto; accent-color: var(--teal); -webkit-appearance: auto; appearance: auto; }
#fstq .wpcf7-acceptance a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
#fstq .fstq-submit { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
#fstq .fstq-submit small { font-size: 12.5px; color: var(--mut); }
#fstq .fstq-btn {
	display: block; min-height: 52px; min-width: min(100%, 260px); margin: 0; padding: 0 52px 0 18px; border: 0; border-radius: 10px; cursor: pointer;
	font: 500 20px/1 var(--fc); letter-spacing: .02em; text-transform: none; text-align: left; color: #fff;
	background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat right 16px center / 20px;
	box-shadow: 0 10px 22px -12px rgba(2, 131, 141, .8); transition: background-color .15s, background-position .2s, opacity .15s;
	-webkit-appearance: none; appearance: none; width: auto; height: auto;
}
#fstq .fstq-btn:hover { background-color: var(--teal-d); background-position: right 12px center; color: #fff; }
#fstq .fstq-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; background-position: right 16px center; }
#fstq .fstq-form.submitting .fstq-btn { opacity: .7; cursor: progress; }
#fstq .wpcf7-spinner { margin: 0; }
@media (max-width: 599px) {
	#fstq .fstq-btn { width: 100%; }
}

/* Thông báo của Contact Form 7 */
#fstq .wpcf7 form .wpcf7-response-output { margin: 0; padding: 11px 13px; border: 0; border-left: 3px solid var(--err); border-radius: 8px; background: #fef3f2; font: 600 13px/1.45 var(--fb); color: var(--err); }
#fstq .wpcf7 form.init .wpcf7-response-output, #fstq .wpcf7 form.resetting .wpcf7-response-output, #fstq .wpcf7 form.submitting .wpcf7-response-output { display: none; }
#fstq .wpcf7 form.sent > :not(.wpcf7-response-output):not(.screen-reader-response) { display: none !important; }
#fstq .wpcf7 form.sent .wpcf7-response-output {
	padding: 64px 18px 20px; border: 1px solid #a6e3c4; border-radius: 12px; text-align: center; color: #067647; font-size: 15px;
	background: #ecfdf3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23067647' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9.5'/%3E%3C/svg%3E") no-repeat center 18px / 36px;
}
#fstq .fstq-missing { display: grid; gap: 10px; }
#fstq .fstq-missing__admin { padding: 10px 12px; border-radius: 10px; background: #fff8e6; color: #7a4f00; font-size: 13px; }

/* Cột phải */
#fstq .fstq-dark { padding: 20px; border-radius: 16px; color: #fff; background: radial-gradient(120% 90% at 100% 0, rgba(2, 131, 141, .35) 0, transparent 60%), var(--ink); }
#fstq .fstq-badge { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 99px; background: rgba(255, 255, 255, .08); font: 500 13px/1 var(--fc); letter-spacing: .06em; text-transform: uppercase; color: #e6f2f3; }
#fstq .fstq-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); }
#fstq .fstq-dark__title { margin: 12px 0 4px; font: 600 28px/1.05 var(--fd); letter-spacing: .5px; text-transform: uppercase; color: #fff; }
#fstq .fstq-dark__title em { font-style: normal; color: #5fd3da; }
#fstq .fstq-dark__desc { font-size: 13.5px; color: #aeb7c4; }
#fstq .fstq-contacts { display: grid; gap: 8px; margin-top: 14px; }
#fstq .fstq-contact { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px 8px 8px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; }
#fstq .fstq-contact:hover { background: rgba(255, 255, 255, .1); border-color: rgba(95, 211, 218, .4); color: #5fd3da; }
#fstq .fstq-contact__ic { display: flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--teal); color: #fff; }
#fstq .fstq-contact > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#fstq .fstq-contact small { font: 700 11px/1.2 var(--fb); color: #8c96a5; }
#fstq .fstq-contact b { font: 500 21px/1.05 var(--fc); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#fstq .fstq-contact--mail b { font: 600 13.5px/1.25 var(--fb); letter-spacing: 0; }
#fstq .fstq-box { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; }
#fstq .fstq-box__title { font: 500 20px/1.2 var(--fc); color: var(--ink); }
#fstq .fstq-ticks { display: grid; gap: 8px; font-size: 13.5px; color: #3c4656; }
#fstq .fstq-ticks li { display: flex; gap: 10px; }
#fstq .fstq-ticks li::before { content: "✓"; font-weight: 700; color: var(--teal); }
#fstq .fstq-after { display: grid; gap: 12px; counter-reset: fstqa; }
#fstq .fstq-after li { display: flex; gap: 12px; counter-increment: fstqa; }
#fstq .fstq-after li::before { content: counter(fstqa); display: flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: #eaf1fb; color: #004aad; font: 500 16px/1 var(--fc); }
#fstq .fstq-after strong { display: block; font-size: 13.5px; font-weight: 600; }
#fstq .fstq-after small { display: block; font-size: 12.5px; color: var(--mut); }

@media (prefers-reduced-motion: reduce) {
	#fstq * { transition: none !important; }
}
@media print {
	#fstq .fstq-side { display: none; }
}
