/* Clean responsive trial form — overrides EduBlink / CF7 / Elementor */

.bsl-form-wrap,
.bsl-cf7,
.bsl-form,
body.bastian-location-page .wpcf7,
body.page-id-17330 .wpcf7 {
	--bsl-primary: #1ab69d;
	--bsl-primary-dark: #128a76;
	--bsl-text: #181818;
	--bsl-muted: #5b6b72;
	--bsl-border: #dce4e2;
	--bsl-field: #f7faf9;
}

.bsl-form-wrap,
body.page-id-17330 .wpcf7,
body.page-slug-contact-me .wpcf7 {
	width: 100%;
	max-width: 720px;
	margin-inline: auto;
	background: #fff;
	border: 1px solid var(--bsl-border);
	border-radius: 24px;
	box-shadow: 0 16px 40px rgba(16, 32, 28, 0.07);
	padding: clamp(18px, 4vw, 32px);
}

.bsl-form-tutor {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--bsl-border);
}

.bsl-form-tutor picture,
.bsl-form-avatar {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
}

.bsl-form-avatar {
	width: 56px !important;
	height: 56px !important;
	min-height: 56px;
	border-radius: 50%;
	object-fit: cover !important;
	object-position: top center;
	border: 2px solid #e7f4f1;
}

.bsl-form-tutor strong {
	display: block;
	font-size: 15px;
	color: var(--bsl-text);
}

.bsl-form-tutor span {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	font-weight: 600;
	color: var(--bsl-muted);
}

.bsl-form-head {
	margin-bottom: 20px;
}

.bsl-form-kicker {
	margin: 0 0 6px;
	color: var(--bsl-primary-dark);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.bsl-form-title {
	margin: 0;
	font-size: clamp(22px, 3vw, 28px);
	line-height: 1.2;
	color: var(--bsl-text);
}

.bsl-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
}

.bsl-field,
.bsl-cf7 .bsl-field,
.bsl-form .bsl-field {
	display: grid;
	gap: 6px;
	margin: 0 !important;
	padding: 0;
	border: 0;
	min-width: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--bsl-text);
}

.bsl-field legend {
	padding: 0;
	margin: 0 0 6px;
	font-size: 13px;
}

.bsl-field span,
.bsl-field legend {
	font-weight: 700;
	color: var(--bsl-text);
}

.bsl-field > span {
	font-weight: 600;
	color: var(--bsl-muted);
}

.bsl-field-full {
	grid-column: 1 / -1;
}

.bsl-cf7 p,
.bsl-form p,
.bsl-cf7 .edublink-row,
body.page-id-17330 .wpcf7 p {
	margin: 0;
	float: none !important;
	width: auto !important;
}

.bsl-cf7 .wpcf7-form-control-wrap,
.bsl-form .wpcf7-form-control-wrap,
body.page-id-17330 .wpcf7 .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.bsl-form input[type="text"],
.bsl-form input[type="email"],
.bsl-form input[type="tel"],
.bsl-form select,
.bsl-form textarea,
.bsl-cf7 input[type="text"],
.bsl-cf7 input[type="email"],
.bsl-cf7 input[type="tel"],
.bsl-cf7 select,
.bsl-cf7 textarea,
body.page-id-17330 .wpcf7 input[type="text"],
body.page-id-17330 .wpcf7 input[type="email"],
body.page-id-17330 .wpcf7 input[type="tel"],
body.page-id-17330 .wpcf7 select,
body.page-id-17330 .wpcf7 textarea {
	width: 100% !important;
	max-width: none !important;
	min-height: 50px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--bsl-border) !important;
	border-radius: 14px !important;
	background: var(--bsl-field) !important;
	color: var(--bsl-text) !important;
	font: inherit;
	font-size: 16px !important;
	line-height: 1.4;
	box-shadow: none !important;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.bsl-form select,
.bsl-cf7 select,
body.page-id-17330 .wpcf7 select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23128a76' d='M4.2 6.2 8 10l3.8-3.8'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-color: var(--bsl-field) !important;
}

.bsl-form textarea,
.bsl-cf7 textarea,
body.page-id-17330 .wpcf7 textarea {
	min-height: 110px;
	resize: vertical;
}

.bsl-form input:focus,
.bsl-form select:focus,
.bsl-form textarea:focus,
.bsl-cf7 input:focus,
.bsl-cf7 select:focus,
.bsl-cf7 textarea:focus,
body.page-id-17330 .wpcf7 input:focus,
body.page-id-17330 .wpcf7 select:focus,
body.page-id-17330 .wpcf7 textarea:focus {
	outline: none;
	background: #fff !important;
	border-color: var(--bsl-primary) !important;
	box-shadow: 0 0 0 4px rgba(26, 182, 157, 0.16) !important;
}

.bsl-pills,
.bsl-pills .wpcf7-radio,
.bsl-cf7 .wpcf7-radio,
body.page-id-17330 .wpcf7 .wpcf7-radio {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
}

.bsl-pills > label,
.bsl-pills .wpcf7-list-item,
.bsl-cf7 .wpcf7-list-item,
body.page-id-17330 .wpcf7 .wpcf7-list-item {
	margin: 0 !important;
	min-width: 0;
}

.bsl-pills--2 > label,
.bsl-pills--2 .wpcf7-list-item {
	flex: 1 1 calc(50% - 8px);
}

.bsl-pills--4 > label,
.bsl-pills--4 .wpcf7-list-item {
	flex: 1 1 calc(25% - 8px);
}

.bsl-pills label,
.bsl-cf7 .wpcf7-list-item label,
body.page-id-17330 .wpcf7 .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 100%;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--bsl-border);
	border-radius: 999px;
	background: #fff;
	color: var(--bsl-text);
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.bsl-pills input,
.bsl-cf7 .wpcf7-list-item input,
body.page-id-17330 .wpcf7 .wpcf7-list-item input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.bsl-pills label:has(:checked),
.bsl-cf7 .wpcf7-list-item label:has(:checked),
body.page-id-17330 .wpcf7 .wpcf7-list-item label:has(:checked) {
	background: var(--bsl-primary);
	border-color: var(--bsl-primary);
	color: #fff;
}

.bsl-form-footer {
	display: grid;
	gap: 10px;
	margin-top: 18px;
}

.bsl-form-submit,
.bsl-cf7 input[type="submit"],
body.page-id-17330 .wpcf7 input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 12px 20px;
	border: 0 !important;
	border-radius: 14px !important;
	background: var(--bsl-primary) !important;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(26, 182, 157, 0.25);
	transition: background 0.18s ease, transform 0.18s ease;
}

.bsl-form-submit:hover,
.bsl-cf7 input[type="submit"]:hover,
body.page-id-17330 .wpcf7 input[type="submit"]:hover {
	background: var(--bsl-primary-dark) !important;
	transform: translateY(-1px);
}

.bsl-form-note,
.bsl-form-note a {
	margin: 0;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--bsl-muted);
}

.bsl-form-note a {
	color: var(--bsl-primary-dark);
	text-decoration: none;
}

.bsl-form-status {
	margin: 0;
	text-align: center;
	font-weight: 700;
}

.bsl-form-status.is-ok { color: var(--bsl-primary-dark); }
.bsl-form-status.is-err { color: #c4314b; }

.wpcf7-not-valid {
	border-color: #e35b6d !important;
}

.wpcf7-response-output {
	margin: 12px 0 0 !important;
	padding: 12px 14px !important;
	border-radius: 12px !important;
	border-width: 1px !important;
	text-align: center;
}

.bsl-cta .bsl-form-wrap {
	max-width: 720px;
	margin-top: 8px;
}

@media (max-width: 720px) {
	.bsl-form-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.bsl-pills--4 > label,
	.bsl-pills--4 .wpcf7-list-item {
		flex: 1 1 calc(50% - 8px);
	}
}

@media (max-width: 420px) {
	.bsl-form-wrap,
	body.page-id-17330 .wpcf7 {
		padding: 16px;
		border-radius: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bsl-form-submit,
	.bsl-form input,
	.bsl-form select,
	.bsl-form textarea {
		transition: none;
	}
}
