/* Quality Carpet & Tile site tools */
:root {
	--qct-navy: #132B5A; --qct-navy-deep: #041335; --qct-teal: #13BBC2; --qct-teal-dark: #007A8C;
	--qct-amber: #F9AD26; --qct-amber-ink: #2E1200; --qct-mist: #E3F6F9; --qct-soft: #F4F8FA; --qct-muted: #556173;
}

/* ---------- Quick quote ---------- */
.qct-quote { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; background: #fff; border: 1px solid rgba(19,43,90,.09); border-radius: 24px; padding: clamp(18px, 3vw, 32px); box-shadow: 0 24px 60px -30px rgba(19,43,90,.4); }
@media (max-width: 860px) { .qct-quote { grid-template-columns: 1fr; } }
.qct-quote fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.qct-quote legend, .qct-quote label { font-weight: 700; color: var(--qct-navy); margin-bottom: 10px; display: block; font-size: 16px; padding: 0; }
.qct-quote label span { font-weight: 500; color: var(--qct-muted); }
.qct-quote__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qct-chip { font: inherit; font-size: 15px; font-weight: 600; padding: 9px 15px; border-radius: 999px; border: 1px solid rgba(19,43,90,.18); background: #fff; color: #33415C; cursor: pointer; transition: all .15s ease; min-height: 44px; }
.qct-chip:hover { border-color: var(--qct-teal-dark); }
.qct-chip[aria-pressed="true"] { background: var(--qct-mist); border-color: var(--qct-teal-dark); color: var(--qct-navy); }
.qct-chip[aria-pressed="true"]::before { content: "✓ "; color: var(--qct-teal-dark); }
.qct-chip:focus-visible { outline: 2px solid var(--qct-teal-dark); outline-offset: 2px; }
.qct-quote textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(19,43,90,.18); background: var(--qct-soft); resize: vertical; }
.qct-quote textarea:focus { outline: none; border-color: var(--qct-teal-dark); box-shadow: 0 0 0 3px rgba(19,187,194,.2); background: #fff; }
.qct-quote__preview { background: var(--qct-navy); border-radius: 20px; padding: 22px; color: #fff; display: flex; flex-direction: column; gap: 12px; }
.qct-quote__label { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--qct-teal); margin: 0; }
.qct-quote__msg { white-space: pre-wrap; font-family: inherit; font-size: 15px; line-height: 1.6; background: var(--qct-navy-deep); border-radius: 14px; padding: 16px; margin: 0; min-height: 140px; color: rgba(255,255,255,.92); }
.qct-quote__send, .qct-quote__call { display: block; text-align: center; border-radius: 14px; padding: 14px 18px; font-weight: 700; text-decoration: none; }
.qct-quote__send { background: var(--qct-amber); color: var(--qct-amber-ink) !important; box-shadow: 0 12px 30px -10px rgba(249,173,38,.7); }
.qct-quote__call { border: 1px solid rgba(255,255,255,.3); color: #fff !important; }
.qct-quote__call:hover { background: rgba(255,255,255,.08); }
.qct-quote__note { margin: 0; text-align: center; font-size: 14px; color: rgba(255,255,255,.75); }

/* ---------- Mobile call bar ---------- */
.qct-callbar { display: none; }
@media (max-width: 781px) {
	.qct-callbar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(4,19,53,.97); box-shadow: 0 -10px 30px -12px rgba(0,0,0,.4); }
	.qct-callbar a { flex: 1; text-align: center; border-radius: 12px; padding: 12px 8px; font-weight: 700; font-size: 15px; text-decoration: none; }
	.qct-callbar__call { background: var(--qct-amber); color: var(--qct-amber-ink) !important; flex: 1.4 !important; }
	.qct-callbar__est { background: rgba(255,255,255,.1); color: #fff !important; border: 1px solid rgba(255,255,255,.25); }
}

/* ---------- Chat ---------- */
#qct-chat-root { position: fixed; right: 20px; bottom: 20px; z-index: 95; font-size: 15px; }
@media (max-width: 781px) { #qct-chat-root { right: 12px; bottom: 80px; } }
.qct-chat-toggle { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; background: var(--qct-teal-dark); color: #fff; font: inherit; font-weight: 700; padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: 0 14px 34px -12px rgba(0,60,80,.6); }
.qct-chat-toggle:hover { background: #006878; }
.qct-chat-toggle:focus-visible { outline: 3px solid var(--qct-amber); outline-offset: 2px; }
.qct-chat-toggle__icon { width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center/contain no-repeat; }
@media (max-width: 781px) { .qct-chat-toggle__text { display: none; } .qct-chat-toggle { padding: 14px; } }
.qct-chat-open .qct-chat-toggle { display: none; }
.qct-chat-panel { width: min(380px, calc(100vw - 24px)); height: min(580px, calc(100vh - 120px)); background: #fff; border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(4,19,53,.5); display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(19,43,90,.12); }
.qct-chat-panel[hidden] { display: none; }
@media (max-width: 781px) { .qct-chat-panel { height: calc(100vh - 150px); height: calc(100dvh - 150px); } }
.qct-chat-head { background: var(--qct-navy); color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qct-chat-head__t strong { display: block; font-size: 16px; }
.qct-chat-head__t span { font-size: 13px; color: rgba(255,255,255,.75); }
.qct-chat-close { background: rgba(255,255,255,.12); color: #fff; border: 0; width: 36px; height: 36px; border-radius: 10px; font-size: 22px; line-height: 1; cursor: pointer; }
.qct-chat-log { flex: 1; overflow-y: auto; padding: 16px; background: var(--qct-soft); display: flex; flex-direction: column; gap: 10px; }
.qct-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; line-height: 1.5; }
.qct-msg p { margin: 0; }
.qct-msg--bot { background: #fff; border: 1px solid rgba(19,43,90,.1); color: #091A36; border-bottom-left-radius: 6px; align-self: flex-start; }
.qct-msg--user { background: var(--qct-navy); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.qct-msg__link { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--qct-teal-dark); text-decoration: none; }
.qct-chat-chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px 0; background: #fff; scrollbar-width: thin; }
.qct-chat-chip { flex: 0 0 auto; font: inherit; font-size: 13px; font-weight: 600; border: 1px solid rgba(19,43,90,.18); background: #fff; color: var(--qct-navy); border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.qct-chat-chip:hover { background: var(--qct-mist); }
.qct-chat-form { display: flex; gap: 8px; padding: 10px 12px; background: #fff; }
.qct-chat-form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid rgba(19,43,90,.2); border-radius: 12px; }
.qct-chat-form input:focus { outline: none; border-color: var(--qct-teal-dark); box-shadow: 0 0 0 3px rgba(19,187,194,.2); }
.qct-chat-form button { font: inherit; font-weight: 700; border: 0; background: var(--qct-navy); color: #fff; border-radius: 12px; padding: 0 16px; cursor: pointer; }
.qct-chat-foot { display: flex; gap: 8px; padding: 0 12px 12px; background: #fff; }
.qct-chat-foot a { flex: 1; text-align: center; font-weight: 700; font-size: 14px; padding: 10px 6px; border-radius: 12px; text-decoration: none; }
.qct-chat-call { background: var(--qct-amber); color: var(--qct-amber-ink) !important; }
.qct-chat-est { border: 1px solid rgba(19,43,90,.2); color: var(--qct-navy) !important; }
