/*
 * Let's Connect form (Gravity Forms, CSS class "hello-contact"). Loaded by inc/hello-form.php.
 * Sits on top of main.css's #contact-form rules (written for the old hand-coded form).
 * Ported from the staging build's Additional CSS, keyed to classes instead of form/field IDs.
 */

#contact-form form.hello-contact {
	flex-direction: column;
	margin-top: -15px;
	width: 857px;
}
@media (max-width: 857px) {
	#contact-form form.hello-contact {
		width: 100%;
	}
}
@media (min-width: 1170px) and (max-width: 1401px) {
	#contact-form form.hello-contact {
		max-width: 700px;
	}
	#contact-form .hello-contact_wrapper ~ .image {
		max-width: 350px;
	}
}

.hello-contact_wrapper .gform_required_legend {
	display: none;
}
#contact-form .hello-contact .gform_fields {
	-moz-column-gap: var(--gf-form-gap-x);
	row-gap: 6px;
}
#contact-form .hello-contact .gfield {
	position: relative;
}
#contact-form .hello-contact input::placeholder {
	font-size: 1.3rem !important;
	color: #5d4961;
}
#contact-form .hello-contact textarea::placeholder {
	font-style: normal;
	font-size: 1.3rem;
	line-height: 32px;
	font-family: "proxima-nova", sans-serif;
	color: #5d4961;
	letter-spacing: -0.11px;
}
#contact-form .hello-contact .ginput_container input,
#contact-form .hello-contact select,
#contact-form .hello-contact textarea {
	border-radius: 0 !important;
	box-shadow: none !important;
}
#contact-form .hello-contact textarea {
	margin-bottom: 12px;
}
#contact-form .hello-contact_wrapper .gform_validation_errors {
	margin-right: 60px !important;
}

/* "Where are you headed?" dropdown (hc-toggle) and its checkbox list (hc-destinations) */
.hello-contact:not(.hc-js) .hc-toggle-field {
	display: none;
}
#contact-form .hello-contact .hc-toggle-field {
	margin-bottom: 12px;
}
#contact-form .hello-contact .hc-toggle {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	min-height: 84px;
	margin: 0;
	padding: 20px 114px 20px 30px;
	font-family: "proxima-nova", sans-serif;
	font-size: 1.3rem;
	font-weight: 400;
	line-height: 1.2em;
	letter-spacing: -0.11px;
	text-align: left;
	color: #5d4961;
	background: #f2f0f0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
}
#contact-form .hello-contact .hc-toggle::after,
#contact-form .hello-contact .hc-toggle::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 84px;
	height: 84px;
}
#contact-form .hello-contact .hc-toggle::after {
	background-color: #702082;
}
/* the arrow sits on its own layer so only the arrow flips, not the purple square */
#contact-form .hello-contact .hc-toggle::before {
	z-index: 1;
	background: url(../img/arrow-contact-down.svg) no-repeat center;
	transition: transform 0.2s;
}
#contact-form .hello-contact .hc-toggle[aria-expanded="true"]::before {
	transform: rotate(180deg);
}
#contact-form .hello-contact .hc-toggle:focus-visible {
	outline: 2px solid #702082;
	outline-offset: 2px;
}
#contact-form .hello-contact.hc-js .hc-destinations:not(.hc-open) {
	display: none;
}
#contact-form .hello-contact .hc-destinations {
	margin-top: -18px;
	margin-bottom: 12px;
	padding: 18px 30px 24px;
	background: #f2f0f0;
}

#contact-form .hello-contact input[type=submit] {
	height: 66px;
	max-width: 180px;
	margin: 0 0 0 auto;
	padding: 0 36px;
	font-size: 22px;
	line-height: 66px;
	font-family: "din-condensed", sans-serif;
	font-weight: 400;
	vertical-align: middle;
	text-align: center;
	color: white;
	text-transform: uppercase;
	text-decoration: none;
	background-color: #702082;
	border: 1px solid #702082;
	outline: none;
}
#contact-form .hello-contact input[type=submit]:hover {
	color: #702082;
	text-decoration: none;
	background-color: white;
	border-color: #702082;
}

/* Email AND/OR Phone on one row */
@media (min-width: 640px) {
	#contact-form .hello-contact .hc-or {
		grid-column: span 2;
		padding-top: 6px;
		text-align: center;
		margin-left: auto;
		margin-right: auto;
	}
	#contact-form .hello-contact .hc-email {
		grid-column: span 5;
		margin-right: -30px;
	}
	#contact-form .hello-contact .hc-phone {
		grid-column: span 5;
		margin-left: -30px;
	}
}
@media (max-width: 767px) {
	#contact-form .hello-contact .hc-email,
	#contact-form .hello-contact .hc-phone {
		grid-column: span 12;
		margin-left: 0;
		margin-right: 0;
	}
	#contact-form .hello-contact .hc-or {
		display: none;
	}
	#contact-form .hello-contact input.gfield-choice-input {
		height: 24px;
		width: 24px;
	}
}
@media (max-width: 480px) {
	#contact-form .hello-contact .hc-toggle,
	#contact-form .hello-contact textarea::placeholder,
	#contact-form .hello-contact input::placeholder,
	#contact-form .hello-contact input {
		font-size: 1rem !important;
		line-height: 1.4em;
	}
}

/* Confirmation (replaces the form after a successful send) */
#contact-form .gform_confirmation_wrapper.hello-contact {
	flex: 0 1 857px;
	align-self: center;
	margin-right: 60px;
}
#contact-form .gform_confirmation_wrapper.hello-contact .gform_confirmation_message {
	padding: 40px 30px;
	font-family: "proxima-nova", sans-serif;
	font-size: 23px;
	line-height: 1.4;
	text-align: center;
	color: #5d4961;
	background: #f2f0f0;
}
