/*
 * Pippin Contact: the contact section's content and its HubSpot form in the new brand. The section around it gives
 * the full-width colour (Section- Tint) and the boxed width; this draws the two columns and the white form card.
 * Colours and type follow the Kit globals.
 * The form itself (fields, chips, button) is styled by the site-wide hubspot-forms.css; this file is the section around
 * it, the card, the progress line and the thank-you panel.
 */
.pt-contact {
	--pt-c-text: var(--e-global-color-text, #22294e);
	--pt-c-muted: var(--e-global-color-e4427e8, #757575);
	--pt-c-border: var(--e-global-color-b0de001, #d9d9d9);
	--pt-c-accent: var(--e-global-color-accent, #d83040);
	--pt-c-accent-hover: var(--e-global-color-e7ce58e, #b8202f);
	--pt-c-surface: var(--e-global-color-5f0ace0, #fff);
	--pt-c-tint: var(--e-global-color-5ec0003, #f5fbfe);
	--pt-c-blue-100: var(--e-global-color-2c7a47e, #e4f6fe);
	--pt-c-blue-400: var(--e-global-color-b65e592, #76d0f4);
	--pt-c-focus: var(--e-global-color-primary, #37aada);
	--pt-c-dark: var(--e-global-color-5ec0004, #0f1328);
	--pt-c-on-dark: var(--e-global-color-836a0d3, #fff);
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
	box-sizing: border-box;
	color: var(--pt-c-text);
	text-align: left;
}

/* Form card only: the card fills the widget. */
.pt-contact--card {
	grid-template-columns: minmax(0, 1fr);
}

/* Intro */
.pt-contact__intro {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-top: 8px;
}
.pt-contact .pt-contact__eyebrow {
	margin: 0 0 -8px;
	color: var(--e-global-color-5ab0001, var(--pt-c-accent));
	font-family: var(--e-global-typography-5ab0d00-font-family, inherit);
	font-size: var(--e-global-typography-5ab0d00-font-size, 0.875rem);
	font-weight: var(--e-global-typography-5ab0d00-font-weight, 600);
	letter-spacing: var(--e-global-typography-5ab0d00-letter-spacing, 0.12em);
	line-height: 1.4;
	text-transform: var(--e-global-typography-5ab0d00-text-transform, uppercase);
}
.pt-contact .pt-contact__title {
	margin: 0;
	text-wrap: balance;
}
.pt-contact .pt-contact__lead {
	margin: 0;
	color: var(--pt-c-muted);
	font-size: 1.125rem;
	line-height: 1.6;
}
.pt-contact__points {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}
.pt-contact__points li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5;
}
.pt-contact__check {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: var(--pt-c-blue-100);
	color: var(--e-global-color-primary, #147298);
}
.pt-contact__check svg {
	width: 16px;
	height: 16px;
}
.pt-contact__quote {
	margin: 8px 0 0;
	padding: 4px 0 4px 18px;
	border-left: 3px solid var(--pt-c-blue-400);
}
.pt-contact__quote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-style: normal;
}
.pt-contact__quote blockquote p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
}
.pt-contact__quote blockquote p::before {
	content: "“";
}
.pt-contact__quote blockquote p::after {
	content: "”";
}
.pt-contact__quote figcaption {
	margin-top: 8px;
	color: var(--pt-c-muted);
	font-size: 0.875rem;
	font-style: normal;
	font-weight: 600;
}
.pt-contact__quote figcaption::before {
	content: "— ";
}
.pt-contact__ways {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
	margin-top: 4px;
	padding-top: 20px;
	border-top: 1px solid rgba(15, 19, 40, 0.1);
	font-size: 0.9375rem;
}
.pt-contact__phone {
	flex-basis: 100%;
	color: var(--pt-c-muted);
}
.pt-contact .pt-contact__phone a {
	color: var(--pt-c-text);
	font-weight: 600;
	text-decoration: none;
}
.pt-contact .pt-contact__phone a:hover {
	color: var(--pt-c-accent);
}
.pt-contact a.pt-contact__way,
.pt-contact a.pt-contact__thanks-link {
	display: inline-flex;
	align-items: center;
	color: var(--pt-c-accent);
	font-weight: 600;
	text-decoration: none;
}
.pt-contact__arrow::after {
	content: "→";
	display: inline-block;
	margin-left: 6px;
	transition: transform 0.2s ease;
}
.pt-contact a:hover .pt-contact__arrow::after {
	transform: translateX(3px);
}

/* Card */
.pt-contact__card {
	position: relative;
	box-sizing: border-box;
	min-width: 0;
	padding: clamp(24px, 3vw, 36px);
	border: 1px solid rgba(15, 19, 40, 0.06);
	border-radius: 20px;
	background: var(--pt-c-surface);
	box-shadow: 0 24px 60px rgba(15, 19, 40, 0.1);
	color: var(--pt-c-text);
}
.pt-contact__card-head {
	margin-bottom: 24px;
}
.pt-contact .pt-contact__card-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}
.pt-contact .pt-contact__card-note {
	margin: 4px 0 0;
	color: var(--pt-c-muted);
	font-size: 0.9375rem;
}
.pt-contact__progress {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.pt-contact.is-ready .pt-contact__progress {
	opacity: 1;
}
.pt-contact__bar {
	position: relative;
	flex: 1;
	height: 4px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--pt-c-blue-100);
}
.pt-contact__fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--pt-c-blue-400), var(--pt-c-focus));
	transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.pt-contact__count {
	flex: none;
	color: var(--pt-c-muted);
	font-size: 0.75rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.pt-contact.is-complete .pt-contact__count {
	color: var(--e-global-color-primary, #147298);
}

/* Loading placeholder until HubSpot's form arrives */
.pt-contact__loading {
	display: grid;
	gap: 16px;
}
.pt-contact__loading span {
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(90deg, #f1f4f7 25%, #f8fafc 50%, #f1f4f7 75%);
	background-size: 200% 100%;
	animation: pt-contact-shimmer 1.4s ease-in-out infinite;
}
.pt-contact__loading span:last-child {
	height: 54px;
	border-radius: 999px;
}
@keyframes pt-contact-shimmer {
	to {
		background-position: -200% 0;
	}
}
.pt-contact.is-ready .pt-contact__loading,
.pt-contact.is-failed .pt-contact__loading {
	display: none;
}

/* The site's SMS note shows once the form is in, and only when it asks for a phone number (contact.js). */
.pt-contact:not(.is-ready) .pt-contact__sms {
	display: none;
}

.pt-contact.is-complete .hs-form .hs_submit .actions input[type="submit"] {
	box-shadow: 0 0 0 5px rgba(216, 48, 64, 0.14), 0 12px 28px rgba(216, 48, 64, 0.28);
}
.pt-contact .pt-contact__sms {
	margin: 16px 0 0;
	color: var(--pt-c-muted);
	font-size: 0.75rem;
	line-height: 1.5;
}

/* "Sign up someone else" (thank-you panel): a fresh form for the next person at an event booth. */
.pt-contact a.pt-contact__again {
	display: inline-block;
	margin-top: 4px;
	color: var(--pt-c-muted);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.pt-contact a.pt-contact__again:hover {
	color: var(--pt-c-text);
}

/* Sent: the thank-you panel takes the form's place. */
.pt-contact .submitted-message {
	display: none !important;
}
.pt-contact.is-sent .pt-contact__form,
.pt-contact.is-sent .pt-contact__sms,
.pt-contact.is-sent .pt-contact__card-head {
	display: none;
}
.pt-contact__thanks {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 24px 8px;
	text-align: center;
	outline: 0;
	animation: pt-contact-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.pt-contact__thanks[hidden] {
	display: none;
}
.pt-contact__thanks-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 8px;
	border-radius: 999px;
	background: var(--pt-c-blue-100);
	color: var(--e-global-color-primary, #147298);
}
.pt-contact__thanks-icon svg {
	width: 28px;
	height: 28px;
}
.pt-contact .pt-contact__thanks-title {
	margin: 0;
	font-size: 1.375rem;
	font-weight: 600;
}
.pt-contact .pt-contact__thanks-text {
	max-width: 36ch;
	margin: 0 0 8px;
	color: var(--pt-c-muted);
}
@keyframes pt-contact-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

/* On a dark section (Section- Dark): light text; the form card stays white. */
.pt-contact--dark {
	--pt-c-muted-on-dark: rgba(255, 255, 255, 0.72);
	color: var(--pt-c-on-dark);
}
.pt-contact--dark .pt-contact__title,
.pt-contact--dark .pt-contact__points li,
.pt-contact--dark .pt-contact__quote blockquote p,
.pt-contact--dark .pt-contact__phone a {
	color: var(--pt-c-on-dark);
}
.pt-contact--dark .pt-contact__lead,
.pt-contact--dark .pt-contact__quote figcaption,
.pt-contact--dark .pt-contact__phone {
	color: var(--pt-c-muted-on-dark);
}
.pt-contact--dark .pt-contact__check {
	background: rgba(118, 208, 244, 0.16);
	color: var(--pt-c-blue-400);
}
.pt-contact--dark .pt-contact__ways {
	border-top-color: rgba(255, 255, 255, 0.14);
}
.pt-contact--dark a.pt-contact__way {
	color: var(--pt-c-blue-400);
}

/* Tablet: the card under the intro. Phone: one column of fields. */
@media (max-width: 1024px) {
	.pt-contact {
		grid-template-columns: minmax(0, 1fr);
	}
	.pt-contact__intro {
		padding-top: 0;
	}
}
@media (max-width: 767px) {
	.pt-contact {
		gap: 28px;
	}
	.pt-contact__card {
		padding: 22px 18px;
		border-radius: 16px;
	}
	.pt-contact .pt-contact__lead {
		font-size: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pt-contact__loading span,
	.pt-contact__thanks {
		animation: none;
	}
	.pt-contact__fill {
		transition: none;
	}
}
