/**
 * Stijl van het proefles-formulier en de landingspagina.
 *
 * De kleuren, het font en de hoekradius komen uit de CSS-variabelen van het
 * The7-thema, met de huidige waarden van creativesportsgroup.nl als fallback.
 * Wijzigt het thema, dan beweegt het formulier mee.
 */

.csg-proefles,
.csg-landing {
	--csg-accent: var( --the7-accent-color, #f3944b );
	--csg-accent-hover: var( --the7-accent-hover-color, #e07f34 );
	--csg-text: var( --the7-base-color, #154464 );
	--csg-bg: var( --the7-body-bg-color, #f7f7f7 );
	--csg-font: var( --the7-base-font-family, "Roboto", Helvetica, Arial, Verdana, sans-serif );
	--csg-radius: var( --the7-base-border-radius, 0 );
	--csg-border: #d8dde2;
	--csg-error: #c0392b;
	--csg-max: var( --the7-box-width, 1280px );

	box-sizing: border-box;
	color: var( --csg-text );
	font-family: var( --csg-font );
}

.csg-proefles *,
.csg-proefles *::before,
.csg-proefles *::after,
.csg-landing *,
.csg-landing *::before,
.csg-landing *::after {
	box-sizing: inherit;
}

/* --- Formulier ---------------------------------------------------------- */

.csg-proefles__form {
	background: #fff;
	border: 1px solid var( --csg-border );
	border-radius: var( --csg-radius );
	padding: 28px;
}

.csg-proefles__grid {
	display: grid;
	gap: 0 20px;
	grid-template-columns: 1fr;
}

@media ( min-width: 600px ) {
	.csg-proefles__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.csg-field {
	display: flex;
	flex-direction: column;
	margin: 0 0 18px;
}

.csg-field > label {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 6px;
}

.csg-required {
	color: var( --csg-accent );
}

.csg-field input[type="text"],
.csg-field input[type="email"],
.csg-field input[type="tel"],
.csg-field input[type="date"],
.csg-field select,
.csg-field textarea {
	background: #fff;
	border: 1px solid var( --csg-border );
	border-radius: var( --csg-radius );
	color: var( --csg-text );
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	padding: 11px 12px;
	width: 100%;
}

.csg-field input:focus,
.csg-field select:focus,
.csg-field textarea:focus {
	border-color: var( --csg-accent );
	box-shadow: 0 0 0 2px rgba( 243, 148, 75, 0.25 );
	outline: none;
}

.csg-field__hint {
	color: #6b7c8a;
	font-size: 13px;
	margin-top: 5px;
}

.csg-field__error {
	color: var( --csg-error );
	font-size: 13px;
	font-weight: 700;
	margin-top: 5px;
}

.csg-field__error:empty {
	display: none;
}

.csg-field--invalid input,
.csg-field--invalid select,
.csg-field--invalid textarea {
	border-color: var( --csg-error );
}

/* Toestemming. */

.csg-field--consent > label {
	align-items: flex-start;
	display: flex;
	font-weight: 400;
	gap: 10px;
	line-height: 1.5;
}

.csg-field--consent input[type="checkbox"] {
	flex: 0 0 auto;
	height: 18px;
	margin-top: 2px;
	width: 18px;
}

.csg-field--consent a {
	color: var( --csg-accent );
}

/* Oudervelden. */

.csg-proefles__parent {
	border: 1px solid var( --csg-border );
	border-radius: var( --csg-radius );
	margin: 0 0 18px;
	padding: 18px 20px 4px;
}

.csg-proefles__parent legend {
	font-size: 15px;
	font-weight: 700;
	padding: 0 8px;
}

.csg-fieldset__hint {
	color: #6b7c8a;
	font-size: 13px;
	margin: 0 0 14px;
}

/* Honeypot: onzichtbaar voor bezoekers, wel aanwezig voor bots. */

.csg-proefles__honeypot {
	height: 1px;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

/* Knop en status. */

.csg-proefles__actions {
	margin: 6px 0 0;
}

.csg-proefles__submit {
	background: var( --csg-accent );
	border: 0;
	border-radius: var( --csg-radius );
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 14px 30px;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s ease;
}

.csg-proefles__submit:hover,
.csg-proefles__submit:focus {
	background: var( --csg-accent-hover );
	color: #fff;
}

.csg-proefles__submit[disabled] {
	cursor: progress;
	opacity: 0.6;
}

.csg-proefles__status {
	margin: 12px 0 0;
	min-height: 1em;
}

.csg-proefles__status--error {
	color: var( --csg-error );
	font-weight: 700;
}

.csg-proefles__legal {
	color: #8a97a3;
	font-size: 12px;
	line-height: 1.5;
	margin: 16px 0 0;
}

.csg-proefles__legal a {
	color: inherit;
	text-decoration: underline;
}

/* Berichten. */

.csg-proefles__message {
	border-left: 4px solid var( --csg-accent );
	border-radius: var( --csg-radius );
	font-size: 17px;
	line-height: 1.6;
	margin: 0 0 24px;
	padding: 20px 24px;
}

.csg-proefles__message--success {
	background: #eef7ee;
	border-left-color: #4e8221;
}

.csg-proefles__message--error {
	background: #fdeeec;
	border-left-color: var( --csg-error );
}

.csg-proefles__message p:last-child {
	margin-bottom: 0;
}

.csg-proefles-notice {
	background: #fff8e5;
	border-left: 4px solid #f0b429;
	padding: 16px 20px;
}

/* --- Landingspagina ---------------------------------------------------- */

.csg-landing {
	background: var( --csg-bg );
}

.csg-landing__hero {
	background: var( --csg-text );
	color: #fff;
	padding: 60px 24px;
	text-align: center;
}

.csg-landing__hero--image {
	background-position: center;
	background-size: cover;
	position: relative;
}

.csg-landing__hero--image::before {
	background: rgba( 21, 68, 100, 0.68 );
	content: "";
	inset: 0;
	position: absolute;
}

.csg-landing__hero-inner {
	margin: 0 auto;
	max-width: 780px;
	position: relative;
}

.csg-landing__logo {
	background: #fff;
	display: inline-block;
	margin-bottom: 24px;
	max-height: 96px;
	max-width: 220px;
	padding: 10px;
	width: auto;
}

.csg-landing__title {
	color: #fff;
	font-size: 34px;
	line-height: 1.2;
	margin: 0 0 20px;
}

@media ( min-width: 850px ) {
	.csg-landing__title {
		font-size: 44px;
	}
}

.csg-landing__usps {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	justify-content: center;
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
}

.csg-landing__usps li {
	font-size: 16px;
	font-weight: 700;
	padding-left: 26px;
	position: relative;
}

.csg-landing__usps li::before {
	color: var( --csg-accent );
	content: "\2713";
	font-size: 18px;
	left: 0;
	position: absolute;
}

.csg-landing__body {
	display: grid;
	gap: 32px;
	margin: 0 auto;
	max-width: var( --csg-max );
	padding: 48px 24px;
}

@media ( min-width: 1024px ) {
	.csg-landing__body {
		grid-template-columns: minmax( 0, 2fr ) minmax( 0, 1fr );
	}
}

.csg-landing__intro {
	font-size: 17px;
	line-height: 1.7;
	margin-bottom: 32px;
}

.csg-landing__form-title {
	font-size: 26px;
	margin: 0 0 20px;
}

.csg-landing__card {
	background: #fff;
	border: 1px solid var( --csg-border );
	border-radius: var( --csg-radius );
	margin-bottom: 24px;
	padding: 24px;
}

.csg-landing__card h2 {
	font-size: 20px;
	margin: 0 0 14px;
}

.csg-landing__address {
	line-height: 1.6;
	margin: 0 0 14px;
}

.csg-landing__contact {
	list-style: none;
	margin: 0;
	padding: 0;
}

.csg-landing__contact li {
	border-top: 1px solid var( --csg-border );
	padding: 10px 0;
}

.csg-landing__contact a {
	color: var( --csg-accent );
	text-decoration: none;
}

.csg-landing__contact a:hover {
	text-decoration: underline;
}

.csg-landing__reviews blockquote {
	border-left: 3px solid var( --csg-accent );
	margin: 0 0 18px;
	padding: 0 0 0 16px;
}

.csg-landing__reviews blockquote p {
	font-style: italic;
	line-height: 1.6;
	margin: 0 0 6px;
}

.csg-landing__reviews cite {
	color: #6b7c8a;
	font-size: 14px;
	font-style: normal;
}
