/*
 * Footer enquiry modal and form styles. The form rules (formWrap, fileInput,
 * parsley) are ported from the compiled CSS (index-CTd4ANgl.css). The modals are
 * new functionality (dead on live), so they use Bootstrap's centered modal with
 * only the ported title size; no live appearance to match.
 */

.modal-title {
	font-size: 1.5rem;
}

.formWrap {
	padding: 1rem 0;
	overflow: hidden;
}

.formWrap .form-group {
	position: relative;
}

.formWrap label {
	display: block;
	margin-bottom: 0.35rem;
}

/* File field: the real input is transparent and on top (still clickable); the
   span shows the current file name beneath it. */
.fileInput {
	position: relative;
}

.fileInput input {
	opacity: 0 !important;
	z-index: 2;
	position: relative;
}

.fileInput span {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border: 1px solid var(--secondaryColor);
	padding: 0.75rem 1.25rem;
	display: flex;
	align-items: center;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.parsley-error {
	border-color: red;
}

.parsley-errors-list {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 3;
	transform: translateY(100%);
	padding: 0;
	margin: 0;
	list-style-type: none;
	font-size: 0.8rem;
	color: red;
}

/* Spam trap: present in the markup for bots, not rendered at all otherwise.
   display:none keeps it out of the layout, out of the tab order and out of reach
   of browser autofill and password managers, which only fill rendered fields. An
   off-screen field is still a rendered field and did get autofilled, which cost
   genuine submissions. A display:none control is still posted with the form, so
   the trap itself works exactly as before. */
.amberHoneypot {
	display: none;
}
