/* The form card. It is laid out in flow, not placed, because an error message has to
   be able to push what is under it down. */
.vamora-contact-form {
	position: relative;
	padding: 1.25rem;
	border: 1px solid rgb(226 212 250 / 0.9);
	border-radius: 1.5rem;
	background:
		radial-gradient(60% 34% at 92% 0%, rgb(247 226 252 / 0.85) 0%, transparent 100%),
		linear-gradient(170deg, rgb(255 255 255 / 0.86), rgb(251 247 254 / 0.86));
	box-shadow: 0 18px 44px -18px rgb(110 60 220 / 0.3), inset 0 1px 0 rgb(255 255 255 / 0.95);
	scroll-margin-top: calc(var(--chrome-height) + 1rem);
}

.vamora-contact-form__envelope {
	position: absolute;
	top: -2.75rem;
	right: 0.5rem;
	width: 6rem;
	overflow: visible;
	pointer-events: none;
}

.vamora-contact-form__sparks path {
	fill: none;
	stroke: #6a1fe0;
	stroke-width: 2.8;
	stroke-linecap: round;
}

.vamora-contact-form__head {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	padding-right: 3.5rem;
}

.vamora-contact-form__tile {
	--icon-size: 2.125rem;

	display: grid;
	flex: none;
	place-items: center;
	width: 3.75rem;
	height: 3.75rem;
	border-radius: 1rem;
	background: linear-gradient(145deg, #cb94f6 0%, #9757ec 55%, #6f31da 100%);
	box-shadow: 0 8px 18px rgb(106 40 210 / 0.3), inset 0 1px 0 rgb(255 255 255 / 0.4);
	color: var(--home-white);
}

.vamora-contact-form__title {
	color: #120c33;
	font-size: clamp(1.5rem, 6.4vw, 1.875rem);
	line-height: 1.1;
	letter-spacing: -0.035em;
}

.vamora-contact-form__sub {
	margin-top: 0.375rem;
	color: #16124a;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.25;
}

.vamora-contact-form__notice {
	margin-top: 1rem;
}

.vamora-contact-form__trap {
	position: absolute;
	left: -9999px;
}

.vamora-contact-form__fields {
	display: grid;
	gap: 0.875rem;
	margin-top: 1.25rem;
}

.vamora-contact-field__label {
	display: block;
	color: #120c33;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.vamora-contact-field__required {
	margin-left: 0.25em;
	color: #d81b3c;
}

.vamora-contact-field__box {
	position: relative;
	margin-top: 0.375rem;
}

/* The control has the frame, so a focus ring and a browser's autofill both sit on it. */
.vamora-contact-field__control {
	display: block;
	width: 100%;
	min-height: 2.875rem;
	padding: 0 1rem 0 2.75rem;
	border: 1px solid rgb(196 176 240 / 0.85);
	border-radius: 0.875rem;
	background: rgb(255 255 255 / 0.72);
	box-shadow: 0 2px 8px rgb(120 70 220 / 0.05);
	color: #120c33;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.012em;
}

.vamora-contact-field__control::placeholder {
	color: #4a4580;
	opacity: 1;
}

.vamora-contact-field__control:focus-visible {
	border-color: #6a1fe0;
	outline: 2px solid rgb(106 31 224 / 0.3);
	outline-offset: 0;
}

select.vamora-contact-field__control {
	padding-right: 2.5rem;
	color: #4a4580;
	appearance: none;
	cursor: pointer;
}

select.vamora-contact-field__control.has-value,
select.vamora-contact-field__control:has(option:checked:not([value=""])) {
	color: #120c33;
}

textarea.vamora-contact-field__control {
	min-height: 7.25rem;
	padding-top: 0.875rem;
	line-height: 1.35;
	resize: none;
}

.vamora-contact-field__icon {
	--icon-size: 1.25rem;

	position: absolute;
	top: 0.8125rem;
	left: 0.875rem;
	z-index: 1;
	color: #4a25a5;
	stroke-width: 1.7;
	pointer-events: none;
}

.vamora-contact-field__chevron {
	--icon-size: 1.125rem;

	position: absolute;
	top: 0.875rem;
	right: 0.875rem;
	color: #5a14d8;
	stroke-width: 2.4;
	pointer-events: none;
}

.vamora-contact-field.is-invalid .vamora-contact-field__control {
	border-color: var(--color-danger);
}

/* An error goes as soon as the answer it was about starts to change. */
.vamora-contact-field:not(.is-invalid) .vamora-contact-field__error {
	display: none;
}

.vamora-contact-field__error {
	margin-top: 0.25rem;
	color: var(--color-danger);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.25;
}

.vamora-contact-form__submit {
	--icon-size: 1.5rem;

	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	width: 100%;
	min-height: 3.25rem;
	margin-top: 1.125rem;
	overflow: hidden;
	border: 0;
	border-radius: 1.25rem;
	background: radial-gradient(45% 110% at 50% 100%, #4b0cba 0%, transparent 100%), linear-gradient(90deg, #8f4bf0 0%, #7a2cec 28%, #6a15e0 60%, #6c30cc 100%);
	box-shadow: 0 10px 22px rgb(100 30 215 / 0.34), inset 0 1px 0 rgb(255 255 255 / 0.3);
	color: var(--home-white);
	font-family: inherit;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	cursor: pointer;
}

.vamora-contact-form__fill {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0;
	pointer-events: none;
}

.vamora-contact-form__plane,
.vamora-contact-form__send {
	position: relative;
	z-index: 1;
}

.vamora-contact-form__note {
	--icon-size: 1.125rem;

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	margin-top: 0.875rem;
	color: #16124a;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.25;
	text-align: center;
}

.vamora-contact-form__lock {
	flex: none;
	color: #6a1fe0;
	stroke-width: 2;
}

@media (min-width: 37.5em) {
	.vamora-contact-form__fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vamora-contact-field--full {
		grid-column: 1 / -1;
	}
}

@media (min-width: 64em) {
	.vamora-contact-form {
		width: calc(665 * var(--k));
		margin-left: calc(490 * var(--k));
		padding: calc(30 * var(--k)) calc(31 * var(--k)) calc(25 * var(--k)) calc(33 * var(--k));
		border-radius: calc(28 * var(--k));
		box-shadow: 0 calc(18 * var(--k)) calc(44 * var(--k)) calc(-18 * var(--k)) rgb(110 60 220 / 0.3), inset 0 1px 0 rgb(255 255 255 / 0.95);
	}

	.vamora-contact-form__envelope {
		top: calc(-39 * var(--k));
		right: calc(30 * var(--k));
		width: calc(140 * var(--k));
	}

	.vamora-contact-form__head {
		gap: calc(20 * var(--k));
		height: calc(71 * var(--k));
		padding: 0;
	}

	.vamora-contact-form__tile {
		--icon-size: calc(44 * var(--k));

		width: calc(74 * var(--k));
		height: calc(71 * var(--k));
		border-radius: calc(18 * var(--k));
		box-shadow: 0 calc(8 * var(--k)) calc(18 * var(--k)) rgb(106 40 210 / 0.3), inset 0 1px 0 rgb(255 255 255 / 0.4);
	}

	.vamora-contact-form__title {
		margin-top: calc(-9 * var(--k));
		font-size: calc(31.3 * var(--k));
		font-weight: 900;
		line-height: calc(36 * var(--k));
		letter-spacing: -0.04em;
		white-space: nowrap;
	}

	.vamora-contact-form__sub {
		margin-top: calc(8 * var(--k));
		font-size: calc(15.25 * var(--k));
		line-height: calc(20 * var(--k));
		white-space: nowrap;
	}

	.vamora-contact-form__notice {
		margin-top: calc(14 * var(--k));
	}

	.vamora-contact-form__fields {
		grid-template-columns: repeat(2, calc(290.5 * var(--k)));
		gap: calc(26 * var(--k)) calc(20 * var(--k));
		margin-top: calc(30 * var(--k));
	}

	.vamora-contact-field__label {
		font-size: calc(14.6 * var(--k));
		line-height: calc(18 * var(--k));
	}

	.vamora-contact-field__box {
		margin-top: calc(5 * var(--k));
	}

	.vamora-contact-field__control {
		min-height: calc(42 * var(--k));
		padding: 0 calc(16 * var(--k)) 0 calc(47.5 * var(--k));
		border-radius: calc(14 * var(--k));
		font-size: calc(14.8 * var(--k));
		box-shadow: 0 calc(2 * var(--k)) calc(8 * var(--k)) rgb(120 70 220 / 0.05);
	}

	textarea.vamora-contact-field__control {
		height: calc(123 * var(--k));
		min-height: calc(123 * var(--k));
		padding-top: calc(13 * var(--k));
		line-height: calc(20 * var(--k));
	}

	.vamora-contact-field__icon {
		--icon-size: calc(19 * var(--k));

		top: calc(11.5 * var(--k));
		left: calc(15 * var(--k));
	}

	.vamora-contact-field__chevron {
		--icon-size: calc(18 * var(--k));

		top: calc(12 * var(--k));
		right: calc(14 * var(--k));
	}

	.vamora-contact-field__error {
		margin-top: calc(3 * var(--k));
		font-size: calc(12.5 * var(--k));
	}

	.vamora-contact-form__submit {
		--icon-size: calc(26 * var(--k));

		gap: calc(14 * var(--k));
		height: calc(54 * var(--k));
		min-height: 0;
		margin-top: calc(24 * var(--k));
		border-radius: calc(22 * var(--k));
		font-size: calc(20 * var(--k));
		font-weight: 650;
		box-shadow: 0 calc(10 * var(--k)) calc(22 * var(--k)) rgb(100 30 215 / 0.34), inset 0 1px 0 rgb(255 255 255 / 0.3);
	}

	.vamora-contact-form__note {
		--icon-size: calc(17 * var(--k));

		gap: calc(10 * var(--k));
		margin-top: calc(18 * var(--k));
		font-size: calc(13.4 * var(--k));
		line-height: calc(18 * var(--k));
		white-space: nowrap;
	}
}
