@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=DM+Serif+Display&display=swap');

#telsco-tool *,
#telsco-tool *::before,
#telsco-tool *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

#telsco-tool {
	--blue:   #1A5F8A;
	--blue-l: #EBF4FA;
	--blue-m: #2E7DAF;
	--amber:  #D97706;
	--amber-l:#FEF3C7;
	--red:    #B91C1C;
	--red-l:  #FEE2E2;
	--green:  #166534;
	--tx:     #111827;
	--tx2:    #4B5563;
	--tx3:    #9CA3AF;
	--bd:     #E5E7EB;
	--bg:     #F9FAFB;
	--wh:     #FFFFFF;
	--r:      10px;
	--rl:     16px;

	max-width: 720px;
	margin: 0 auto;
	padding: 2rem 1.25rem 4rem;
	font-family: 'DM Sans', sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--tx);
}

/* ── Header ── */
#telsco-tool .te {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--blue);
	margin-bottom: .5rem;
}
#telsco-tool .tt {
	font-family: 'DM Serif Display', serif;
	font-size: 28px;
	font-weight: 400;
	color: var(--tx);
	line-height: 1.25;
	margin-bottom: .5rem;
}
#telsco-tool .ts {
	font-size: 14px;
	color: var(--tx2);
	max-width: 520px;
	margin-bottom: 2rem;
}

/* ── Step dots ── */
#telsco-tool .tdots {
	display: flex;
	gap: 6px;
	margin-bottom: 0.5rem;
	flex-wrap: wrap;
}
#telsco-tool .tdot {
	height: 4px;
	flex: 1;
	min-width: 30px;
	background: var(--bd);
	border-radius: 2px;
	transition: background .3s, transform .15s;
	border: none;
	padding: 0;
	cursor: default;
	outline: none;
	position: relative;
}
#telsco-tool .tdot.done {
	background: var(--blue);
	cursor: pointer;
}
#telsco-tool .tdot.done:hover {
	background: var(--blue-m);
	transform: scaleY(1.8);
}
#telsco-tool .tdot.done:focus-visible {
	outline: 2px solid var(--blue-m);
	outline-offset: 2px;
}
#telsco-tool .tdot.active {
	background: var(--blue-m);
	cursor: default;
}
#telsco-tool .tdot.done::after {
	content: attr(data-label);
	position: absolute;
	top: 12px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--tx);
	color: #fff;
	font-size: 11px;
	font-family: 'DM Sans', sans-serif;
	font-weight: 500;
	white-space: nowrap;
	padding: 3px 8px;
	border-radius: 4px;
	pointer-events: none;
	opacity: 0;
	transition: opacity .15s;
	z-index: 10;
}
#telsco-tool .tdot.done:hover::after {
	opacity: 1;
}

/* ── Step labels ── */
#telsco-tool .tdot-labels {
	display: flex;
	gap: 6px;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}
#telsco-tool .tdot-label {
	flex: 1;
	min-width: 30px;
	font-size: 10px;
	color: var(--tx3);
	text-align: center;
	line-height: 1.2;
	padding-top: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color .2s;
}
#telsco-tool .tdot-label.done {
	color: var(--blue);
	font-weight: 500;
	cursor: pointer;
}
#telsco-tool .tdot-label.done:hover {
	color: var(--blue-m);
	text-decoration: underline;
}
#telsco-tool .tdot-label.active {
	color: var(--blue-m);
	font-weight: 600;
}

/* ── Progress bar ── */
#telsco-tool .tpw   { margin-bottom: 2rem; }
#telsco-tool .tpm   { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
#telsco-tool .tpl   { font-size: 12px; font-weight: 500; color: var(--blue); }
#telsco-tool .tpc   { font-size: 12px; color: var(--tx3); }
#telsco-tool .tpt   { height: 3px; background: var(--bd); border-radius: 2px; overflow: hidden; }
#telsco-tool .tpf   { height: 100%; background: var(--blue); border-radius: 2px; transition: width .5s ease; width: 0%; }

/* ── Section header ── */
#telsco-tool .tsh  { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--bd); }
#telsco-tool .tsn  { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
#telsco-tool .tsnm { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--tx2); margin-bottom: 2px; }
#telsco-tool .tsd        { font-size: 13px; color: var(--tx3); }
#telsco-tool .tsd-dark   { color: var(--tx); }

/* ── Questions ── */
#telsco-tool .tqb { margin-bottom: 1.5rem; }
#telsco-tool .tql { font-size: 15px; font-weight: 500; color: var(--tx); margin-bottom: .6rem; line-height: 1.4; }
#telsco-tool .tqn { font-size: 12px; color: var(--tx3); margin-bottom: .6rem; font-style: italic; }
#telsco-tool .tqo { display: flex; flex-wrap: wrap; gap: 8px; }
#telsco-tool .tob {
	border: 1.5px solid var(--bd);
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 13px;
	font-family: 'DM Sans', sans-serif;
	font-weight: 400;
	color: var(--tx2);
	background: var(--wh);
	cursor: pointer;
	transition: all .15s;
	line-height: 1.3;
}
#telsco-tool .tob:hover        { border-color: var(--blue-m); color: var(--blue); background: var(--blue-l); }
#telsco-tool .tob.sel          { border-color: var(--blue); color: var(--blue); background: var(--blue-l); font-weight: 500; }
#telsco-tool .tob.sel.risk     { border-color: var(--amber); color: var(--amber); background: var(--amber-l); }
#telsco-tool .tob.sel.hirisk   { border-color: var(--red); color: var(--red); background: var(--red-l); }

/* ── Navigation ── */
#telsco-tool .tnav  { display: flex; gap: 10px; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--bd); }
#telsco-tool .tbnxt {
	background: var(--blue);
	color: #fff;
	border: none;
	border-radius: var(--r);
	padding: 11px 28px;
	font-size: 14px;
	font-weight: 500;
	font-family: 'DM Sans', sans-serif;
	cursor: pointer;
	transition: background .15s;
}
#telsco-tool .tbnxt:hover { background: var(--blue-m); }
#telsco-tool .tbbk {
	background: transparent;
	color: var(--tx2);
	border: 1.5px solid var(--bd);
	border-radius: var(--r);
	padding: 11px 20px;
	font-size: 14px;
	font-family: 'DM Sans', sans-serif;
	cursor: pointer;
}
#telsco-tool .tbbk:hover { border-color: var(--blue-m); color: var(--blue); }

/* ── Results hero ── */
#telsco-tool .trhero { text-align: center; padding: 2rem 1rem 1.5rem; border: 1.5px solid var(--bd); border-radius: var(--rl); margin-bottom: 1.5rem; background: var(--bg); }
#telsco-tool .trtl   { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem; }
#telsco-tool .trtn   { font-family: 'DM Serif Display', serif; font-size: 30px; margin-bottom: .4rem; line-height: 1.1; }
#telsco-tool .trts   { font-size: 14px; color: var(--tx2); max-width: 420px; margin: 0 auto; line-height: 1.5; }
#telsco-tool .trbw   { max-width: 320px; margin: 1rem auto 0; }
#telsco-tool .trbt   { height: 8px; background: var(--bd); border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
#telsco-tool .trbf   { height: 100%; border-radius: 4px; transition: width 1s ease; width: 0%; }
#telsco-tool .trbl   { display: flex; justify-content: space-between; font-size: 10px; color: var(--tx3); font-weight: 500; }

/* Risk tier colours */
#telsco-tool .tlow  .trtl, #telsco-tool .tlow  .trtn { color: var(--green); }
#telsco-tool .tlow  .trbf { background: #16A34A; }
#telsco-tool .tmod  .trtl, #telsco-tool .tmod  .trtn { color: var(--amber); }
#telsco-tool .tmod  .trbf { background: var(--amber); }
#telsco-tool .thigh .trtl, #telsco-tool .thigh .trtn { color: #C2410C; }
#telsco-tool .thigh .trbf { background: #EA580C; }
#telsco-tool .tcrit .trtl, #telsco-tool .tcrit .trtn { color: var(--red); }
#telsco-tool .tcrit .trbf { background: var(--red); }

/* ── Gap / strength cards ── */
#telsco-tool .trsl { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--tx2); margin-bottom: .75rem; }
#telsco-tool .tgl  { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.5rem; }
#telsco-tool .tgc  { border: 1.5px solid var(--bd); border-radius: var(--r); padding: 14px 16px; background: var(--wh); display: flex; gap: 12px; align-items: flex-start; }
#telsco-tool .tgc.high     { border-left: 3px solid var(--red); }
#telsco-tool .tgc.moderate { border-left: 3px solid var(--amber); }
#telsco-tool .tgbg { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; margin-top: 2px; }
#telsco-tool .tgbg.high     { background: var(--red-l);   color: var(--red); }
#telsco-tool .tgbg.moderate { background: var(--amber-l); color: var(--amber); }
#telsco-tool .tgt { font-size: 14px; font-weight: 500; color: var(--tx); margin-bottom: 3px; }
#telsco-tool .tgr { font-size: 13px; color: var(--tx2); line-height: 1.5; }
#telsco-tool .tstl { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1.5rem; }
#telsco-tool .tsti { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--tx2); }
#telsco-tool .tstd { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; flex-shrink: 0; }

/* ── CTA block ── */
#telsco-tool .tctab    { background: var(--blue); border-radius: var(--rl); padding: 1.75rem 2rem; margin-top: 1.5rem; }
#telsco-tool .tctab h3 { font-family: 'DM Serif Display', serif; font-size: 22px; font-weight: 400; margin-bottom: .4rem; line-height: 1.2; color: #fff; }
#telsco-tool .tctab p  { font-size: 14px; color: #fff; opacity: .88; margin-bottom: 1.25rem; max-width: 420px; line-height: 1.5; }
#telsco-tool .tcta     { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
#telsco-tool .tctap    { background: #fff; color: var(--blue); border: none; border-radius: var(--r); padding: 11px 24px; font-size: 14px; font-weight: 600; font-family: 'DM Sans', sans-serif; cursor: pointer; text-decoration: none; display: inline-block; }
#telsco-tool .tctars   { color: #fff; font-size: 13px; opacity: .8; background: none; border: none; font-family: 'DM Sans', sans-serif; text-decoration: underline; cursor: pointer; }
#telsco-tool .tfn      { font-size: 11px; color: var(--tx3); margin-top: 1rem; text-align: center; }
#telsco-tool .tfn a    { color: var(--blue); }
#telsco-tool .tdiv     { height: 1px; background: var(--bd); margin: 1.5rem 0; }

/* ── Contact gate form ── */
#telsco-tool .tgi-wrap { margin-bottom: 20px; }
#telsco-tool .tgi-lbl  { font-size: 13px; font-weight: 500; color: var(--tx); margin-bottom: 6px; display: block; }
#telsco-tool .tgi-opt  { font-size: 11px; color: var(--tx3); margin-left: 4px; font-weight: 400; }
#telsco-tool .tgi {
	width: 100%;
	border: 1.5px solid var(--bd);
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14px;
	font-family: 'DM Sans', sans-serif;
	color: var(--tx);
	background: var(--wh);
	outline: none;
	transition: border-color .15s;
	display: block;
	box-sizing: border-box;
}
#telsco-tool .tgi:focus  { border-color: var(--blue-m); }
#telsco-tool .tgi.err    { border-color: var(--red); }
#telsco-tool .tgerr      { font-size: 12px; color: var(--red); margin-top: 4px; display: none; }
#telsco-tool .tgerr.show { display: block; }
#telsco-tool .tgprivacy  { font-size: 11px; color: var(--tx3); margin-top: 12px; text-align: center; }
#telsco-tool .tgloading  { opacity: 0.6; pointer-events: none; }
#telsco-tool .tg-section { background: var(--wh); border: 1.5px solid var(--bd); border-radius: var(--rl); padding: 1.5rem; margin-bottom: 1.5rem; }
#telsco-tool .tg-divider { height: 1px; background: var(--bd); margin: 1.25rem 0; }

/* ── Responsive ── */
@media (max-width: 520px) {
	#telsco-tool .tt        { font-size: 22px; }
	#telsco-tool .tctab     { padding: 1.25rem; }
	#telsco-tool .tctab h3  { font-size: 18px; }
	#telsco-tool .tdot-label{ font-size: 9px; }
}
