/*
 * Consultation form (Gravity Forms), styled to match the form it replaces: the original site's embedded form
 * (Bootstrap 4 controls with the clinic's overrides). Values are the original's computed styles, measured in
 * Chromium (audit/forms/*-original-*.json). Gravity Forms' own CSS is off.
 * Loaded only on pages that show the form.
 */
.weh-consultation-form_wrapper {
	font-family: Roboto, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: #000;
	text-align: left;
	/* The original form rendered in its own document, without the site's antialiased font smoothing. */
	-webkit-font-smoothing: auto;
	-moz-osx-font-smoothing: auto;
}

.weh-consultation-form_wrapper form {
	margin: 0;
	padding: 2%;
}

/* The original iframe was sized to its content + 1px. */
.weh-consultation-form_wrapper {
	padding-bottom: 1px;
}

.weh-consultation-form_wrapper .gform_fields {
	display: block;
	margin: 0;
	padding: 0;
}

.weh-consultation-form_wrapper .gfield {
	margin: 0 0 20px;
	padding: 0;
	border: 0;
	min-width: 0;
}

/* Labels and legends stay available to assistive technology; the original shows placeholders only. */
.weh-consultation-form_wrapper .gfield_label,
.weh-consultation-form_wrapper .gform_required_legend,
.weh-consultation-form_wrapper .gform_validation_container,
.weh-consultation-form_wrapper .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Honeypot and Gravity Forms' character counters (the browser enforces maxlength): never shown. */
.weh-consultation-form_wrapper .gform_validation_container,
.weh-consultation-form_wrapper .ginput_counter {
	display: none !important;
}

.weh-consultation-form_wrapper input[type="text"],
.weh-consultation-form_wrapper input[type="email"],
.weh-consultation-form_wrapper input[type="tel"],
.weh-consultation-form_wrapper textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 38px;
	margin: 0;
	padding: 6px 12px;
	font-family: Roboto, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: #495057;
	background-color: #fff;
	background-clip: padding-box;
	border: 1px solid #ced4da;
	border-radius: 12px;
	box-shadow: none;
	transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
	-webkit-appearance: none;
	appearance: none;
}

.weh-consultation-form_wrapper textarea {
	height: 86px;
	min-height: 0;
	overflow: auto;
	resize: vertical;
}

.weh-consultation-form_wrapper input::placeholder,
.weh-consultation-form_wrapper textarea::placeholder {
	color: #6c757d;
	opacity: 1;
}

.weh-consultation-form_wrapper input[type="text"]:focus,
.weh-consultation-form_wrapper input[type="email"]:focus,
.weh-consultation-form_wrapper input[type="tel"]:focus,
.weh-consultation-form_wrapper textarea:focus {
	color: #495057;
	background-color: #fff;
	border-color: #80bdff;
	outline: 0;
	box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25);
}

/* Consent checkboxes */
.weh-consultation-form_wrapper .gfield--type-checkbox .gfield_checkbox,
.weh-consultation-form_wrapper .gfield--type-checkbox .gchoice {
	margin: 0;
	padding: 0;
}

.weh-consultation-form_wrapper .gchoice {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
}

.weh-consultation-form_wrapper .gchoice input[type="checkbox"] {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 13px;
	height: 13px;
	margin: 0 10px 0 0;
	padding: 0;
}

.weh-consultation-form_wrapper .gchoice label {
	display: inline-block;
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
	color: #fff;
	cursor: default;
}

.weh-consultation-form_wrapper .gchoice label a {
	color: #007bff;
	text-decoration: none;
	background-color: transparent;
}

.weh-consultation-form_wrapper .gchoice label a:hover,
.weh-consultation-form_wrapper .gchoice label a:focus {
	color: #0056b3;
	text-decoration: underline;
}

/* Send button: 20px below the last field's 20px margin (padding, so the two do not collapse), 20px after. */
.weh-consultation-form_wrapper .gform_footer {
	margin: 0 0 20px;
	padding: 20px 0 0;
}

.weh-consultation-form_wrapper .gform_footer .gform_button {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 10px 15px;
	font-family: Roboto, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: #fff;
	text-align: center;
	background-color: rgb(3, 101, 140);
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.weh-consultation-form_wrapper .gform_footer .gform_button:hover,
.weh-consultation-form_wrapper .gform_footer .gform_button:active {
	color: #fff;
	background-color: rgb(22, 129, 171);
}

.weh-consultation-form_wrapper .gform_footer .gform_button:focus-visible,
.weh-consultation-form_wrapper .gchoice input[type="checkbox"]:focus-visible {
	outline: 2px solid #80bdff;
	outline-offset: 2px;
}

/* Validation (shown after a submission attempt), as the original: red message under the field, red/green borders. */
.weh-consultation-form_wrapper .gfield_validation_message,
.weh-consultation-form_wrapper .validation_message {
	display: block;
	width: 100%;
	margin-top: 4px;
	font-size: 80%;
	line-height: 1.5;
	color: #dc3545;
}

.weh-consultation-form_wrapper .gfield_error input[type="text"],
.weh-consultation-form_wrapper .gfield_error input[type="email"],
.weh-consultation-form_wrapper .gfield_error input[type="tel"],
.weh-consultation-form_wrapper .gfield_error textarea {
	border-color: #dc3545;
}

.weh-consultation-form_wrapper.gform_validation_error .gfield:not(.gfield_error) input[type="text"],
.weh-consultation-form_wrapper.gform_validation_error .gfield:not(.gfield_error) input[type="email"],
.weh-consultation-form_wrapper.gform_validation_error .gfield:not(.gfield_error) input[type="tel"],
.weh-consultation-form_wrapper.gform_validation_error .gfield:not(.gfield_error) textarea {
	border-color: #28a745;
}

.weh-consultation-form_wrapper .gform_validation_errors {
	margin: 0 2% 4px;
	padding: 0;
	color: #dc3545;
}

.weh-consultation-form_wrapper .gform_validation_errors h2 {
	margin: 0;
	font-family: inherit;
	font-size: 80%;
	font-weight: 400;
	line-height: 1.5;
	color: inherit;
}
