/**
 * Survey landing page (page-survey.php) + Typeform embed (.mcos-tf-embed).
 *
 * Deliberately outside the webpack pipeline (like mobile-shell.css) so the
 * survey module deploys without a build step. Palette as webinar-landing:
 * green #407360, dark #203839/#274446, text #637575, tints #f0f4f3/#f5fcf7,
 * accent #f5a623.
 */

.survey-landing {
	color: #274446;
	line-height: 1.7;
	font-size: 1rem;
}

/* --- Hero --- */

.survey-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 80% 60% at 50% -10%, rgba(64, 115, 96, 0.14) 0, transparent 60%),
		linear-gradient(180deg, #eef5f1 0%, #f5fcf7 78%, #f5fcf7 100%);
	padding: 84px 24px 148px;
	text-align: center;
}

.survey-hero__glow {
	position: absolute;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	filter: blur(70px);
	opacity: 0.5;
	pointer-events: none;
}

.survey-hero__glow--left {
	left: -160px;
	top: -80px;
	background: radial-gradient(circle, rgba(64, 115, 96, 0.22) 0, transparent 68%);
}

.survey-hero__glow--right {
	right: -160px;
	bottom: -180px;
	background: radial-gradient(circle, rgba(245, 166, 35, 0.1) 0, transparent 62%);
	opacity: 0.4;
}

.survey-hero__container {
	position: relative;
	max-width: 780px;
	margin: 0 auto;
}

.survey-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2.5px;
	color: #407360;
	background: #fff;
	border: 1px solid rgba(64, 115, 96, 0.18);
	box-shadow: 0 2px 10px rgba(32, 56, 57, 0.06);
	border-radius: 999px;
	padding: 8px 18px;
	margin-bottom: 24px;
}

.survey-hero__badge-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #407360;
	box-shadow: 0 0 0 4px rgba(64, 115, 96, 0.15);
}

.survey-hero__headline {
	font-size: clamp(1.9rem, 4.6vw, 3rem);
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: #203839;
	margin: 0 0 20px;
}

.survey-hero__intro {
	max-width: 640px;
	margin: 0 auto 28px;
	color: #637575;
	font-size: 1.1rem;
}

.survey-hero__intro p {
	margin: 0 0 12px;
}

.survey-hero__trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-bottom: 34px;
}

.survey-hero__trust-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #274446;
	background: #fff;
	border: 1px solid #e0e8e5;
	border-radius: 999px;
	padding: 9px 18px;
	box-shadow: 0 2px 8px rgba(32, 56, 57, 0.05);
}

.survey-hero__trust-item--accent {
	border-color: rgba(245, 166, 35, 0.4);
	background: #fffcf7;
}

.survey-hero__cta-row {
	margin-bottom: 18px;
}

.survey-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: linear-gradient(135deg, #407360 0%, #346452 100%);
	color: #fff;
	font-weight: 700;
	font-size: 1.1rem;
	padding: 17px 40px;
	border-radius: 12px;
	text-decoration: none;
	box-shadow: 0 10px 26px rgba(64, 115, 96, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.survey-hero__cta svg {
	transition: transform 0.2s ease;
}

.survey-hero__cta:hover,
.survey-hero__cta:focus {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(64, 115, 96, 0.42);
}

.survey-hero__cta:hover svg,
.survey-hero__cta:focus svg {
	transform: translateY(3px);
}

.survey-hero__social-proof {
	font-size: 0.88rem;
	color: #7b9090;
	margin: 0;
}

/* --- Embed section (card overlaps the hero) --- */

.survey-embed {
	padding: 0 16px 34px;
	background: #fff;
	scroll-margin-top: 90px;
}

.survey-embed__container {
	max-width: 880px;
	margin: -96px auto 0;
	position: relative;
}

/* --- Typeform container (also used by the shortcode) --- */

.mcos-tf-embed {
	position: relative;
	height: var(--mcos-tf-height, 620px);
	border-radius: 20px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e0e8e5;
	box-shadow: 0 24px 60px rgba(32, 56, 57, 0.16);
}

.mcos-tf-embed__widget,
.mcos-tf-embed iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.mcos-tf-embed__error {
	background: #fff4e0;
	border: 1px solid #f5a623;
	border-radius: 10px;
	padding: 14px 18px;
	color: #7a5200;
}

/* Consent card (state before loading) */

.mcos-tf-embed__consent {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 32px 24px;
	background:
		radial-gradient(circle at 16% 18%, rgba(64, 115, 96, 0.09) 0, transparent 44%),
		radial-gradient(circle at 86% 82%, rgba(245, 166, 35, 0.07) 0, transparent 44%),
		#f5fcf7;
}

.mcos-tf-embed__consent-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(64, 115, 96, 0.16) 0%, rgba(64, 115, 96, 0.08) 100%);
	color: #407360;
	margin-bottom: 18px;
}

.mcos-tf-embed__consent-title {
	font-size: 1.35rem;
	font-weight: 700;
	color: #203839;
	margin: 0 0 10px;
}

.mcos-tf-embed__consent-text {
	max-width: 460px;
	color: #637575;
	font-size: 0.95rem;
	margin: 0 0 24px;
}

.mcos-tf-embed__consent-button {
	background: linear-gradient(135deg, #407360 0%, #346452 100%);
	color: #fff;
	font-weight: 700;
	font-size: 1.02rem;
	padding: 15px 36px;
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(64, 115, 96, 0.32);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mcos-tf-embed__consent-button:hover,
.mcos-tf-embed__consent-button:focus {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(64, 115, 96, 0.4);
}

.mcos-tf-embed__consent-alt {
	margin: 18px 0 0;
	font-size: 0.85rem;
	color: #7b9090;
}

.mcos-tf-embed__consent-alt a {
	color: #407360;
	font-weight: 600;
	text-decoration: underline;
}

/* --- Info cards --- */

.survey-info {
	padding: 42px 24px 30px;
	background: #fff;
}

.survey-info__container {
	max-width: 1020px;
	margin: 0 auto;
	text-align: center;
}

.survey-info__label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2.5px;
	color: #407360;
	margin-bottom: 12px;
}

.survey-info__headline {
	font-size: clamp(1.45rem, 3vw, 2rem);
	letter-spacing: -0.01em;
	color: #203839;
	margin: 0 0 38px;
}

.survey-info__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	text-align: left;
}

.survey-info__card {
	position: relative;
	background: #f5fcf7;
	border: 1px solid #e0e8e5;
	border-radius: 18px;
	padding: 30px 26px 26px;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.survey-info__card:hover {
	transform: translateY(-4px);
	border-color: rgba(64, 115, 96, 0.35);
	box-shadow: 0 16px 36px rgba(32, 56, 57, 0.12);
}

.survey-info__card-number {
	position: absolute;
	top: 22px;
	right: 24px;
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1;
	color: rgba(64, 115, 96, 0.14);
}

.survey-info__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(64, 115, 96, 0.18) 0%, rgba(64, 115, 96, 0.08) 100%);
	color: #407360;
	margin-bottom: 16px;
}

.survey-info__card-title {
	font-size: 1.12rem;
	color: #203839;
	margin: 0 0 8px;
}

.survey-info__card-text {
	font-size: 0.94rem;
	color: #637575;
	margin: 0;
}

/* --- Privacy --- */

.survey-privacy {
	padding: 34px 24px 80px;
	background: #fff;
}

.survey-privacy__container {
	max-width: 760px;
	margin: 0 auto;
	display: flex;
	align-items: flex-start;
	gap: 22px;
	background: linear-gradient(135deg, #eef5f1 0%, #f5fcf7 100%);
	border: 1px solid #e0e8e5;
	border-radius: 18px;
	padding: 30px 32px;
}

.survey-privacy__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #e0e8e5;
	color: #407360;
}

.survey-privacy__headline {
	font-size: 1.15rem;
	color: #203839;
	margin: 2px 0 8px;
}

.survey-privacy__text {
	font-size: 0.94rem;
	color: #637575;
	margin: 0;
}

/* --- Smooth scrolling to the embed anchor --- */

html:has(.survey-landing) {
	scroll-behavior: smooth;
}

/* --- Responsive --- */

@media (max-width: 900px) {
	.survey-info__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.survey-hero {
		padding: 52px 18px 120px;
	}

	.survey-hero__trust {
		gap: 8px;
	}

	.survey-hero__trust-item {
		font-size: 0.84rem;
		padding: 8px 14px;
	}

	.survey-embed {
		padding: 0 10px 20px;
	}

	.survey-embed__container {
		margin-top: -84px;
	}

	/* Near full viewport height on mobile so the form is comfortable to fill in. */
	.mcos-tf-embed {
		height: min(var(--mcos-tf-height, 620px), 78vh);
		min-height: 480px;
		border-radius: 14px;
	}

	.survey-privacy__container {
		flex-direction: column;
		padding: 24px 22px;
	}
}
