.tri-est {
	--tri-black: #111;
	--tri-orange: #E8620A;
	--tri-grey: #f4f4f4;
	--tri-border: #ddd;
	--tri-bg: #fff;
	--tri-text: #111;
	--tri-radius: 4px;
	max-width: 760px;
	margin: 0 auto;
	padding: 24px;
	background: var(--tri-bg);
	color: var(--tri-text);
	border: 1px solid var(--tri-border);
	border-top: 5px solid var(--tri-orange);
	border-radius: var(--tri-radius);
	font-family: inherit;
	box-sizing: border-box;
}
.tri-est *, .tri-est *::before, .tri-est *::after { box-sizing: border-box; }
.tri-est [hidden] { display: none !important; }

/* Progress */
.tri-progress { margin-bottom: 28px; }
.tri-progress-bar { height: 6px; background: var(--tri-border); border-radius: 3px; overflow: hidden; }
.tri-progress-fill { height: 100%; width: 25%; background: var(--tri-orange); transition: width .4s ease; }
.tri-dots { display: flex; justify-content: space-between; margin-top: 12px; }
.tri-dot-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; opacity: .5; transition: opacity .3s; }
.tri-dot-wrap.active, .tri-dot-wrap.done { opacity: 1; }
.tri-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--tri-border); color: var(--tri-black); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tri-dot-wrap.active .tri-dot { background: var(--tri-orange); color: #fff; }
.tri-dot-wrap.done .tri-dot { background: var(--tri-black); color: #fff; }
.tri-dot-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }

/* Form */
.tri-est h3 { margin: 0 0 16px; font-size: 22px; color: var(--tri-text); }
.tri-est label { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.tri-est input[type="text"], .tri-est input[type="email"], .tri-est input[type="tel"],
.tri-est input[type="number"], .tri-est select, .tri-est textarea {
	display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
	border: 1px solid var(--tri-border); border-radius: var(--tri-radius); font-size: 15px; font-weight: 400; background: #fff; color: #111; font-family: inherit;
}
.tri-est input:focus, .tri-est select:focus, .tri-est textarea:focus { outline: 2px solid var(--tri-orange); outline-offset: 0; border-color: var(--tri-orange); }
.tri-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tri-hint { margin: -8px 0 14px; color: #666; font-size: 14px; }

.tri-trades { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 18px; }
.tri-trade { margin: 0 !important; cursor: pointer; }
.tri-trade input { position: absolute; opacity: 0; pointer-events: none; }
.tri-trade span { display: block; padding: 12px; border: 2px solid var(--tri-border); border-radius: var(--tri-radius); font-weight: 600; transition: all .15s; }
.tri-trade input:checked + span { border-color: var(--tri-orange); background: color-mix(in srgb, var(--tri-orange) 12%, var(--tri-bg)); }
.tri-trade input:focus-visible + span { outline: 2px solid var(--tri-black); }

/* Nav */
.tri-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.tri-nav .tri-btn:only-child, .tri-nav .tri-btn:last-child { margin-left: auto; }
.tri-btn { display: inline-block; padding: 12px 28px; background: var(--tri-orange); color: #fff; border: 2px solid var(--tri-orange); border-radius: var(--tri-radius); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; text-decoration: none; text-align: center; }
.tri-btn:hover { background: var(--tri-black); border-color: var(--tri-black); color: #fff; }
.tri-btn:disabled { opacity: .5; cursor: not-allowed; }
.tri-btn-ghost { background: transparent; color: var(--tri-black); border-color: var(--tri-black); }

.tri-error { margin-bottom: 16px; padding: 12px 14px; background: #fdecea; border-left: 4px solid #c62828; color: #7f1d1d; font-size: 14px; }

/* Loading */
.tri-loading { padding: 50px 0; text-align: center; font-weight: 600; }
.tri-loading::before { content: ""; display: block; width: 36px; height: 36px; margin: 0 auto 14px; border: 4px solid var(--tri-border); border-top-color: var(--tri-orange); border-radius: 50%; animation: tri-spin .8s linear infinite; }
@keyframes tri-spin { to { transform: rotate(360deg); } }

/* Results */
.tri-result-card { border: 1px solid var(--tri-border); border-radius: 6px; overflow: hidden; }
.tri-result-head { background: var(--tri-black); color: #fff; padding: 24px; text-align: center; }
.tri-result-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #bbb; }
.tri-result-range { font-size: 34px; font-weight: 800; color: var(--tri-orange); margin: 6px 0; line-height: 1.15; }
.tri-result-sf { font-size: 14px; color: #ddd; }
.tri-result-body { padding: 22px; }
.tri-result-body h4 { margin: 20px 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--tri-orange); padding-bottom: 4px; }
.tri-result-body h4:first-child { margin-top: 0; }
.tri-result-body p { margin: 0 0 10px; line-height: 1.55; }
.tri-breakdown { list-style: none; margin: 0; padding: 0; }
.tri-breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--tri-grey); }
.tri-breakdown li span:last-child { font-weight: 700; white-space: nowrap; }
.tri-assume { margin: 0; padding-left: 20px; line-height: 1.55; font-size: 14px; }
.tri-disclaimer { margin-top: 18px; padding: 12px 14px; background: var(--tri-grey); border-left: 4px solid var(--tri-orange); font-size: 13px; color: #444; }
.tri-cta { margin-top: 20px; padding: 22px; background: var(--tri-black); color: #fff; text-align: center; border-radius: 6px; }
.tri-cta h4 { margin: 0 0 6px; color: #fff; font-size: 20px; border: 0; text-transform: none; letter-spacing: 0; }
.tri-cta p { margin: 0 0 14px; color: #ccc; }
.tri-cta .tri-btn { margin: 4px; }
.tri-cta .tri-btn-ghost { color: #fff; border-color: #fff; }
.tri-cta .tri-btn-ghost:hover { background: #fff; color: var(--tri-black); border-color: #fff; }

@media (max-width: 600px) {
	.tri-est { padding: 16px; }
	.tri-row { grid-template-columns: 1fr; gap: 0; }
	.tri-dot-label { font-size: 10px; }
	.tri-result-range { font-size: 26px; }
}
