/* Contact form (contact page), styled like the Groupe Arcade quote form, in the Arcade Sécurité blue */
.contact-form .bloc-form {
	margin: 50px 0 30px 0;
}

.contact-form__required {
	color: #dc3545;
}

/* Visible border on focus (main.css removes it on every .form-control) */
.contact-form .form-control:focus,
.contact-form .custom-select:focus {
	border: 1px solid #4E9AD3;
	-webkit-box-shadow: 0 0 0 0.2rem rgba(78, 154, 211, 0.25);
	box-shadow: 0 0 0 0.2rem rgba(78, 154, 211, 0.25);
}

.contact-form .form-control.is-invalid:focus {
	border-color: #dc3545;
	-webkit-box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
	box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Phone: country code + number */
.contact-form__phone-code {
	width: 30%;
	min-width: 105px;
}

	.contact-form__phone-code .custom-select {
		border-radius: 0;
		font-size: 0.9rem;
	}

/* Consent checkbox */
.contact-form .custom-control-label {
	font-size: 0.9rem;
	color: #666;
}

.contact-form .custom-control-input:checked ~ .custom-control-label::before {
	color: #fff;
	border-color: #4E9AD3;
	background-color: #4E9AD3;
}

.contact-form .custom-control-input:focus ~ .custom-control-label::before {
	box-shadow: 0 0 0 0.2rem rgba(78, 154, 211, 0.25);
}

.contact-form .custom-control-input:focus:not(:checked) ~ .custom-control-label::before {
	border-color: #4E9AD3;
}

.contact-form .custom-control-input:not(:disabled):active ~ .custom-control-label::before {
	color: #fff;
	background-color: #a9d0ec;
	border-color: #a9d0ec;
}

/* Submit button */
.contact-form__submit {
	background-color: #4E9AD3;
	color: #fff;
	font-weight: bold;
	padding: 10px 40px;
	border-radius: 5px;
	border: none;
	text-transform: uppercase;
}

	.contact-form__submit:hover,
	.contact-form__submit:focus,
	.contact-form__submit:active {
		background-color: #1f89d8;
		color: #fff;
	}

/* Anti-bot field, hidden from visitors */
.contact-form__website {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.contact-form__captcha {
	text-align: center;
	margin-bottom: 15px;
}

	.contact-form__captcha .g-recaptcha {
		display: inline-block;
	}

	.contact-form__captcha.has-error .g-recaptcha {
		outline: 2px solid #dc3545;
	}

/* Small screens: the 304px wide reCAPTCHA box is scaled down to fit */
@media (max-width: 340px) {
	.contact-form__captcha .g-recaptcha {
		transform: scale(.85);
		transform-origin: center top;
	}
}
