/* Conveyor Sizing Calculator — scoped to .tcc-tool-page */
.tcc-tool-page {
	--tcc-red: #c8102e;
	--tcc-red-dk: #9a0c23;
	--tcc-ink: #14171a;
	--tcc-ink-2: #3b4046;
	--tcc-mute: #6b7280;
	--tcc-line: #e5e7eb;
	--tcc-bg: #f5f6f8;
	--tcc-card: #ffffff;
	--tcc-good: #0a7a3a;
	--tcc-shadow: 0 1px 2px rgba(20,23,26,.04), 0 8px 24px rgba(20,23,26,.06);
	color: var(--tcc-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.tcc-tool-page * { box-sizing: border-box; }

.tcc-eyebrow {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tcc-red);
	background: rgba(200,16,46,.08);
	padding: 4px 10px;
	border-radius: 999px;
	margin-bottom: 12px;
}

.tcc-tool-hero {
	background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
	padding: 56px 0 24px;
	border-bottom: 1px solid var(--tcc-line);
}
.tcc-tool-hero h1 {
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.15;
	margin: 0 0 12px;
	color: var(--tcc-ink);
}
.tcc-lede {
	font-size: 17px;
	line-height: 1.6;
	color: var(--tcc-ink-2);
	max-width: 760px;
	margin: 0;
}

.tcc-tool-body {
	background: var(--tcc-bg);
	padding: 40px 0 64px;
}

/* ----- Conversational AI input ----- */
.tcc-ai-input {
	display: flex;
	gap: 16px;
	background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
	border: 1px solid var(--tcc-line);
	border-radius: 14px;
	padding: 22px 24px;
	margin-bottom: 24px;
	box-shadow: var(--tcc-shadow);
	position: relative;
	overflow: hidden;
}
.tcc-ai-input::before {
	content: "";
	position: absolute;
	top: 0; left: 0;
	width: 4px; height: 100%;
	background: linear-gradient(180deg, var(--tcc-red) 0%, #ff5a78 100%);
}
.tcc-ai-input-icon {
	width: 56px;
	height: 56px;
	background: var(--tcc-ink);
	border-radius: 12px;
	flex-shrink: 0;
	padding: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.tcc-ai-input-icon img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.tcc-ai-input-body { flex: 1; min-width: 0; }
.tcc-ai-input-body > label {
	display: block;
	font-size: 14px;
	color: var(--tcc-ink-2);
	margin: 0 0 10px;
}
.tcc-ai-input-body > label strong {
	color: var(--tcc-ink);
	font-weight: 700;
}
#tcc-ai-form {
	display: flex;
	gap: 10px;
	align-items: flex-end;
}
#tcc-ai-prompt {
	flex: 1;
	resize: none;
	border: 1.5px solid var(--tcc-line);
	border-radius: 10px;
	padding: 11px 14px;
	font-size: 14.5px;
	line-height: 1.45;
	font-family: inherit;
	color: var(--tcc-ink);
	background: #fff;
	min-height: 44px;
	max-height: 140px;
	outline: none;
	transition: border-color .15s ease;
}
#tcc-ai-prompt:focus { border-color: var(--tcc-ink); }
.tcc-ai-submit {
	background: var(--tcc-ink);
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 0 20px;
	height: 44px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: background .15s ease;
	flex-shrink: 0;
	white-space: nowrap;
}
.tcc-ai-submit:hover { background: #2a2f37; }
.tcc-ai-submit:disabled { background: #d1d5db; cursor: not-allowed; }
.tcc-ai-feedback {
	margin-top: 10px;
	padding: 10px 14px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: 8px;
	color: #065f46;
	font-size: 13px;
	line-height: 1.5;
}
.tcc-ai-feedback.is-error {
	background: #fef2f2;
	border-color: #fca5a5;
	color: #991b1b;
}
/* highlight pulse when AI fills a field */
@keyframes tcc-flash {
	0% { background-color: rgba(200,16,46,.12); }
	100% { background-color: transparent; }
}
.tcc-flash { animation: tcc-flash 1.1s ease-out; }
@media (max-width: 600px) {
	.tcc-ai-input { flex-direction: column; gap: 14px; }
	.tcc-ai-input-icon { width: 44px; height: 44px; }
	#tcc-ai-form { flex-direction: column; align-items: stretch; }
	.tcc-ai-submit { width: 100%; }
}

.tcc-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}
@media (min-width: 900px) {
	.tcc-grid { grid-template-columns: 7fr 5fr; }
}
.tcc-grid > .col-sm-7,
.tcc-grid > .col-sm-5 { width: 100%; }

.tcc-card {
	background: var(--tcc-card);
	border: 1px solid var(--tcc-line);
	border-radius: 12px;
	box-shadow: var(--tcc-shadow);
	padding: 28px;
}
.tcc-card-title {
	font-size: 18px;
	margin: 0 0 20px;
	color: var(--tcc-ink);
}
.tcc-card-title-sub {
	font-size: 14px;
	font-weight: 700;
	margin: 28px 0 16px;
	padding-top: 20px;
	border-top: 1px solid var(--tcc-line);
	color: var(--tcc-ink-2);
	letter-spacing: .04em;
	text-transform: uppercase;
}

.tcc-field { margin: 0 0 22px; }
.tcc-field > label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--tcc-ink-2);
	margin-bottom: 10px;
	letter-spacing: .01em;
}
.tcc-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
@media (max-width: 560px) { .tcc-row { grid-template-columns: 1fr; } }

.tcc-help {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: var(--tcc-mute);
}

.tcc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.tcc-chip {
	background: #fff;
	border: 1.5px solid var(--tcc-line);
	color: var(--tcc-ink-2);
	padding: 9px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all .15s ease;
	font-family: inherit;
}
.tcc-chip:hover {
	border-color: var(--tcc-ink-2);
	color: var(--tcc-ink);
}
.tcc-chip.is-active {
	background: var(--tcc-ink);
	border-color: var(--tcc-ink);
	color: #fff;
}
.tcc-chip:focus-visible {
	outline: 3px solid rgba(200,16,46,.35);
	outline-offset: 2px;
}

.tcc-input-suffix {
	display: flex;
	align-items: stretch;
	border: 1.5px solid var(--tcc-line);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: border-color .15s ease;
}
.tcc-input-suffix:focus-within { border-color: var(--tcc-ink); }
.tcc-input-suffix input {
	flex: 1;
	border: 0;
	padding: 11px 14px;
	font-size: 15px;
	color: var(--tcc-ink);
	background: transparent;
	outline: none;
	font-family: inherit;
	min-width: 0;
}
.tcc-input-suffix .tcc-suffix,
.tcc-input-suffix select {
	display: inline-flex;
	align-items: center;
	padding: 0 14px;
	background: #fafbfc;
	color: var(--tcc-mute);
	font-size: 13px;
	font-weight: 500;
	border-left: 1px solid var(--tcc-line);
	font-family: inherit;
}
.tcc-input-suffix select {
	border: 0;
	border-left: 1px solid var(--tcc-line);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%236b7280' d='M5 6L0 0h10z'/></svg>");
	background-repeat: no-repeat;
	background-position: right 10px center;
	padding-right: 28px;
}

[data-show-when] { display: none; }
[data-show-when].is-visible { display: block; }

/* Recommendation panel */
.tcc-recommendation {
	position: sticky;
	top: 24px;
	padding: 0;
	overflow: hidden;
}
.tcc-result-header {
	background: var(--tcc-ink);
	color: #fff;
	padding: 24px 28px;
}
.tcc-result-header .tcc-eyebrow {
	color: #ffd1d8;
	background: rgba(255,255,255,.1);
	margin-bottom: 8px;
}
.tcc-result-title {
	font-size: 24px;
	margin: 0 0 4px;
	color: #fff;
	line-height: 1.2;
}
.tcc-result-sub {
	margin: 0;
	color: #c0c4ca;
	font-size: 14px;
}

.tcc-spec-list {
	margin: 0;
	padding: 18px 28px;
	border-bottom: 1px solid var(--tcc-line);
}
.tcc-spec-list > div {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 9px 0;
	border-bottom: 1px dashed var(--tcc-line);
	gap: 12px;
}
.tcc-spec-list > div:last-child { border-bottom: 0; }
.tcc-spec-list dt {
	margin: 0;
	font-size: 13px;
	color: var(--tcc-mute);
	font-weight: 500;
}
.tcc-spec-list dd {
	margin: 0;
	font-size: 14px;
	color: var(--tcc-ink);
	font-weight: 600;
	text-align: right;
}

.tcc-rationale {
	padding: 18px 28px;
	background: #fafbfc;
	border-bottom: 1px solid var(--tcc-line);
}
.tcc-rationale h3 {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tcc-mute);
	margin: 0 0 10px;
}
.tcc-rationale ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tcc-rationale li {
	font-size: 13.5px;
	color: var(--tcc-ink-2);
	line-height: 1.55;
	padding: 4px 0 4px 20px;
	position: relative;
}
.tcc-rationale li::before {
	content: "";
	position: absolute;
	left: 0; top: 11px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--tcc-good);
}

.tcc-quote-form {
	padding: 22px 28px 28px;
}
.tcc-quote-form h3 {
	font-size: 15px;
	margin: 0 0 4px;
	color: var(--tcc-ink);
}
.tcc-quote-form input {
	width: 100%;
	border: 1.5px solid var(--tcc-line);
	border-radius: 8px;
	padding: 11px 14px;
	font-size: 14px;
	margin-bottom: 10px;
	font-family: inherit;
	color: var(--tcc-ink);
	transition: border-color .15s ease;
}
.tcc-quote-form input:focus {
	outline: none;
	border-color: var(--tcc-ink);
}

.tcc-btn {
	display: inline-block;
	width: 100%;
	border: 0;
	border-radius: 8px;
	padding: 13px 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: all .15s ease;
}
.tcc-btn-primary {
	background: var(--tcc-red);
	color: #fff;
}
.tcc-btn-primary:hover { background: var(--tcc-red-dk); }
.tcc-btn-primary:focus-visible {
	outline: 3px solid rgba(200,16,46,.35);
	outline-offset: 2px;
}

.tcc-fineprint {
	font-size: 11.5px;
	color: var(--tcc-mute);
	margin: 12px 0 0;
	line-height: 1.5;
}

.tcc-disclaimer {
	background: #fff7e6;
	border-top: 1px solid #f0d9a8;
	padding: 14px 0;
	font-size: 13px;
	color: #6b5418;
}
.tcc-disclaimer code {
	background: rgba(0,0,0,.06);
	padding: 1px 6px;
	border-radius: 3px;
	font-size: 12px;
}

/* Quote success */
.tcc-quote-form.is-sent .tcc-quote-form-content { display: none; }
.tcc-quote-success {
	display: none;
	padding: 24px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: 8px;
	color: #065f46;
	font-size: 14px;
	line-height: 1.5;
}
.tcc-quote-form.is-sent .tcc-quote-success { display: block; }
