/* =========================================================================
   Contact (v2)  —  layered on top of home-v2.css (Uncut Sans, .hv-shell,
   the dark page frame and the vertical frame rails).

   Values taken from Figma "Contact [Web] / [Mobile]".
   Dark hero ("Contact" pill + "Speak to an Expert") over a light form section.
   ========================================================================= */

.ct {
	--ct-ink: #111111;
	--ct-ink-70: rgba(17, 17, 17, 0.7);
	--ct-teal: #2ad9c4;
	--ct-surface: #f6f6f6;
	--ct-field-bg: rgba(17, 17, 17, 0.04);
	--ct-field-border: rgba(17, 17, 17, 0.1);
}

/* Light section gets the dark frame rails via home-v2.css ([class*="-light"]). */
.ct-sec-light {
	background: var(--ct-surface);
	color: var(--ct-ink);
}

/* -------------------------------------------------------------------------
   HERO  (dark, on the page frame)
   ------------------------------------------------------------------------- */
.ct-hero {
	background: #0e0e0e;
	color: #fff;
}
.ct-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
	padding-block: clamp(40px, 7vw, 96px);
}
.ct-hero__title {
	margin: 0;
	font-weight: 500;
	font-size: clamp(32px, 4.5vw, 64px);
	line-height: 1.4;
	letter-spacing: -0.02em;
	color: #fff;
}
.ct-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 20px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 2px;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: -0.01em;
	color: #fff;
}
.ct-pill__dot {
	width: 8px;
	height: 8px;
	background: var(--ct-teal);
}

/* -------------------------------------------------------------------------
   FORM SECTION  (light)
   ------------------------------------------------------------------------- */
.ct-form-sec {
	padding-block: clamp(40px, 6vw, 100px);
}
.ct-card {
	max-width: min(1094px, 100%);
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding: clamp(24px, 4vw, 80px);
	/* No fill in Figma — just the outline. */
	border: 1px solid rgba(17, 17, 17, 0.2);
	border-radius: 16px;
}
.ct-card__title {
	margin: 0;
	text-align: left;
	font-weight: 500;
	font-size: clamp(28px, 3.2vw, 48px);
	line-height: 1.4;
	letter-spacing: -0.02em;
	color: var(--ct-ink);
}

/* Fields */
.ct-fields {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.ct-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ct-field > label {
	font-weight: 400;
	font-size: clamp(14px, 1.3vw, 18px);
	line-height: 1.5;
	color: var(--ct-ink-70);
}
.ct-input {
	width: 100%;
	height: 56px;
	padding: 0 16px;
	font-family: inherit;
	font-size: 16px;
	color: var(--ct-ink);
	background: var(--ct-field-bg);
	border: 1px solid var(--ct-field-border);
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: border-color 0.15s ease;
}
.ct-input::placeholder {
	color: rgba(17, 17, 17, 0.4);
}
.ct-input:focus {
	outline: none;
	border-color: rgba(42, 217, 196, 0.7);
}
.ct-input--area {
	height: 180px;
	padding: 16px;
	resize: vertical;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
/* Live remaining-character count under the free-text field. maxLength alone
   just stops accepting keystrokes with no explanation, which is the reason the
   GOV.UK and USWDS design systems both pair long fields with a counter. */
.ct-count {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.4;
	color: rgba(17, 17, 17, 0.55);
	/* The counter is empty until typing starts, so its line is reserved here —
	   otherwise the consent block below jumps up by one line on first keystroke. */
	min-height: 1.4em;
}
.ct-phone {
	display: flex;
	gap: 16px;
}
.ct-input--code {
	flex: 0 0 72px;
	width: 72px;
	padding: 0 8px;
	text-align: center;
}
.ct-phone > .ct-input:not(.ct-input--code) {
	flex: 1 1 auto;
	min-width: 0;
}

/* Consent block */
.ct-consent {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: flex-start;
}
.ct-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	cursor: pointer;
}
.ct-check__input {
	position: absolute;
	width: 0;
	height: 0;
	opacity: 0;
}
.ct-check__box {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	border: 1px solid var(--ct-ink-70);
	background: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.ct-check__input:focus-visible + .ct-check__box {
	outline: 2px solid rgba(42, 217, 196, 0.7);
	outline-offset: 2px;
}
.ct-check__input:checked + .ct-check__box {
	background: var(--ct-teal);
	border-color: var(--ct-teal);
}
.ct-check__input:checked + .ct-check__box::after {
	content: "";
	width: 5px;
	height: 9px;
	margin-top: -2px;
	border: solid #111;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.ct-check__text {
	font-weight: 400;
	font-size: 16px;
	line-height: 1.4;
	letter-spacing: -0.02em;
	color: var(--ct-ink-70);
}
.ct-check__text a,
.ct-notice__text a {
	color: var(--ct-teal);
	text-decoration: none;
}

/* View Privacy Notice (native <details> toggle) */
.ct-notice {
	width: 100%;
}
.ct-notice__toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	list-style: none;
	font-weight: 500;
	font-size: 16px;
	letter-spacing: -0.02em;
	color: var(--ct-ink-70);
}
.ct-notice__toggle::-webkit-details-marker {
	display: none;
}
.ct-notice__chev {
	transition: transform 0.2s ease;
}
.ct-notice[open] .ct-notice__chev {
	transform: rotate(180deg);
}
.ct-notice__text {
	margin: 12px 0 0;
	padding-left: 30px;
	max-width: min(902px, 100%);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.4;
	letter-spacing: -0.02em;
	color: var(--ct-ink-70);
}

/* Submit */
.ct-submit {
	align-self: flex-start;
	height: 56px;
	min-width: 180px;
	padding: 12px 24px;
	font-family: inherit;
	font-weight: 500;
	font-size: 16px;
	letter-spacing: -0.02em;
	color: #000;
	background: var(--ct-teal);
	border: none;
	border-radius: 2px;
	cursor: pointer;
	transition: filter 0.2s ease;
}
.ct-submit:hover {
	filter: brightness(0.95);
}
.ct-submit:active {
	transform: translateY(1px);
}
.ct-submit:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	filter: none;
	transform: none;
}

/* Submit result states */
.ct-error {
	margin: 0;
	color: #d63b2f;
	font-size: 14px;
	line-height: 1.4;
}
.ct-card--done {
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 320px;
	gap: 16px;
}
.ct-done__text {
	margin: 0;
	max-width: 520px;
	font-size: 18px;
	line-height: 1.5;
	color: var(--ct-ink-70);
}

/* =========================================================================
   MOBILE  (<= 640px)  —  per "Contact [Mobile]" (shorter inputs, no pill)
   ========================================================================= */
@media (max-width: 640px) {
	.ct-pill {
		display: none;
	}
	.ct-card {
		padding: 24px 0;
		border: none;
		border-radius: 0;
		gap: 24px;
	}
	.ct-fields {
		gap: 16px;
	}
	.ct-field > label {
		font-size: 14px;
	}
	.ct-input {
		height: 44px;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	}
	.ct-input--area {
		height: 120px;
	}
	.ct-input--code {
		flex-basis: 56px;
		width: 56px;
	}
	/* Mobile: small, centered button (Figma) */
	.ct-submit {
		align-self: center;
		width: auto;
		min-width: 0;
		height: 40px;
		padding: 8px 24px;
	}
}
