/*
 * The popups of the site, made to look like the rest of it: a dark backdrop, a white rounded card, a navy
 * heading, soft fields and the orange button. The script of the popups still places the card with inline styles, so the
 * position and the size are set again here with !important and the card is simply centred under the top of the page.
 */
.modal-overlay.popmake-overlay {
	background: rgba(5, 0, 56, 0.62) !important;
	overflow-y: auto !important;
}

.modal-overlay .modal-container {
	position: relative !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	width: min(460px, calc(100% - 32px)) !important;
	min-width: 0 !important;
	max-width: 460px !important;
	height: auto !important;
	margin: clamp(12px, 4vh, 40px) auto 24px !important;
	padding: 24px 28px 22px !important;
	overflow: hidden;
	border: 0 !important;
	border-radius: 22px !important;
	background: #fff !important;
	box-shadow: 0 30px 80px rgba(5, 0, 56, 0.35) !important;
	animation: popup-modern-in 0.28s ease-out;
}

.modal-overlay .modal-container::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 6px;
	background: linear-gradient(90deg, #050038, #f5a041);
}

@keyframes popup-modern-in {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.modal-overlay .modal-content {
	color: #393131;
	font-family: Roboto, sans-serif;
	text-align: center;
}

.modal-overlay .modal-content > p:empty {
	display: none;
}

/* The picture, in a soft round badge. */
.modal-overlay .modal-content > p:first-child {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 8px;
	border-radius: 50%;
	background: #e9ecff;
}

.modal-overlay .modal-content > p:first-child img,
.modal-overlay .modal-content > p:first-child svg {
	width: 36px;
	height: auto;
}

.modal-overlay .modal-content .block-heading {
	margin: 0;
	color: #050038;
	font-family: Roboto, sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

.modal-overlay .modal-content .block-paragraph {
	margin: 4px 0 0;
	color: #5b5f8a;
	font-size: 15px;
	line-height: 1.4;
}

/* "Limited free slots available" becomes a small badge. */
.modal-overlay .modal-content .enquiry-badge {
	display: inline-block;
	margin: 8px 0 0;
	padding: 3px 12px;
	border-radius: 999px;
	background: #ffebd3;
	color: #6b3a00;
	font-size: 13px;
	font-weight: 700;
}

.modal-overlay .enquiry-form {
	margin-top: 10px;
	text-align: left;
}

.modal-overlay .enquiry-form form > p {
	margin: 0 0 10px;
}

.modal-overlay .enquiry-form label {
	display: block;
	margin-bottom: 4px;
	color: #050038;
	font-size: 14px;
	font-weight: 500;
}

.modal-overlay .enquiry-form br {
	display: none;
}

.modal-overlay .enquiry-input {
	box-sizing: border-box;
	width: 100% !important;
	height: 42px;
	padding: 0 14px;
	border: 1px solid #dfe3f5 !important;
	border-radius: 12px !important;
	background: #f7f8ff !important;
	color: #393131;
	font-family: Roboto, sans-serif;
	font-size: 16px;
	transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.modal-overlay .enquiry-input::placeholder {
	color: #9a9dbd;
}

.modal-overlay .enquiry-input:focus {
	border-color: #050038 !important;
	outline: 0;
	background: #fff !important;
	box-shadow: 0 0 0 3px rgba(245, 160, 65, 0.35);
}

.modal-overlay button.enquiry-submit {
	box-sizing: border-box;
	width: 100% !important;
	height: 46px;
	margin-top: 2px;
	padding: 0 20px;
	border: 0 !important;
	border-radius: 12px !important;
	background: #f5a041 !important;
	color: #1a1200 !important;
	font-family: Roboto, sans-serif;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.15s, transform 0.1s;
}

.modal-overlay button.enquiry-submit:hover {
	background: #ffb45f !important;
}

.modal-overlay button.enquiry-submit:active {
	transform: translateY(1px);
}

.modal-overlay .enquiry-error {
	margin-top: 4px;
	color: #c0392b;
	font-size: 13px;
}

.modal-overlay .enquiry-message {
	margin: 12px 0 0 !important;
	padding: 10px 14px !important;
	border-radius: 10px;
	font-size: 14px;
}

/* The close button, a round button in the corner. */
.modal-overlay .modal-close {
	top: 14px !important;
	right: 14px !important;
	left: auto !important;
	bottom: auto !important;
	display: grid !important;
	place-items: center;
	width: 36px !important;
	height: 36px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #e9ecff !important;
	color: #050038 !important;
	transition: background-color 0.15s, color 0.15s;
}

.modal-overlay .modal-close:hover,
.modal-overlay .modal-close:focus-visible {
	background: #050038 !important;
	color: #fff !important;
}

@media (max-width: 480px) {
	.modal-overlay .modal-container {
		padding: 20px 18px 18px !important;
		border-radius: 18px !important;
	}

	.modal-overlay .modal-content .block-heading {
		font-size: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.modal-overlay .modal-container {
		animation: none;
	}
}

/* The new form: the select looks like the fields, the hidden trap stays out of sight, the answers show under the button. */
.modal-overlay select.enquiry-input {
	appearance: none;
	background: #f7f8ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23050038' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center !important;
	padding-right: 40px;
}

.modal-overlay .enquiry-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.modal-overlay .enquiry-error {
	display: block;
}

.modal-overlay .enquiry-error:empty,
.modal-overlay .enquiry-message:empty {
	display: none;
}

.modal-overlay .enquiry-message.is-error {
	background: #fdecea;
	color: #8a1f17;
}

.modal-overlay .enquiry-submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.modal-overlay .enquiry-done {
	padding: 18px 0 8px;
	text-align: center;
}

.modal-overlay .enquiry-done[hidden],
.modal-overlay .enquiry-form[hidden] {
	display: none;
}

.modal-overlay .enquiry-done-icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: #e3f7ec;
	color: #0b7a43;
}

.modal-overlay .enquiry-done h3 {
	margin: 0;
	color: #050038;
	font-size: 24px;
	font-weight: 700;
}

.modal-overlay .enquiry-done p {
	margin: 8px 0 0;
	color: #5b5f8a;
	font-size: 16px;
}

/* Once the form is sent, the popup shows only the thanks. */
.modal-overlay .modal-content.is-done > :not(.enquiry-done) {
	display: none;
}

/* The enquiry form at the bottom of every page. */
.enquiry-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.enquiry-footer-form[hidden],
.enquiry-footer-done[hidden] {
	display: none;
}

.enquiry-footer-error {
	display: block;
	margin-top: 4px;
	color: #b3261e;
	font-size: 13px;
	font-weight: 500;
}

.enquiry-footer-error:empty,
.enquiry-footer-message:empty {
	display: none;
}

.enquiry-footer-message {
	margin: 10px 0 0;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 14px;
}

.enquiry-footer-message.is-error {
	background: #fdecea;
	color: #8a1f17;
}

.enquiry-footer-form .form-submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.enquiry-footer-done {
	padding: 24px 0;
	text-align: center;
}

.enquiry-footer-done h3 {
	margin: 0;
	color: #050038;
	font-size: 26px;
	font-weight: 700;
}

.enquiry-footer-done p {
	margin: 8px 0 0;
	color: #393131;
	font-size: 17px;
}

/*
 * The layout of the footer form: four equal columns on a computer, two on a tablet and one on a phone. The old form
 * of the site sized its fields by their ids, so the new form does not lean on those rules.
 */
div.form-container .enquiry-footer-form .form-field-container {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	width: 100% !important;
	max-width: 1200px;
	margin: 0 auto;
}

div.form-container .enquiry-footer-form .form-field {
	width: 100% !important;
	margin: 0 !important;
	overflow: visible !important;
}

div.form-container .enquiry-footer-form .form-field input,
div.form-container .enquiry-footer-form .form-field select {
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	height: 48px;
	margin: 0 !important;
	padding: 0 14px;
	border: 1px solid #dfe3f5;
	border-radius: 10px;
	background-color: #fff;
	color: #393131;
	font-family: Roboto, sans-serif;
	font-size: 16px;
	line-height: normal;
	box-shadow: none;
}

div.form-container .enquiry-footer-form .form-field input:focus,
div.form-container .enquiry-footer-form .form-field select:focus {
	border-color: #050038;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(245, 160, 65, 0.35);
}

div.form-container .enquiry-footer-form .form-field select {
	appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23050038' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}

div.form-container .enquiry-footer-form .form-submit-container {
	margin-top: 18px;
	text-align: center;
}

div.form-container .enquiry-footer-form .form-submit {
	min-width: 160px;
	height: 48px;
	padding: 0 36px;
	border: 0;
	border-radius: 10px;
	background: #f5a041;
	color: #1a1200;
	font-family: Roboto, sans-serif;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.15s;
}

div.form-container .enquiry-footer-form .form-submit:hover {
	background: #ffb45f;
}

div.form-container .enquiry-footer-form .enquiry-footer-message {
	max-width: 1200px;
	margin: 12px auto 0;
	text-align: center;
}

@media (max-width: 900px) {
	div.form-container .enquiry-footer-form .form-field-container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	div.form-container .enquiry-footer-form .form-field-container {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* The Verify text inside the mobile number field: plain text with a thin line before it, no button background. */
.enquiry-phone-wrap { position: relative; display: block; }
.enquiry-phone-wrap input { padding-right: 96px !important; }
.enquiry-phone-wrap button.enquiry-verify,
.enquiry-phone-wrap button.enquiry-verify:hover,
.enquiry-phone-wrap button.enquiry-verify:focus,
.enquiry-phone-wrap button.enquiry-verify:active,
.enquiry-phone-wrap button.enquiry-verify:disabled {
	position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	height: 60%; min-height: 0; margin: 0; padding: 0 14px; border: 0; border-left: 1px solid #D1D5DB; border-radius: 0;
	background: none !important; box-shadow: none !important; outline: none;
	font: inherit; font-size: 14px; font-weight: 600; line-height: 1; color: #050038 !important; cursor: pointer;
}
.enquiry-phone-wrap button.enquiry-verify:disabled { color: #9CA3AF !important; cursor: not-allowed; }
