/* TMSA Free Website Special: form, legal pages and banner.
   Palette follows titaniummediasa.co.za: TMSA blue, ink, white, with the
   red, gold and green of the TMSA logo swoosh used only as a thin stripe.
   Fonts are inherited from the theme, so no external font is loaded. */

.tmsa-ws,
.tmsa-ws-banner {
	--tmsa-blue: #0047ab;
	--tmsa-blue-dark: #00337c;
	--tmsa-ink: #0f172a;
	--tmsa-text: #334155;
	--tmsa-muted: #5b6577;
	--tmsa-line: #cbd5e1;
	--tmsa-mist: #eef3fb;
	--tmsa-paper: #ffffff;
	--tmsa-red: #de3831;
	--tmsa-green: #007a4d;
	--tmsa-gold: #ffb612;
	--tmsa-error: #b42318;
	--tmsa-ok: #0b6b3a;
	box-sizing: border-box;
}

.tmsa-ws *,
.tmsa-ws *::before,
.tmsa-ws *::after,
.tmsa-ws-banner *,
.tmsa-ws-banner *::before,
.tmsa-ws-banner *::after {
	box-sizing: inherit;
}

/* ---------- Form and legal pages ---------- */

.tmsa-ws {
	max-width: 820px;
	margin: 0 auto;
	text-align: left;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.55;
	color: var(--tmsa-text);
}

.tmsa-ws p {
	text-align: justify;
	text-justify: inter-character;
	hyphens: auto;
	hyphenate-limit-chars: 6 3 3;
	margin: 0 0 10px;
}

.tmsa-ws a {
	color: var(--tmsa-blue);
	text-underline-offset: 2px;
}

.tmsa-ws__intro {
	padding: 4px 0;
	margin: 0 0 22px;
}

.tmsa-ws__title {
	font-family: inherit;
	font-weight: 800;
	font-size: clamp(26px, 4vw, 36px);
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--tmsa-ink);
	margin: 0 0 10px;
	text-align: center;
}

/* Short blue bar centred under the form, terms and privacy headings. */
.tmsa-ws__title::after {
	content: "";
	display: block;
	width: 60px;
	height: 4px;
	margin: 12px auto 0;
	background: var(--tmsa-blue);
}

.tmsa-ws__lede {
	font-size: 18px;
	color: var(--tmsa-text);
	max-width: 66ch;
}

.tmsa-ws__intro .tmsa-ws__lede {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.tmsa-ws__meta,
.tmsa-ws__required-note {
	font-size: 14px;
	color: var(--tmsa-muted);
}

.tmsa-ws__req {
	color: var(--tmsa-error);
	font-weight: 600;
}

.tmsa-ws__section {
	border: 0;
	border-top: 1px solid var(--tmsa-line);
	margin: 0;
	padding: 18px 0 14px;
	min-width: 0;
}

.tmsa-ws__section legend {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0;
	margin: 0 0 8px;
	font-family: inherit;
	font-weight: 700;
	font-size: 20px;
	color: var(--tmsa-ink);
	float: left;
	width: 100%;
}

.tmsa-ws__section legend + * {
	clear: both;
}

.tmsa-ws__step {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--tmsa-blue);
	color: var(--tmsa-paper);
	font-size: 15px;
	font-weight: 700;
	flex: none;
}

.tmsa-ws__lead {
	color: var(--tmsa-muted);
	max-width: 70ch;
}

.tmsa-ws__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 18px;
	clear: both;
}

.tmsa-ws__field {
	min-width: 0;
}

.tmsa-ws__field--wide {
	grid-column: 1 / -1;
}

.tmsa-ws__field > label {
	display: block;
	font-weight: 600;
	font-size: 15px;
	color: var(--tmsa-ink);
	margin: 0 0 5px;
}

.tmsa-ws input[type="text"],
.tmsa-ws input[type="email"],
.tmsa-ws input[type="tel"],
.tmsa-ws input[type="url"],
.tmsa-ws select,
.tmsa-ws textarea {
	display: block;
	width: 100%;
	font: inherit;
	font-size: 16px;
	color: var(--tmsa-ink);
	background: var(--tmsa-paper);
	border: 1px solid #94a3b8;
	border-radius: 6px;
	padding: 10px 12px;
	margin: 0;
	box-shadow: none;
	min-height: 46px;
}

.tmsa-ws textarea {
	resize: vertical;
	min-height: 70px;
}

.tmsa-ws input[type="file"] {
	display: block;
	width: 100%;
	font: inherit;
	font-size: 15px;
	padding: 10px;
	border: 1px dashed #94a3b8;
	border-radius: 6px;
	background: var(--tmsa-mist);
}

.tmsa-ws input:focus-visible,
.tmsa-ws select:focus-visible,
.tmsa-ws textarea:focus-visible,
.tmsa-ws button:focus-visible,
.tmsa-ws a:focus-visible,
.tmsa-ws summary:focus-visible,
.tmsa-ws__plan:focus-within {
	outline: 3px solid var(--tmsa-gold);
	outline-offset: 2px;
}

.tmsa-ws__help {
	font-size: 14px;
	color: var(--tmsa-muted);
	margin: 5px 0 0;
}

.tmsa-ws__note {
	font-size: 14px;
	font-weight: 600;
	color: var(--tmsa-ink);
	margin: 6px 0 0;
}

.tmsa-ws__plans + .tmsa-ws__help {
	margin-top: 8px;
}

.tmsa-ws__error {
	font-size: 14px;
	font-weight: 600;
	color: var(--tmsa-error);
	margin: 5px 0 0;
}

.tmsa-ws__field.has-error input,
.tmsa-ws__field.has-error select,
.tmsa-ws__field.has-error textarea {
	border-color: var(--tmsa-error);
	border-width: 2px;
}

/* Plan cards */

.tmsa-ws__plans {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.tmsa-ws__plan {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 14px 12px;
	border: 2px solid var(--tmsa-line);
	border-radius: 8px;
	background: var(--tmsa-paper);
	cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s;
}

.tmsa-ws__plan input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.tmsa-ws__plan:hover {
	border-color: var(--tmsa-blue);
}

.tmsa-ws__plan:has(input:checked),
.tmsa-ws__plan.is-checked {
	border-color: var(--tmsa-blue);
	background: var(--tmsa-mist);
	box-shadow: inset 0 4px 0 var(--tmsa-blue);
}

.tmsa-ws__plans--single {
	grid-template-columns: minmax(0, 1fr);
}

.tmsa-ws__plan--single {
	display: block;
	cursor: default;
	font-size: 16px;
	line-height: 1.5;
	color: var(--tmsa-text);
	border-color: var(--tmsa-blue);
	background: var(--tmsa-mist);
	box-shadow: inset 0 4px 0 var(--tmsa-blue);
}

.tmsa-ws__plan--single .tmsa-ws__plan-name,
.tmsa-ws__plan--single .tmsa-ws__plan-amount,
.tmsa-ws__plan--single .tmsa-ws__plan-site {
	display: inline;
	font-size: inherit;
}

.tmsa-ws__plan--single .tmsa-ws__plan-amount {
	font-size: 22px;
}

.tmsa-ws__plan-name {
	font-weight: 700;
	font-size: 17px;
	color: var(--tmsa-ink);
}

.tmsa-ws__plan-price {
	font-size: 14px;
	color: var(--tmsa-muted);
}

.tmsa-ws__plan-amount {
	font-weight: 800;
	font-size: 28px;
	line-height: 1.1;
	color: var(--tmsa-blue);
	display: block;
}

.tmsa-ws__plan-site {
	font-weight: 600;
	font-size: 14px;
	color: var(--tmsa-ink);
	line-height: 1.3;
}

.tmsa-ws__plan-features {
	font-size: 13px;
	color: var(--tmsa-muted);
	line-height: 1.35;
}

/* Colour pickers */

.tmsa-ws__colour {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tmsa-ws input[type="color"] {
	width: 58px;
	height: 46px;
	padding: 3px;
	border: 1px solid #94a3b8;
	border-radius: 6px;
	background: var(--tmsa-paper);
	cursor: pointer;
}

.tmsa-ws__colour output {
	font-variant-numeric: tabular-nums;
	color: var(--tmsa-ink);
}

/* Checkboxes */

.tmsa-ws__check {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 10px;
	align-items: start;
	font-size: 15px;
	color: var(--tmsa-ink);
	cursor: pointer;
}

.tmsa-ws__check input {
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--tmsa-blue);
}

.tmsa-ws__field > label.tmsa-ws__check {
	display: grid;
	font-weight: 400;
	font-size: 15px;
	margin: 0;
}

.tmsa-ws__check span {
	text-align: justify;
	hyphens: auto;
}

/* Terms and privacy inside the form */

.tmsa-ws__terms {
	margin: 0 0 12px;
	padding: 12px 14px 12px 32px;
	background: var(--tmsa-mist);
	border-radius: 6px;
	font-size: 14px;
	color: var(--tmsa-text);
}

.tmsa-ws__terms li {
	margin: 0 0 5px;
	text-align: justify;
	hyphens: auto;
}

.tmsa-ws__terms li:last-child {
	margin-bottom: 0;
}

.tmsa-ws__privacy {
	margin: 0 0 14px;
	border: 1px solid var(--tmsa-line);
	border-radius: 6px;
	background: var(--tmsa-paper);
}

.tmsa-ws__privacy summary {
	cursor: pointer;
	padding: 10px 14px;
	font-weight: 600;
	color: var(--tmsa-blue);
}

.tmsa-ws__privacy[open] summary {
	border-bottom: 1px solid var(--tmsa-line);
}

.tmsa-ws__privacy .tmsa-ws-legal {
	max-height: 340px;
	overflow-y: auto;
	padding: 6px 16px 10px;
	font-size: 14px;
}

/* Legal pages */

.tmsa-ws-legal h3 {
	font-family: inherit;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.25;
	color: var(--tmsa-ink);
	margin: 22px 0 6px;
	text-align: left;
}

.tmsa-ws-legal.is-compact h3 {
	font-size: 15px;
	margin: 14px 0 4px;
}

.tmsa-ws-legal ul {
	margin: 0 0 10px;
	padding-left: 22px;
}

.tmsa-ws-legal li {
	margin: 0 0 5px;
	text-align: justify;
	hyphens: auto;
}

.tmsa-ws-legal__table {
	overflow-x: auto;
	margin: 6px 0 14px;
}

.tmsa-ws-legal table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.tmsa-ws-legal th,
.tmsa-ws-legal td {
	text-align: left;
	padding: 9px 12px;
	border-bottom: 1px solid var(--tmsa-line);
	vertical-align: top;
}

.tmsa-ws-legal thead th {
	background: var(--tmsa-blue);
	color: var(--tmsa-paper);
	font-weight: 600;
	border-bottom: 0;
}

.tmsa-ws-legal tbody th {
	font-weight: 700;
	color: var(--tmsa-ink);
}

/* Submit */

.tmsa-ws__actions {
	border-top: 1px solid var(--tmsa-line);
	padding-top: 18px;
}

.tmsa-ws__button {
	display: inline-block;
	font-family: inherit;
	font-weight: 700;
	font-size: 18px;
	color: var(--tmsa-paper);
	background: var(--tmsa-blue);
	border: 0;
	border-radius: 8px;
	padding: 14px 28px;
	cursor: pointer;
	transition: background-color 0.15s;
}

.tmsa-ws__button:hover {
	background: var(--tmsa-blue-dark);
}

.tmsa-ws__button[disabled] {
	opacity: 0.7;
	cursor: progress;
}

.tmsa-ws__small {
	font-size: 14px;
	color: var(--tmsa-muted);
	margin-top: 12px;
}

/* Notices */

.tmsa-ws__notice {
	border-radius: 8px;
	padding: 20px 22px;
	margin: 0 0 18px;
	border-left: 6px solid;
	line-height: 1.5;
}

.tmsa-ws__notice h3 {
	font-family: inherit;
	font-size: 20px;
	margin: 0 0 12px;
	color: inherit;
}

.tmsa-ws__notice p {
	margin: 0 0 12px;
}

.tmsa-ws__notice > :last-child {
	margin-bottom: 0;
}

.tmsa-ws__notice--error {
	background: #fef3f2;
	border-color: var(--tmsa-error);
	color: #7a271a;
}

.tmsa-ws__notice--error ul {
	margin: 6px 0 0;
	padding-left: 20px;
}

.tmsa-ws__notice--error a {
	color: #7a271a;
}

.tmsa-ws__notice--success {
	background: #eef3fb;
	border-color: #0047ab;
	color: #0f172a;
}

.tmsa-ws__notice--success h3 {
	color: #0047ab;
	text-transform: none;
}

.tmsa-ws__notice--success a {
	color: #0047ab;
	text-decoration: underline;
}

/* Honeypot: hidden from people, visible to bots. */
.tmsa-ws__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Banner ---------- */

.tmsa-ws-banner {
	position: relative;
	container-type: inline-size;
	margin: 0;
	background: var(--tmsa-blue);
	color: var(--tmsa-paper);
	border-radius: 10px;
	overflow: hidden;
	font-family: inherit;
	text-align: left;
}

.tmsa-ws-banner__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
	padding: 24px 20px 24px 30px;
}

@container (min-width: 760px) {
	.tmsa-ws-banner__inner {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		gap: 24px 36px;
		align-items: center;
		padding: 32px 36px 28px 46px;
	}

	.tmsa-ws-banner__terms {
		grid-column: 1 / -1;
	}
}

/* The logo swoosh, echoed as a stripe down the left edge. */
.tmsa-ws-banner::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 10px;
	background: linear-gradient(var(--tmsa-red) 0 33.33%, var(--tmsa-gold) 33.33% 66.66%, var(--tmsa-green) 66.66% 100%);
}

.tmsa-ws-banner__title {
	font-family: inherit;
	font-weight: 800;
	font-size: clamp(26px, 3.4vw, 40px);
	line-height: 1.08;
	letter-spacing: -0.01em;
	color: var(--tmsa-paper);
	margin: 0 0 10px;
	text-align: left;
}

.tmsa-ws-banner__text {
	font-size: 17px;
	line-height: 1.5;
	margin: 0 0 18px;
	max-width: 48ch;
	text-align: justify;
	hyphens: auto;
	color: #e6eefc;
}

.tmsa-ws-banner__cta {
	display: inline-block;
	font-family: inherit;
	font-weight: 700;
	font-size: 17px;
	color: var(--tmsa-ink) !important;
	background: var(--tmsa-gold);
	text-decoration: none !important;
	border-radius: 8px;
	padding: 13px 22px;
	transition: background-color 0.15s;
}

.tmsa-ws-banner__cta:hover {
	background: #ffc947;
}

.tmsa-ws-banner__cta:focus-visible,
.tmsa-ws-banner__main:focus-visible,
.tmsa-ws-banner__others a:focus-visible,
.tmsa-ws-banner__terms a:focus-visible {
	outline: 3px solid var(--tmsa-paper);
	outline-offset: 3px;
}

.tmsa-ws-banner__terms {
	font-size: 13px;
	color: #c7d6f2;
	margin: 0;
}

.tmsa-ws-banner__terms a {
	color: #ffffff;
}

.tmsa-ws-banner__side {
	min-width: 0;
}

.tmsa-ws-banner__main {
	display: block;
	padding: 18px 20px;
	background: var(--tmsa-paper);
	border-radius: 8px;
	text-decoration: none !important;
	text-align: left;
	transition: transform 0.15s;
}

a.tmsa-ws-banner__main:hover {
	transform: translateY(-2px);
}

.tmsa-ws-banner__name {
	display: block;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--tmsa-muted);
	margin-bottom: 4px;
}

.tmsa-ws-banner__price {
	display: block;
	white-space: nowrap;
	font-weight: 800;
	font-size: 46px;
	line-height: 1;
	color: var(--tmsa-blue);
}

.tmsa-ws-banner__price::after {
	content: " /month";
	font-weight: 500;
	font-size: 15px;
	color: var(--tmsa-muted);
}

.tmsa-ws-banner__site {
	display: block;
	margin-top: 8px;
	font-weight: 600;
	font-size: 17px;
	line-height: 1.3;
	color: var(--tmsa-ink);
}

.tmsa-ws-banner__badge {
	display: inline-block;
	margin-top: 12px;
	padding: 5px 12px;
	background: var(--tmsa-gold);
	color: var(--tmsa-ink);
	font-weight: 700;
	font-size: 13px;
	line-height: 1.3;
	border-radius: 999px;
}

.tmsa-ws-banner__others-label {
	margin: 16px 0 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #c7d6f2;
	text-align: left;
}

.tmsa-ws-banner__others {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.tmsa-ws-banner__others li {
	margin: 0;
	padding: 0;
}

.tmsa-ws-banner__others a {
	display: block;
	height: 100%;
	padding: 9px 10px;
	background: rgba(255, 255, 255, 0.14);
	border-radius: 6px;
	text-decoration: none !important;
	text-align: left;
	transition: background-color 0.15s;
}

.tmsa-ws-banner__others a:hover {
	background: rgba(255, 255, 255, 0.24);
}

.tmsa-ws-banner__other-name {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #e6eefc;
}

.tmsa-ws-banner__other-price {
	display: block;
	font-weight: 800;
	font-size: 18px;
	line-height: 1.2;
	color: var(--tmsa-paper);
}

.tmsa-ws-banner__other-price::after {
	content: " /month";
	font-weight: 500;
	font-size: 11px;
	color: #c7d6f2;
}

/* ---------- Small screens ---------- */

@container (max-width: 460px) {
	.tmsa-ws-banner__price {
		font-size: 40px;
	}

	.tmsa-ws-banner__other-price::after {
		display: block;
	}
}

@container (max-width: 380px) {
	.tmsa-ws-banner__cta {
		display: block;
		text-align: center;
	}
}

@media (max-width: 760px) {
	.tmsa-ws__plans {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.tmsa-ws__grid {
		grid-template-columns: 1fr;
	}

	.tmsa-ws__button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tmsa-ws *,
	.tmsa-ws-banner * {
		transition: none !important;
	}
}
