/* ==========================================================================
   Contact: the office bands with their world map, and the contact form.
   Measured on the original /contact at 1612, 1024 and 375 pixels wide; the
   form (RSForm! Pro, laid out in the original's markup) follows the
   original's own (never shown) Gravity Forms styling.
   ========================================================================== */

/* Each block at least 710 high, as the original's page wrappers */
.eve-contact {
	display: flow-root;
	min-height: 710px;
	margin: 20px 0 15px;
	padding-top: 10px;
}

@media (min-width: 768px) {
	.eve-contact {
		margin: 0;
		padding: 50px 0;
	}
}

/* Between 990 and 1279 the original's wrapper has no side padding */
@media (min-width: 990px) and (max-width: 1279px) {
	.eve-contact {
		margin: 0 -20px;
	}
}

/* --------------------------------------------------------------------------
   Office band: city, details, map; the map comes in when it is active
   -------------------------------------------------------------------------- */

.eve-contact__office {
	display: flow-root;
	margin: 0 -20px;
}

@media (min-width: 768px) {
	.eve-contact__office {
		display: flex;
		height: 200px;
		border-bottom: 1px solid #2e3134;
	}

	.eve-contact__office.is-active {
		background-color: var(--eve-bg-footer);
		border-bottom: 0;
	}

	.eve-contact__city,
	.eve-contact__details,
	.eve-contact__map-col {
		width: 33.3333%;
	}
}

.eve-contact__city {
	display: flex;
	align-items: center;
	padding-left: 50px;
}

.eve-contact__city > div {
	display: flow-root;
}

.eve-contact__city-name {
	margin: 22px 0 -10px;
	font-size: 29px;
}

.eve-contact__country {
	margin: 8px 0 10px;
	font-family: var(--eve-font-semibold);
	font-size: 16px;
	line-height: 1.1;
	letter-spacing: 0.02em;
	color: #3e454a;
}

@media (min-width: 768px) {
	.eve-contact__city-name {
		margin-top: 20px;
		font-size: 36px;
	}

	.eve-contact__country {
		margin-top: 10px;
		font-size: 18px;
	}
}

@media (min-width: 1280px) {
	.eve-contact__country {
		color: var(--eve-icon);
	}
}

.eve-contact__details {
	display: flex;
	align-items: center;
	margin: 17px 0 53px;
	padding-left: 50px;
}

@media (min-width: 768px) {
	.eve-contact__details {
		margin: 0;
		padding: 0 20px;
	}
}

.eve-contact__details table {
	border-collapse: collapse;
}

.eve-contact__details th,
.eve-contact__details td {
	padding: 0;
	text-align: left;
	vertical-align: top;
}

.eve-contact__details th {
	width: 60px;
	font-weight: 400;
	color: #3e454a;
}

@media (min-width: 768px) {
	.eve-contact__details th {
		width: 90px;
	}
}

@media (min-width: 1280px) {
	.eve-contact__details th {
		color: var(--eve-icon);
	}
}

/* The address takes the space of the original's paragraph */
.eve-contact__details tr:first-child td {
	padding-bottom: 10px;
}

/* The map: the world map at the office's zoom, a pin on the city */
.eve-contact__map {
	position: relative;
	overflow: hidden;
}

.eve-contact__map--wide {
	display: none;
}

.eve-contact__map--phone {
	height: 200px;
	background-color: var(--eve-bg-footer);
}

@media (min-width: 768px) {
	.eve-contact__map--wide {
		display: block;
		width: calc(100% - 40px);
		height: 200px;
		margin-left: 20px;
		opacity: 0;
		transform: translateX(20px);
		transition: opacity 1s ease;
	}

	.eve-contact__map--phone {
		display: none;
	}

	.eve-contact__office.is-active .eve-contact__map--wide {
		opacity: 1;
	}
}

.eve-contact__map-wrap {
	position: absolute;
	inset: 0;
}

.eve-contact__world {
	position: absolute;
	margin-left: -100px;
	background: url(../images/overview/worldmap.svg) 0 0 / contain no-repeat;
}

.eve-contact__pin {
	position: absolute;
	top: 60px;
	left: 145px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.2);
}

.eve-contact__pin::after {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	margin: 25px;
	border-radius: 50%;
	background-color: #fff;
}

@media (min-width: 768px) {
	.eve-contact__map--wide .eve-contact__map-wrap {
		margin-left: -50px;
		transform: scale(0.95);
		transition: transform 1s;
	}

	.eve-contact__map--wide .eve-contact__pin {
		margin-left: -50px;
		transform: scale(10);
		transition: transform 0.5s;
	}

	.eve-contact__office.is-active .eve-contact__map-wrap,
	.eve-contact__office.is-active .eve-contact__pin {
		transform: scale(1);
	}
}

@media (min-width: 1280px) {
	.eve-contact__map--wide .eve-contact__world {
		margin-left: 0;
	}

	.eve-contact__map--wide .eve-contact__pin {
		left: 245px;
	}
}

/* --------------------------------------------------------------------------
   Get in touch: the form
   -------------------------------------------------------------------------- */

.eve-contact__form-title {
	margin: 20px 0 10px;
	font-size: 38px;
}

.eve-contact__form-text {
	margin: 10px 0 40px;
	font-family: var(--eve-font-semibold);
	font-size: 18px;
	line-height: 1.1;
	letter-spacing: 0.02em;
	color: var(--eve-icon);
}

.eve-cform__fields {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.eve-cform__field {
	margin-bottom: 20px;
}

.eve-cform label {
	display: block;
	margin-bottom: 8px;
	font-family: var(--eve-font-semibold);
}

.eve-cform input[type="text"],
.eve-cform input[type="tel"],
.eve-cform input[type="email"],
.eve-cform textarea {
	display: block;
	width: 100%;
	padding: 15px;
	font: inherit;
	letter-spacing: normal;
	color: #fff;
	background-color: var(--eve-bg);
	border: 1px solid #2e3134;
	border-radius: 0;
}

@media (min-width: 768px) {
	.eve-cform input[type="text"],
	.eve-cform input[type="tel"],
	.eve-cform input[type="email"],
	.eve-cform textarea,
	.eve-cform__consent,
	.eve-cform__status,
	.eve-cform__footer,
	.eve-cform__thanks {
		width: 70%;
	}
}

.eve-cform textarea {
	resize: vertical;
}

.eve-cform ::placeholder {
	color: var(--eve-icon);
	opacity: 1;
}

.eve-cform input:focus,
.eve-cform textarea:focus {
	border-color: #919ea8;
	outline: none;
}

.eve-cform input:-webkit-autofill {
	-webkit-text-fill-color: #fff;
	-webkit-box-shadow: 0 0 0 1000px var(--eve-bg) inset;
}

/* RSForm's marks: the field it refused and its message under it */
.eve-cform .rsform-error.rsform-input-box,
.eve-cform .rsform-error.rsform-text-box {
	border-color: #c2ae69;
}

.eve-cform .formError {
	display: block;
	margin-top: 8px;
	font-size: 12px;
	font-weight: 400;
	color: #c2ae69;
}

/* The trap field, out of sight */
.eve-cform__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.eve-cform__consent {
	margin: 0 0 20px;
	font-size: 12px;
	color: var(--eve-icon);
}

/* RSForm puts the tick box inside its label */
.eve-cform__consent label {
	position: relative;
	display: block;
	margin: 0;
	padding-left: 23px;
	font-family: var(--eve-font);
}

.eve-cform__consent input {
	position: absolute;
	top: 4px;
	left: 0;
	margin: 0;
	accent-color: #fff;
}

.eve-cform__consent a {
	color: #fff;
	text-decoration: underline;
}

.eve-cform__status {
	margin: 0 0 20px;
	font-size: 15px;
}

.eve-cform__status.is-error {
	color: #c2ae69;
}

.eve-cform__thanks {
	margin: 0 0 20px;
	font-size: 15px;
}

.eve-cform__footer {
	text-align: right;
}

.eve-cform .rsform-submit-button {
	padding: 15px;
	font: inherit;
	letter-spacing: inherit;
	color: #fff;
	background-color: var(--eve-bg);
	border: 2px solid #fff;
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.3s, border-color 0.3s;
}

.eve-cform .rsform-submit-button:hover {
	background-color: rgba(69, 72, 74, 0.8);
	border-color: rgba(69, 72, 74, 0.8);
}

.eve-cform .rsform-submit-button[disabled] {
	opacity: 0.5;
	cursor: default;
}
