/*
 * Functional styles for the order form and customer pages only. Visual styling
 * (colours, fonts, the step/option boxes) stays in the theme/Elementor as before.
 */
.iw-order-message {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-left: 4px solid #15518f;
	background: rgba(21, 81, 143, 0.08);
	color: #15518f;
}

.iw-customer input,
.iw-customer textarea {
	width: 100%;
}

@media (min-width: 768px) {
	#iw-order #frmAccount,
	#iw-order #frmLogIn {
		width: 50%;
		float: left;
		padding: 15px;
	}
}

#iw-order #frmAccount div div,
#iw-order #frmLogIn div div {
	text-align: center;
}

.iw-customer-account #btnSave {
	margin-top: 10px;
}

/* Content for screen readers only. */
.iw-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Step headings receive focus when a step opens; no outline needed on them. */
.order-section-title h2:focus {
	outline: none;
}

/* A clearly visible keyboard focus on every control of the order/customer pages. */
#iw-order a:focus-visible,
#iw-order input:focus-visible,
#iw-order select:focus-visible,
#iw-order textarea:focus-visible,
.iw-customer a:focus-visible,
.iw-customer input:focus-visible,
.iw-order-mini select:focus-visible,
.iw-order-mini input:focus-visible {
	outline: 3px solid #15518f;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px #fff;
}

/* Progress bar: where the customer is in the order. Done steps are ticked
   in the site blue; the current step is yellow with blue, like the active
   item in the site's menu ("Order Now"); steps to come are outlined. */
.iw-progress {
	margin: 0 0 32px;
}
.iw-progress ol {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}
.iw-progress li {
	position: relative;
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0 4px;
	text-align: center;
	font-size: 14px;
	line-height: 1.25;
	color: #5f6b77;
}
/* Connecting line between the steps. */
.iw-progress li + li::before {
	content: "";
	position: absolute;
	top: 19px;
	right: 50%;
	left: -50%;
	height: 2px;
	background: #dcdcdc;
}
.iw-progress li.is-done + li::before,
.iw-progress li.is-current::before {
	background: #15518f;
}
.iw-progress-dot {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 2px solid #dcdcdc;
	border-radius: 50%;
	background: #fff;
	color: #8a949e;
}
.iw-progress-dot svg {
	width: 18px;
	height: 18px;
}
.iw-progress-dot svg + svg,
.iw-progress li.is-done .iw-progress-dot svg:first-child {
	display: none;
}
.iw-progress li.is-done .iw-progress-dot svg + svg {
	display: block;
}
.iw-progress li.is-done .iw-progress-dot {
	border-color: #15518f;
	background: #15518f;
	color: #fff;
}
.iw-progress li.is-current .iw-progress-dot {
	border-color: #eeee22;
	background: #eeee22;
	color: #15518f;
}
.iw-progress li.is-done,
.iw-progress li.is-current {
	color: #15518f;
}
.iw-progress li.is-current .iw-progress-label {
	font-weight: 700;
}
/* Phones: one line of text ("Step 2 of 6 · Date & Price") over a slim
   segmented bar - done segments blue, the current one yellow. */
.iw-progress-mobile {
	display: none;
}
@media (max-width: 600px) {
	.iw-progress {
		margin-bottom: 24px;
	}
	.iw-progress-mobile {
		display: block;
		margin: 0 0 8px;
		font-size: 14px;
		font-weight: 600;
		text-align: center;
		color: #15518f;
	}
	.iw-progress ol {
		gap: 4px;
	}
	.iw-progress li {
		height: 6px;
		padding: 0;
		border-radius: 3px;
		background: #dcdcdc;
	}
	.iw-progress li + li::before,
	.iw-progress-dot {
		display: none;
	}
	/* Names stay available to screen readers (the text line above is for sight). */
	.iw-progress-label {
		position: absolute !important;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}
	.iw-progress li.is-done {
		background: #15518f;
	}
	.iw-progress li.is-current {
		background: #eeee22;
		box-shadow: inset 0 0 0 1px #c9c91a;
	}
}

/* Icons inside text. */
#iw-order .iw-icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	vertical-align: -3px;
}

/* Step 6: what happens when Place Order is clicked. */
.iw-secure-note {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
	margin: 20px auto 0;
	max-width: 640px;
	text-align: left;
	color: #2c3e50;
}
.iw-secure-note svg {
	flex: 0 0 auto;
	margin-top: 3px;
	color: #15518f;
}

/* A choice with only one option (e.g. one fuel type), shown as text. */
.iw-fixed-value {
	display: block;
	padding: 10px 0;
	font-size: 16px;
	font-weight: 600;
	color: #15518f;
}

/* ---------- Loading states ---------- */

/* Small spinner, inherits the text colour. */
.iw-spinner {
	display: inline-block;
	width: 1em;
	height: 1em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	vertical-align: -0.15em;
	animation: iw-spin 0.7s linear infinite;
}
@keyframes iw-spin {
	to {
		transform: rotate(360deg);
	}
}
@media (prefers-reduced-motion: reduce) {
	.iw-spinner {
		animation-duration: 2s;
	}
}

/* Get My Quote while prices are fetched. */
#iw-order #btnToStep2.is-busy {
	cursor: wait;
	opacity: 1;
}
#iw-order #btnToStep2 .iw-spinner {
	margin-right: 8px;
}

/* Arriving from a quick quote form: a short note where the form will appear. */
#iw-order .iw-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 40px 0;
	font-size: 17px;
	font-weight: 600;
	color: #15518f;
}
#iw-order .iw-loading[hidden] {
	display: none;
}

/* Sending the customer to the payment page. */
.iw-busy {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 26px;
	border-top: 4px solid #eeee22;
	border-radius: 3px;
	background: #fff;
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
	font-size: 17px;
	font-weight: 600;
	color: #0b3a6b;
	white-space: nowrap;
}
.iw-busy p {
	margin: 0;
}
.iw-busy .iw-spinner {
	color: #15518f;
	font-size: 20px;
}

/* ---------- Quick quote form ([order-mini]) placed anywhere on the site ---------- */

/* Full-width choices, as before (the old form styled them by ID). */
.iw-order-mini select {
	width: 100%;
	max-width: 100%;
}
/* One fuel type shown as text: take the colour and font of the box it sits in
   (it was invisible on the navy box). */
.iw-order-mini .iw-fixed-value {
	padding: 6px 0;
	font-family: inherit;
	font-size: 1.05em;
	color: inherit;
}
