/* TE E-book inline/footer form. Tweak the variables to restyle. */
.teeb-inline {
	--ti-text: #ffffff;
	--ti-muted: rgba(255, 255, 255, .95);
	--ti-accent: #ffffff;
	--ti-panel: rgba(10, 32, 40, .2); /* Footer panel: 0 = invisible, 1 = solid */
	--ti-shadow: 0 1px 3px rgba(0, 0, 0, .45);
	--ti-btn: #163d48;
	--ti-btn-hover: #0e2a32;
	--ti-btn-text: #ffffff;
	--ti-radius: 16px;

	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 28px;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	padding: 28px 32px;
	border-radius: var(--ti-radius);
	background: var(--ti-panel);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	color: var(--ti-text);
	text-shadow: var(--ti-shadow);
	font-family: inherit;
	text-align: left;
}
.teeb-inline--light {
	--ti-text: #1d2a2f;
	--ti-muted: #4a575c;
	--ti-accent: #a07a2c;
	--ti-panel: #ffffff;
	--ti-shadow: none;
}
.teeb-inline--nocover { grid-template-columns: minmax(0, 1fr); }
.teeb-inline--nopanel { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }

.teeb-inline__cover img {
	display: block; width: 96px; height: auto; border-radius: 3px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

.teeb-inline .teeb-inline__eyebrow {
	margin: 0 0 4px; padding: 0;
	font-size: 12px; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase;
	font-weight: 500; color: var(--ti-accent) !important;
}
.teeb-inline .teeb-inline__title {
	margin: 0 0 4px; padding: 0;
	font-size: 24px; line-height: 1.2; font-weight: 400;
	color: var(--ti-text) !important; /* Divi colours headings in modules */
}
.teeb-inline .teeb-inline__text {
	margin: 0 0 14px; padding: 0;
	font-size: 16px; line-height: 1.5; color: var(--ti-muted) !important;
}

.teeb-inline__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
	gap: 10px;
}
.teeb-inline .teeb-inline__input,
.teeb-inline .teeb-inline__button { text-shadow: none; }
.teeb-inline .teeb-inline__input {
	display: block; box-sizing: border-box; width: 100%;
	height: 50px; margin: 0; padding: 0 16px;
	border: 1px solid rgba(0, 0, 0, .14); border-radius: 10px;
	background: #fff; color: #222; box-shadow: none;
	font: inherit; font-size: 16px; /* 16px stops iOS zooming */
}
.teeb-inline .teeb-inline__input::placeholder { color: #767676; opacity: 1; }
.teeb-inline .teeb-inline__input[aria-invalid="true"] { border-color: #ffb4a8; box-shadow: 0 0 0 2px #ffb4a8; }

.teeb-inline .teeb-inline__button {
	height: 50px; margin: 0; padding: 0 26px;
	border: 0; border-radius: 10px;
	background: var(--ti-btn); color: var(--ti-btn-text);
	font: inherit; font-size: 16px; font-weight: 600; white-space: nowrap;
	cursor: pointer; transition: background .2s;
}
.teeb-inline .teeb-inline__button:hover { background: var(--ti-btn-hover); }
.teeb-inline .teeb-inline__button[disabled] { opacity: .7; cursor: progress; }

.teeb-inline__check {
	display: flex; gap: 10px; align-items: flex-start;
	margin: 12px 0 0; cursor: pointer;
	font-size: 14px; line-height: 1.45; color: var(--ti-muted);
}
.teeb-inline__check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ti-btn); cursor: pointer; }
.teeb-inline__check small { display: inline; margin-left: 4px; font-size: 13px; opacity: .85; }

.teeb-inline__ts:empty { display: none; }
.teeb-inline__ts { margin-top: 10px; }

.teeb-inline .teeb-inline__error {
	margin: 10px 0 0; padding: 10px 14px; border-radius: 8px;
	background: rgba(120, 20, 10, .7); color: #fff; font-size: 15px; line-height: 1.4;
}
.teeb-inline [hidden] { display: none !important; }

.teeb-inline__done { outline: none; color: var(--ti-muted); font-size: 16px; line-height: 1.55; }
.teeb-inline__done p { margin: 0 0 .6em; padding: 0; }
.teeb-inline__done .teeb-inline__done-title { font-size: 20px; color: var(--ti-text); }
.teeb-inline__done a { color: inherit; text-decoration: underline; }

.teeb-inline__sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.teeb-inline__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.teeb-inline :focus-visible { outline: 3px solid var(--ti-accent); outline-offset: 2px; }

@media (max-width: 767px) {
	.teeb-inline { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px 20px; text-align: center; }
	.teeb-inline__cover { justify-self: center; }
	.teeb-inline__cover img { width: 84px; }
	.teeb-inline__row { grid-template-columns: minmax(0, 1fr); }
	.teeb-inline__check { text-align: left; }
}
