/*
 * Contact and recruitment pages (contact.php, recrutement.php): their column
 * layout, the form panel and its fields, and the job cards. Loaded after
 * site.css on those two pages only.
 */

/* ======================================================================
   Page layout
   ====================================================================== */

.contact-form-col {
	width: 70%;
}

.contact-info-col {
	width: 30%;
}

.jobs-form-col {
	width: 75%;
}

.jobs-list-col {
	width: 25%;
}

@media (max-width: 768px) {
	.contact-info-col,
	.jobs-list-col {
		max-width: 400px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* ---- Contact details and map ---- */

.contact-info {
	display: flow-root;
	margin: 0 20px 20px;
}

.contact-info__details {
	margin-bottom: 20px;
}

.contact-info > h2 {
	font-size: 24px;
}

.contact-info__details h2 {
	color: var(--blue);
	font-size: 20px;
}

.contact-info__map {
	width: 400px;
	height: 300px;
	max-width: 100%;
	border: 0;
}

/* Stand-in for the map until cookies are accepted */
.map-consent {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 20px;
	background: #eee;
	color: #555;
	text-align: center;
}

/* "Accept cookies" button of the map and reCAPTCHA stand-ins */
.consent-button {
	padding: 10px 15px;
	border: 0;
	background: var(--blue);
	color: #fff;
	font-weight: 600;
}

.consent-button:hover,
.consent-button:focus-visible {
	background: var(--blue-alt);
}

/* Map sits next to the address on tablets, both 20px lower */
@media (min-width: 500px) and (max-width: 1100px) {
	.contact-info {
		padding-top: 20px;
	}

	.contact-info > h2 {
		margin-top: 0;
	}

	.contact-info__details {
		float: left;
	}

	.contact-info__map {
		float: right;
		width: 350px;
		height: 230px;
		margin-top: 20px;
		margin-right: 20px;
	}
}

@media (min-width: 768px) and (max-width: 1100px) {
	.contact-info__map {
		width: 400px;
		margin-right: 30px;
	}
}

/* ---- Job cards ---- */

.jobs-list__title {
	color: var(--blue);
	font-size: 30px;
}

.jobs-list {
	display: flow-root;
	margin: 30px 0 20px;
}

.job-card {
	overflow: hidden;
	width: 300px;
	margin-bottom: 30px;
	background: #fff;
	box-shadow: rgba(0, 0, 0, 0.1) 0 0 10px 1px;
}

.job-card__text {
	padding: 20px;
}

.job-card__title {
	margin: 0;
	padding: 0 0 5px;
	font-size: 20px;
	line-height: 26px;
}

.job-card__title a {
	color: var(--heading);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 20px;
}

.job-card__more {
	margin-top: 10px;
	font-weight: 600;
	text-decoration: underline;
}

.job-card__title a:hover,
.job-card__more a {
	color: var(--yellow);
}

.job-card__more a {
	font-size: 16px;
}

@media (max-width: 640px) {
	.jobs-list__title {
		text-align: center;
	}
}

/* ======================================================================
   Form
   ====================================================================== */

.form-panel {
	margin-right: 40px;
	padding: 40px;
	box-shadow: rgba(0, 0, 0, 0.2) 0 0 15px 0;
}

.form {
	margin-bottom: 24px;
}

.form p {
	margin: 0;
}

.form__noscript {
	color: #900;
}

/* "Message sent" box (?sent=1) */
.form__success {
	margin: 0 auto 24px;
	padding: 15px;
	border: 1px solid #b4d39b;
	background: #e0ffc7;
	color: #333;
}

.form__success p:last-of-type {
	margin: 0;
}

/* ---- Fields ---- */

.field {
	clear: both;
	padding: 10px 0;
}

.field--half {
	float: left;
	clear: none;
	width: 48%;
	margin-left: 4%;
}

.field--first {
	clear: both;
	margin-left: 0;
}

/* Honeypot field, hidden from humans */
.field--hp {
	display: none;
}

.field__label {
	display: block;
	margin: 0 0 4px;
	color: #555;
	font-size: 16px;
	line-height: 1.3;
}

.field__required {
	color: var(--yellow);
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
	display: block;
	width: 100%;
	height: 38px;
	padding: 6px 10px;
	border: 0;
	border-radius: 2px;
	background-color: #ddd;
	color: #333;
	font-size: 16px;
	line-height: 1.3;
	vertical-align: middle;
	outline: none;
}

.form textarea {
	overflow: auto;
	height: 120px;
}

.form input[type="file"] {
	background-color: #ddd;
	font-size: 14px;
	vertical-align: middle;
	outline: none;
}

.form .field__input--medium {
	max-width: 60%;
}

.form__captcha {
	clear: both;
	padding: 10px 0 20px;
}

/* Shown instead of reCAPTCHA until cookies are accepted (removed by site.js) */
.form .form__captcha-consent {
	padding: 15px;
	background: #eee;
	color: #555;
}

.form .consent-button {
	display: block;
	margin-top: 10px;
}

.form__captcha-error {
	margin-top: 10px;
	color: #c00;
}

.form__actions {
	position: relative;
	clear: both;
	padding: 10px 0 0;
}

.form__submit {
	padding: 10px 25px;
	border: 1px solid #ddd;
	background: var(--yellow);
	box-shadow: rgba(0, 0, 0, 0.1) 0 0 10px 2px;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	vertical-align: middle;
}

.form__submit:hover,
.form__submit:focus {
	border-color: #ccc;
}

@media (max-width: 640px) {
	.form-panel {
		margin-right: 0;
		box-shadow: none;
	}

	.field--half {
		width: 100%;
		margin-left: 0;
	}

	.form__submit {
		margin: 25px 0;
	}
}

@media (max-width: 600px) {
	.field:not(.field--phone) {
		overflow-x: hidden;
	}

	.field > *,
	.form .field__input--medium {
		max-width: 100%;
	}
}
