/*
 * The front end: the visitor page, the crew's route, and the customer's own
 * page.
 *
 * The crew's route is the one that matters here, and it is 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.
 */

.tlc {
	--tlc-accent: #3f7d3f;
	max-width: 46rem;
	margin: 0 auto;
	line-height: 1.55;
}

.tlc h2 {
	margin: 0 0 .5rem;
}

.tlc-strapline {
	font-size: 1.1rem;
	color: #444;
	margin: .2rem 0;
}

.tlc-intro,
.tlc-blurb {
	color: #333;
}

.tlc-none {
	color: #666;
	font-style: italic;
}

.tlc-note {
	color: #555;
	font-size: .95rem;
	border-left: 3px solid #ddd;
	padding-left: .9rem;
}

.tlc-flash {
	padding: .75rem 1rem;
	border-radius: 4px;
	border-left: 4px solid var(--tlc-accent);
	background: #f2f7f2;
	margin: 1rem 0;
}

.tlc-flash-error {
	border-left-color: #b32d2e;
	background: #fcf0f1;
}

.tlc-flash-success {
	border-left-color: #007017;
	background: #f0f7f1;
}

/* ── the quote ───────────────────────────────────────────────────────── */

.tlc-quote {
	margin: 1.5rem 0;
}

.tlc-quoteform {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: flex-end;
	margin: 1rem 0;
}

.tlc-quoted {
	margin: 1rem 0;
	padding: 1rem 1.2rem;
	border: 2px solid var(--tlc-accent);
	border-radius: 6px;
	background: #f6faf6;
}

.tlc-price {
	margin: 0;
	font-size: 2.4rem;
	font-weight: 700;
	line-height: 1.1;
	color: var(--tlc-accent);
}

.tlc-price .tlc-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. */
.tlc-how {
	margin: .3rem 0 0;
	color: #444;
	font-size: .95rem;
}

.tlc-from,
.tlc-desc {
	color: #555;
	font-size: .95rem;
}

.tlc-offseason {
	color: #8a5700;
	font-size: .9rem;
}

/* ── the crew's route ────────────────────────────────────────────────── */

.tlc-progress {
	font-weight: 600;
	margin: .5rem 0 1rem;
}

.tlc-stop {
	border: 1px solid #ddd;
	border-left: 5px solid var(--tlc-accent);
	border-radius: 6px;
	padding: 1rem 1.1rem;
	margin: 0 0 1.25rem;
	background: #fff;
}

.tlc-stop-done {
	border-left-color: #9aa79a;
	opacity: .72;
}

.tlc-stop h3 {
	margin: 0 0 .4rem;
	font-size: 1.15rem;
}

.tlc-pos {
	display: inline-block;
	min-width: 1.7rem;
	height: 1.7rem;
	line-height: 1.7rem;
	text-align: center;
	border-radius: 50%;
	background: var(--tlc-accent);
	color: #fff;
	font-size: .95rem;
	margin-right: .4rem;
}

/* The line that stops somebody walking into a dog or spraying by a pond. */
.tlc-alerts {
	background: #fcf0f1;
	border: 1px solid #e6b3b4;
	border-radius: 4px;
	padding: .6rem .8rem;
	margin: .5rem 0;
}

.tlc-access {
	font-size: 1.05rem;
}

.tlc-crewnote,
.tlc-size {
	color: #555;
	font-size: .95rem;
}

.tlc-phone a,
.tlc-office a {
	font-size: 1.15rem;
	font-weight: 600;
}

.tlc-started {
	font-weight: 600;
}

.tlc-done {
	color: #3d5c3d;
}

.tlc-posted {
	background: #fcf9e8;
	border: 2px solid #b26200;
	border-radius: 6px;
	padding: .8rem 1rem;
	margin: 1rem 0;
}

/* ── forms ───────────────────────────────────────────────────────────── */

.tlc-button {
	display: block;
	width: 100%;
	padding: .9rem 1rem;
	font-size: 1.1rem;
	font-weight: 600;
	color: #fff;
	background: var(--tlc-accent);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}

.tlc-button:hover,
.tlc-button:focus {
	filter: brightness(1.08);
}

.tlc-button-quiet {
	background: #6b6b6b;
	margin-top: .6rem;
}

.tlc-field {
	display: block;
	margin: .75rem 0;
	flex: 1 1 12rem;
}

.tlc-field span {
	display: block;
	font-weight: 600;
	margin-bottom: .2rem;
}

.tlc-field input,
.tlc-field select,
.tlc-field textarea {
	width: 100%;
	padding: .6rem .7rem;
	font-size: 1rem;
	border: 1px solid #bbb;
	border-radius: 4px;
	box-sizing: border-box;
}

.tlc-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. */
.tlc-hp {
	position: absolute;
	left: -9999px;
	height: 1px;
	overflow: hidden;
}

/* ── estimates, invoices, the customer's page ────────────────────────── */

.tlc-lines {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
}

.tlc-lines td {
	padding: .55rem .4rem;
	border-bottom: 1px solid #eee;
	vertical-align: top;
}

.tlc-amount {
	text-align: right;
	white-space: nowrap;
}

.tlc-total td {
	font-weight: 700;
	border-top: 2px solid #333;
	border-bottom: 0;
	font-size: 1.1rem;
}

.tlc-linedesc,
.tlc-recurring {
	color: #555;
	font-size: .92rem;
}

.tlc-ref,
.tlc-expires {
	color: #555;
}

.tlc-accepted {
	color: #005c12;
	font-weight: 600;
}

.tlc-declined,
.tlc-expired {
	color: #8a5700;
}

.tlc-owed {
	font-weight: 700;
}

.tlc-list {
	list-style: none;
	margin: .5rem 0 1rem;
	padding: 0;
}

.tlc-list li {
	padding: .45rem 0;
	border-bottom: 1px solid #eee;
}

.tlc-crewlist {
	list-style: none;
	padding: 0;
}

.tlc-swatch {
	display: inline-block;
	width: .9rem;
	height: .9rem;
	border-radius: 2px;
	vertical-align: middle;
}

.tlc-licence p {
	font-size: .95rem;
	color: #555;
}

@media screen and (max-width: 600px) {
	.tlc {
		padding: 0 .75rem;
	}

	.tlc-quoteform {
		flex-direction: column;
		align-items: stretch;
	}

	.tlc-price {
		font-size: 2rem;
	}
}
