
/* Form as a card, with rounded fields. Icons (choice, color, position) come from the plugin:
   Admin > Formulier > Afbeeldingen / Kleuren; the sizes below fine-tune the icon styling. */

.ec-form {
	--ec-control-height: 4.5rem;
	--ec-icon-size: 1.3rem;
	--ec-icon-left: 1.1rem;
	--ec-icon-padding: 50px;
	position: relative;
	max-width: 40.625rem;
	/* Side padding scales with the screen width: 23px at 375px (mobile) up to 60px from 768px (tablet/desktop). */
	padding: 1.875rem clamp(23px, calc(9.4vw - 12.3px), 3.75rem) 3.125rem;
	border-radius: 1.125rem;
	box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.05);
	gap: 1rem;
}

.ec-form select,
.ec-form input[type="text"] {
	width: 100%;
	border-width: 2px;
	border-radius: 0.3125rem;
	font-size: 1.125rem;
	appearance: none;
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	background-size: 0.75rem;
}

/* Custom arrow for the dropdowns (needed because appearance:none removes the default arrow). */
.ec-form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
}

/* Button: larger, flatter (no extra bold) and with a calmer radius. */
.ec-form button[type="submit"] {
	height: auto;
	padding: 1.5625rem 1.625rem;
	border-radius: 0.625rem;
	font-size: 1.375rem;
	font-weight: 400;
}

/* Equal to the demo (staging.orangeform.nl/demo-laura/form-demo/): heading, logo and info text. */
.ec-form-branding {
	margin-bottom: 1.1875rem;
}

.ec-form-header {
	margin-bottom: 0.5rem;
}

.ec-form-header h1 {
	margin-bottom: 0.625rem;
}

.ec-form-header p {
	max-width: 23.75rem;
	margin-inline: auto;
}

.ec-form-info {
	margin-top: -0.25rem;
}

/* Between mobile and desktop the button text (and thus the icon) scales along: 18px at 500px wide, 22px from 700px. */
@media (min-width: 481px) and (max-width: 700px) {
	.ec-form button[type="submit"] {
		font-size: calc(18px + (100vw - 500px) * 0.02);
	}
}

/* Mobile (demo): smaller card padding and fields; Date and Time stay side by side. */
@media (max-width: 480px) {
	.ec-form {
		--ec-control-height: 3.4rem;
		--ec-icon-left: 0.875rem;
		--ec-icon-padding: 44px;
		--ec-select-arrow-space: 1.6rem;
		padding: 18px clamp(23px, calc(9.4vw - 12.3px), 3.75rem) 25px;
		gap: 10px;
	}

	.ec-form-row {
		gap: 10px;
	}

	.ec-form select,
	.ec-form input[type="text"] {
		font-size: 16px;
	}

	.ec-form-branding {
		margin-bottom: 5px;
	}

	.ec-form-branding img {
		max-width: 250px;
	}

	.ec-form-header {
		margin-bottom: 5px;
	}

	.ec-form-header p {
		max-width: none;
		font-size: 16px;
		line-height: 1.6;
	}

	.ec-form button[type="submit"] {
		padding: 20px 24px;
		font-size: 18px;
	}

	.ec-form-info {
		margin-top: -6px;
		font-size: 15px;
		line-height: 1.6;
	}
}

/* Kleine mobiel (iPhone SE, iPhone 15): kleiner logo en infotekst. */
@media (max-width: 400px) {
	.ec-form-branding img {
		max-width: 210px;
	}

	.ec-form-info {
		font-size: 14px;
	}
}
