/*
 * The front end: the booking page, the customer's portal and the documents
 * page.
 *
 * (The team's day screen keeps the route styles below.) Designed for a
 * phone held in one hand beside a trailer. Big targets, high contrast, one
 * column, and the two things that cost a wasted journey - the gate code and
 * the dog - set in bold where they cannot be scrolled past.
 */

.tcn {
	--tcn-accent: #3f7d3f;
	max-width: 46rem;
	margin: 0 auto;
	line-height: 1.55;
}

.tcn h2 {
	margin: 0 0 .5rem;
}

.tcn-strapline {
	font-size: 1.1rem;
	color: #444;
	margin: .2rem 0;
}

.tcn-intro,
.tcn-blurb {
	color: #333;
}

.tcn-none {
	color: #666;
	font-style: italic;
}

.tcn-note {
	color: #555;
	font-size: .95rem;
	border-left: 3px solid #ddd;
	padding-left: .9rem;
}

.tcn-flash {
	padding: .75rem 1rem;
	border-radius: 4px;
	border-left: 4px solid var(--tcn-accent);
	background: #f2f7f2;
	margin: 1rem 0;
}

.tcn-flash-error {
	border-left-color: #b32d2e;
	background: #fcf0f1;
}

.tcn-flash-success {
	border-left-color: #007017;
	background: #f0f7f1;
}

/* ── the quote ───────────────────────────────────────────────────────── */

.tcn-quote {
	margin: 1.5rem 0;
}

.tcn-quoteform {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: flex-end;
	margin: 1rem 0;
}

.tcn-quoted {
	margin: 1rem 0;
	padding: 1rem 1.2rem;
	border: 2px solid var(--tcn-accent);
	border-radius: 6px;
	background: #f6faf6;
}

.tcn-price {
	margin: 0;
	font-size: 2.4rem;
	font-weight: 700;
	line-height: 1.1;
	color: var(--tcn-accent);
}

.tcn-price .tcn-per {
	font-size: 1rem;
	font-weight: 400;
	color: #444;
}

/* How the number was arrived at. Shown because a price a customer cannot
   follow is a price they argue with on the doorstep. */
.tcn-how {
	margin: .3rem 0 0;
	color: #444;
	font-size: .95rem;
}

.tcn-from,
.tcn-desc {
	color: #555;
	font-size: .95rem;
}

.tcn-offseason {
	color: #8a5700;
	font-size: .9rem;
}

/* ── the crew's route ────────────────────────────────────────────────── */

.tcn-progress {
	font-weight: 600;
	margin: .5rem 0 1rem;
}

.tcn-stop {
	border: 1px solid #ddd;
	border-left: 5px solid var(--tcn-accent);
	border-radius: 6px;
	padding: 1rem 1.1rem;
	margin: 0 0 1.25rem;
	background: #fff;
}

.tcn-stop-done {
	border-left-color: #9aa79a;
	opacity: .72;
}

.tcn-stop h3 {
	margin: 0 0 .4rem;
	font-size: 1.15rem;
}

.tcn-pos {
	display: inline-block;
	min-width: 1.7rem;
	height: 1.7rem;
	line-height: 1.7rem;
	text-align: center;
	border-radius: 50%;
	background: var(--tcn-accent);
	color: #fff;
	font-size: .95rem;
	margin-right: .4rem;
}

/* The line that stops somebody walking into a dog or spraying by a pond. */
.tcn-alerts {
	background: #fcf0f1;
	border: 1px solid #e6b3b4;
	border-radius: 4px;
	padding: .6rem .8rem;
	margin: .5rem 0;
}

.tcn-access {
	font-size: 1.05rem;
}

.tcn-crewnote,
.tcn-size {
	color: #555;
	font-size: .95rem;
}

.tcn-phone a,
.tcn-office a {
	font-size: 1.15rem;
	font-weight: 600;
}

.tcn-started {
	font-weight: 600;
}

.tcn-done {
	color: #3d5c3d;
}

.tcn-posted {
	background: #fcf9e8;
	border: 2px solid #b26200;
	border-radius: 6px;
	padding: .8rem 1rem;
	margin: 1rem 0;
}

/* ── forms ───────────────────────────────────────────────────────────── */

.tcn-button {
	display: block;
	width: 100%;
	padding: .9rem 1rem;
	font-size: 1.1rem;
	font-weight: 600;
	color: #fff;
	background: var(--tcn-accent);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}

.tcn-button:hover,
.tcn-button:focus {
	filter: brightness(1.08);
}

.tcn-button-quiet {
	background: #6b6b6b;
	margin-top: .6rem;
}

.tcn-field {
	display: block;
	margin: .75rem 0;
	flex: 1 1 12rem;
}

.tcn-field span {
	display: block;
	font-weight: 600;
	margin-bottom: .2rem;
}

.tcn-field input,
.tcn-field select,
.tcn-field textarea {
	width: 100%;
	padding: .6rem .7rem;
	font-size: 1rem;
	border: 1px solid #bbb;
	border-radius: 4px;
	box-sizing: border-box;
}

.tcn-daynav {
	margin: 1.5rem 0;
	text-align: center;
}

/* The honeypot. Hidden from people, left in the DOM for the machines - a
   CAPTCHA in front of somebody wanting their grass cut is a lost customer. */
.tcn-hp {
	position: absolute;
	left: -9999px;
	height: 1px;
	overflow: hidden;
}

/* ── estimates, invoices, the customer's page ────────────────────────── */

.tcn-lines {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
}

.tcn-lines td {
	padding: .55rem .4rem;
	border-bottom: 1px solid #eee;
	vertical-align: top;
}

.tcn-amount {
	text-align: right;
	white-space: nowrap;
}

.tcn-total td {
	font-weight: 700;
	border-top: 2px solid #333;
	border-bottom: 0;
	font-size: 1.1rem;
}

.tcn-linedesc,
.tcn-recurring {
	color: #555;
	font-size: .92rem;
}

.tcn-ref,
.tcn-expires {
	color: #555;
}

.tcn-accepted {
	color: #005c12;
	font-weight: 600;
}

.tcn-declined,
.tcn-expired {
	color: #8a5700;
}

.tcn-owed {
	font-weight: 700;
}

.tcn-list {
	list-style: none;
	margin: .5rem 0 1rem;
	padding: 0;
}

.tcn-list li {
	padding: .45rem 0;
	border-bottom: 1px solid #eee;
}

.tcn-crewlist {
	list-style: none;
	padding: 0;
}

.tcn-swatch {
	display: inline-block;
	width: .9rem;
	height: .9rem;
	border-radius: 2px;
	vertical-align: middle;
}

.tcn-licence p {
	font-size: .95rem;
	color: #555;
}

@media screen and (max-width: 600px) {
	.tcn {
		padding: 0 .75rem;
	}

	.tcn-quoteform {
		flex-direction: column;
		align-items: stretch;
	}

	.tcn-price {
		font-size: 2rem;
	}
}

/* ── TEG-CLEANING: booking and portal ─────────────────────────────── */

.tcn-book fieldset {
	border: 1px solid #ddd;
	border-radius: 6px;
	margin: 0 0 1rem;
	padding: .75rem 1rem;
}
.tcn-book label {
	display: inline-block;
	margin: 0 1rem .5rem 0;
}
.tcn-book .tcn-wide,
.tcn-book .tcn-wide textarea {
	display: block;
	width: 100%;
}
.tcn-choice {
	display: inline-block;
	margin: .25rem 1rem .25rem 0;
}
.tcn-hp {
	position: absolute;
	left: -9999px;
}
.tcn-quote-box {
	background: #f4f8fb;
	border-left: 4px solid var(--tcn-accent, #2f7fb5);
	padding: .5rem 1rem;
	margin: 0 0 1rem;
	font-size: 1.1em;
}
.tcn-quote-box p {
	margin: .25rem 0;
}
.tcn-inline {
	display: inline-block;
	margin: .25rem .5rem .25rem 0;
}
.tcn-list li {
	margin-bottom: .75rem;
}
.tcn-rooms {
	margin: .25rem 0 0 1rem;
	font-size: .9em;
}
.tcn-muted {
	color: #666;
}
.tcn-flash,
.tcn-warn {
	background: #fff8e5;
	border-left: 4px solid #dba617;
	padding: .5rem 1rem;
}
@media (max-width: 600px) {
	.tcn-book label {
		display: block;
	}
}
