/* ==========================================================================
   The Move It: "Get a quote" page (getaqout.php) and the enquiry forms
   --------------------------------------------------------------------------
   Loaded after moveit.css and moveit-inner.css, on the pages listed in
   moveit_has_quote_form() only.

   1. Page layout       3. Form: steps        5. Form: buttons and messages
   2. Service tabs      4. Form: fields       6. Side column

   Sections 3 to 5 style markup that comes from Contact Form 7 and its
   Multi-Step add-on. They apply inside any element with the class .mi-cf7:
   the quote page, and the form cards on the storage and real estate pages.
   The forms are edited in the dashboard, so the rules target the classes
   those forms use (.btnlists, .row, .mdatebox, ...) and are written to win
   over the older rules for them in css/style.css.
   ========================================================================== */

/* 1. Page layout ------------------------------------------------------------- */

/* The cream background starts behind the floating header. */
.mi-quote {
	margin-top: calc((var(--mi-header-space) + 20px) * -1);
	padding: calc(var(--mi-header-space) + 44px) 0 var(--mi-section);
	background: var(--mi-cream) radial-gradient(46% 520px at 88% 0%, rgba(233, 109, 9, 0.13), rgba(233, 109, 9, 0) 72%) no-repeat;
}

.mi-quote__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 368px);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
	margin-top: 22px;
}

.mi-quote__head {
	margin-bottom: clamp(26px, 3.4vw, 40px);
}

.mi-site .mi-quote__title {
	font-size: clamp(34px, 4.3vw, 56px);
	font-weight: 800;
	letter-spacing: -0.036em;
}

.mi-quote__promises {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.mi-quote__promises li {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	margin: 0;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--mi-ink);
}

.mi-quote__promises .mi-icon {
	width: 18px;
	height: 18px;
	color: var(--mi-orange);
}

.mi-quote__card {
	padding: clamp(18px, 3vw, 36px);
	border: 1px solid var(--mi-line);
	border-radius: var(--mi-radius-lg);
	background: var(--mi-white);
	box-shadow: var(--mi-shadow);
}

.mi-site .mi-quote__label {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--mi-ink);
}

/* 2. Service tabs ------------------------------------------------------------ */

.mi-quote__tabs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
}

.mi-site .mi-quote__tab {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	margin: 0;
	padding: 16px 8px 14px;
	border: 1px solid var(--mi-line);
	border-radius: 16px;
	background: var(--mi-cream);
	box-shadow: none;
	font-family: var(--mi-font);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0;
	text-align: center;
	color: var(--mi-text);
	cursor: pointer;
	transition: border-color 0.2s var(--mi-ease), background-color 0.2s var(--mi-ease), box-shadow 0.2s var(--mi-ease), color 0.2s var(--mi-ease);
}

.mi-quote__tab-icon {
	display: grid;
	flex: none;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 13px;
	background: var(--mi-white);
	box-shadow: var(--mi-shadow-sm);
	color: var(--mi-orange-text);
	transition: background-color 0.2s var(--mi-ease), color 0.2s var(--mi-ease);
}

.mi-site .mi-quote__tab:hover {
	border-color: rgba(233, 109, 9, 0.5);
	background: var(--mi-white);
	color: var(--mi-ink);
}

.mi-site .mi-quote__tab[aria-selected="true"] {
	border-color: var(--mi-orange);
	background: var(--mi-orange-50);
	box-shadow: inset 0 0 0 1px var(--mi-orange);
	color: var(--mi-ink);
}

.mi-quote__tab[aria-selected="true"] .mi-quote__tab-icon {
	background: var(--mi-orange);
	box-shadow: none;
	color: #1a0e02;
}

.mi-quote__panel {
	margin-top: clamp(20px, 2.6vw, 28px);
	padding-top: clamp(20px, 2.6vw, 28px);
	border-top: 1px solid var(--mi-line);
}

.mi-quote__panel[hidden] {
	display: none;
}

/* Without JavaScript the tabs cannot switch, so every form is shown. */
html:not(.mi-js) .mi-quote__panel[hidden] {
	display: block;
}

/* 3. Form: steps --------------------------------------------------------------- */

.mi-quote__progress {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 clamp(22px, 3vw, 30px);
	padding: 0;
	list-style: none;
}

.mi-quote__progress[hidden] {
	display: none;
}

.mi-quote__progress li {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--mi-muted);
	transition: color 0.3s var(--mi-ease);
}

.mi-quote__progress li::before {
	content: "";
	display: block;
	height: 4px;
	margin-bottom: 10px;
	border-radius: 4px;
	background: var(--mi-line);
	transition: background-color 0.3s var(--mi-ease);
}

.mi-quote__progress li span {
	display: block;
	margin-bottom: 2px;
	font-size: 12px;
	font-weight: 500;
	color: var(--mi-muted);
}

.mi-quote__progress :is(.is-done, .is-current) {
	color: var(--mi-ink);
}

.mi-quote__progress :is(.is-done, .is-current)::before {
	background: var(--mi-orange);
}

.mi-cf7 .wpcf7 {
	font-size: 15px;
	line-height: 1.5;
	color: var(--mi-text);
}

/* These two come from Contact Form 7's stylesheet, which loads late. */
.mi-cf7 .wpcf7 .screen-reader-response {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.mi-cf7 .wpcf7 .hidden-fields-container {
	display: none;
}

/* The add-on hides the other steps by moving them off to the side inside a
   clipped box, which also cuts off focus rings. Here only the open step is
   laid out at all. */
.mi-site .mi-cf7 .wpcf7-form,
.mi-site .mi-cf7 .fieldset-cf7mls-wrapper {
	margin: 0;
	overflow: visible;
}

.mi-site .mi-cf7 .fieldset-cf7mls-wrapper .fieldset-cf7mls {
	position: static;
	display: none;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: none;
}

.mi-site .mi-cf7 .fieldset-cf7mls-wrapper .fieldset-cf7mls.cf7mls_current_fs {
	display: block;
}

@media (prefers-reduced-motion: no-preference) {
	.mi-site .mi-cf7 .fieldset-cf7mls-wrapper .fieldset-cf7mls.cf7mls_current_fs {
		animation: mi-quote-step 0.4s var(--mi-ease);
	}
}

@keyframes mi-quote-step {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

/* 4. Form: fields -------------------------------------------------------------- */

.mi-site .mi-cf7 .wpcf7 p {
	margin: 0;
}

/* Step titles */
.mi-site .mi-cf7 .wpcf7 :is(h2, h3) {
	margin: 30px 0 14px;
	padding: 0;
	border-radius: 0;
	background: none;
	font-size: clamp(18px, 1.7vw, 20px);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.02em;
	text-align: left;
	color: var(--mi-ink);
}

/* Field group names, including the date question */
.mi-site .mi-cf7 .wpcf7 :is(h4, h5),
.mi-site .mi-cf7 .mdatebox :is(h2, h3),
.mi-site .mi-cf7 .mi-quote__field-label {
	display: block;
	margin: 22px 0 8px;
	padding: 0;
	background: none !important; /* one form sets a white background inline */
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0;
	text-align: left;
	color: var(--mi-ink);
}

.mi-site .mi-cf7 .wpcf7 :is(h2, h3, h4, h5) span {
	color: inherit;
}

/* (Contact Form 7 leaves an empty paragraph at the start of later steps, so
   "first child" would not find the step title.) */
.mi-site .mi-cf7 .fieldset-cf7mls > h2:first-of-type,
.mi-site .mi-cf7 .mdatebox > :first-child,
.mi-site .mi-cf7 .mi-quote__field-label {
	margin-top: 0;
}

.mi-cf7 .fieldset-cf7mls > p:empty {
	display: none;
}

/* Step one opens with the service's name; the selected tab already says it. */
.mi-site .mi-cf7 .fieldset-cf7mls:first-child > h2 {
	display: none;
}

.mi-site .mi-cf7 .mdatebox {
	max-width: none;
	margin: 0;
	text-align: left;
}

.mi-site .mi-cf7 .mdatebox .form-control {
	max-width: 280px;
	margin: 0;
}

.mi-site .mi-cf7 .wpcf7-form-control-wrap {
	display: block;
	margin: 0;
}

.mi-site .mi-cf7 .wpcf7 .row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
}

.mi-site .mi-cf7 .wpcf7 .fieldset-cf7mls > * + .row {
	margin-top: 22px;
}

.mi-site .mi-cf7 .wpcf7 .fieldset-cf7mls > :is(h4, h5) + .row {
	margin-top: 0;
}

.mi-site .mi-cf7 .wpcf7 .fieldset-cf7mls > .row + .row,
.mi-site .mi-cf7 .wpcf7 .fieldset-cf7mls > .btnlists + .row {
	margin-top: 14px;
}

.mi-site .mi-cf7 .wpcf7 .row > [class*="col-"] {
	flex: none;
	width: auto;
	max-width: none;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.mi-site .mi-cf7 .wpcf7 .row > :is(.col-md-12, .col-sm-12, p),
.mi-site .mi-cf7 .wpcf7 .row > :has(textarea) {
	grid-column: 1 / -1;
}

/* A send button typed straight into a row of fields (single-step forms). */
.mi-site .mi-cf7 .wpcf7 .row > p:has(.wpcf7-submit) {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 10px;
}

/* The site's "Additional CSS" (Appearance > Customize) indents buttons with
   the class .btn-custom by 15px, and marks that as !important. */
.mi-site .mi-cf7 .wpcf7 .wpcf7-submit.btn-custom {
	margin-left: 0 !important;
}

.mi-site .mi-cf7 .wpcf7 .mnote {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--mi-muted);
}

.mi-site .mi-cf7 .wpcf7 :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea) {
	display: block;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--mi-line);
	border-radius: 12px;
	background-color: var(--mi-cream);
	box-shadow: none;
	font-family: var(--mi-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--mi-ink);
	transition: border-color 0.2s var(--mi-ease), box-shadow 0.2s var(--mi-ease), background-color 0.2s var(--mi-ease);
	-webkit-appearance: none;
	appearance: none;
}

.mi-site .mi-cf7 .wpcf7 [hidden] {
	display: none;
}

.mi-site .mi-cf7 .wpcf7 select {
	padding-right: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a635b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px;
	cursor: pointer;
}

.mi-site .mi-cf7 .wpcf7 textarea {
	height: auto;
	min-height: 116px;
	padding-block: 13px;
	resize: vertical;
}

.mi-site .mi-cf7 .wpcf7 input[type="number"] {
	-moz-appearance: textfield;
}

/* Placeholders stand in for labels here, so they are darker than usual. */
.mi-site .mi-cf7 .wpcf7 ::placeholder {
	color: #766e64;
	opacity: 1;
}

.mi-site .mi-cf7 .wpcf7 .mi-quote__date:not(.has-value) {
	color: #766e64;
}

.mi-cf7 .wpcf7 input[type="date"]::-webkit-date-and-time-value {
	text-align: left;
}

.mi-cf7 .wpcf7 input[type="date"]::-webkit-calendar-picker-indicator {
	width: 18px;
	height: 18px;
	padding: 6px;
	margin-right: -6px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c544b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
	opacity: 1;
	cursor: pointer;
}

.mi-site .mi-cf7 .wpcf7 :is(input, select, textarea):focus {
	border-color: var(--mi-orange);
	background-color: var(--mi-white);
	box-shadow: 0 0 0 4px rgba(233, 109, 9, 0.16);
	outline: none;
}

.mi-site .mi-cf7 .wpcf7 .wpcf7-not-valid {
	border-color: #b3261e;
}

.mi-site .mi-cf7 .wpcf7 .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: #b3261e;
}

/* Choice buttons: each radio button covers its own pill. */
.mi-site .mi-cf7 .btnlists ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mi-site .mi-cf7 .btnlists li {
	position: static;
	display: block;
	margin: 0;
}

/* Font Awesome icons typed into the form; not every one of them exists. */
.mi-site .mi-cf7 .btnlists .fa {
	display: none;
}

.mi-site .mi-cf7 .btnlists :is(.wpcf7-radio, .wpcf7-list-item) {
	display: block;
	margin: 0;
}

.mi-site .mi-cf7 .btnlists label {
	position: relative;
	display: block;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 12px;
	font-size: inherit;
	text-align: left;
	cursor: pointer;
}

.mi-site .mi-cf7 .btnlists input[type="radio"] {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.mi-site .mi-cf7 .btnlists .wpcf7-list-item-label {
	display: flex;
	align-items: center;
	min-height: 46px;
	padding: 0 16px;
	border: 1px solid var(--mi-line);
	border-radius: 12px;
	background: var(--mi-white);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--mi-ink);
	transition: border-color 0.2s var(--mi-ease), background-color 0.2s var(--mi-ease), box-shadow 0.2s var(--mi-ease), color 0.2s var(--mi-ease);
}

.mi-site .mi-cf7 .btnlists .wpcf7-list-item-label::before,
.mi-site .mi-cf7 .btnlists .wpcf7-list-item-label::after {
	content: none;
}

.mi-site .mi-cf7 .btnlists label:hover .wpcf7-list-item-label {
	border-color: rgba(22, 18, 14, 0.32);
}

.mi-site .mi-cf7 .btnlists input:checked + .wpcf7-list-item-label {
	border-color: var(--mi-orange);
	background: var(--mi-orange-50);
	box-shadow: inset 0 0 0 1px var(--mi-orange);
	color: var(--mi-orange-text);
}

.mi-site .mi-cf7 .btnlists input:focus-visible + .wpcf7-list-item-label {
	outline: 2px solid var(--mi-orange);
	outline-offset: 2px;
}

/* 5. Form: buttons and messages ------------------------------------------------ */

.mi-site .mi-cf7 .cf7mls-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: flex-end;
	min-height: 0;
	margin-top: 28px;
}

.mi-site .mi-cf7 .wpcf7 :is(.cf7mls_next, .cf7mls_back, .wpcf7-submit) {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	justify-content: center;
	float: none;
	width: auto;
	min-width: 0;
	height: auto;
	min-height: 52px;
	margin: 0;
	padding: 0 28px;
	border: 1px solid transparent;
	border-radius: 14px;
	background: var(--mi-orange);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 22px -10px rgba(233, 109, 9, 0.75);
	font-family: var(--mi-font);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.01em;
	text-transform: none;
	color: #1a0e02;
	opacity: 1;
	cursor: pointer;
	transition: background-color 0.25s var(--mi-ease), border-color 0.25s var(--mi-ease), box-shadow 0.25s var(--mi-ease), transform 0.25s var(--mi-ease);
}

.mi-site .mi-cf7 .wpcf7 :is(.cf7mls_next, .wpcf7-submit):is(:hover, :focus-visible) {
	background: var(--mi-orange-bright);
	color: #1a0e02;
	opacity: 1;
	transform: translateY(-1px);
}

.mi-site .mi-cf7 .wpcf7 .cf7mls_back {
	margin-right: auto;
	padding: 0 20px;
	border-color: rgba(22, 18, 14, 0.14);
	background: var(--mi-white);
	box-shadow: none;
	font-weight: 600;
	color: var(--mi-ink);
}

.mi-site .mi-cf7 .wpcf7 .cf7mls_back:is(:hover, :focus-visible) {
	border-color: rgba(22, 18, 14, 0.32);
	background: var(--mi-white);
	color: var(--mi-ink);
	opacity: 1;
}

.mi-site .mi-cf7 .wpcf7 :is(.cf7mls_next, .cf7mls_back, .wpcf7-submit):focus-visible {
	outline: 2px solid var(--mi-orange);
	outline-offset: 3px;
}

.mi-site .mi-cf7 .wpcf7 :is(.cf7mls_next.sending, .wpcf7-submit:disabled) {
	opacity: 0.7;
	cursor: progress;
	transform: none;
}

.mi-site .mi-cf7 .wpcf7 .cf7mls_next img {
	width: 18px;
	height: 18px;
	margin: 0;
	filter: brightness(0);
}

.mi-site .mi-cf7 .wpcf7 .wpcf7-spinner {
	position: static;
	flex: none;
	margin: 0;
}

.mi-cf7 .wpcf7 form:not(.submitting) .wpcf7-spinner {
	display: none;
}

/* The message after sending, and the note when a step is incomplete. */
.mi-site .mi-cf7 .wpcf7 form .wpcf7-response-output {
	margin: 20px 0 0;
	padding: 14px 16px;
	border: 1px solid var(--mi-line);
	border-radius: 12px;
	background: var(--mi-cream);
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--mi-ink);
}

.mi-site .mi-cf7 .wpcf7 form:is(.init, .resetting, .submitting) > .wpcf7-response-output,
.mi-site .mi-cf7 .wpcf7 form .wpcf7-response-output:empty {
	display: none;
}

.mi-site .mi-cf7 .wpcf7 form.sent .wpcf7-response-output {
	border-color: #b9dfc4;
	background: #eef8f1;
	color: #14532d;
}

.mi-site .mi-cf7 .wpcf7 form:is(.invalid, .unaccepted, .failed, .aborted, .spam) .wpcf7-response-output,
.mi-site .mi-cf7 .wpcf7 form .wpcf7-response-output.wpcf7-validation-errors {
	border-color: #f1c7c2;
	background: #fdf2f0;
	color: #8c1d18;
}

.mi-cf7 .wpcf7 .wpcf7-icon-wraning {
	display: none;
}

/* 6. Side column --------------------------------------------------------------- */

.mi-quote__aside {
	display: grid;
	gap: 16px;
}

.mi-quote__talk,
.mi-quote__next {
	padding: clamp(22px, 2.4vw, 30px);
	border-radius: var(--mi-radius-lg);
}

.mi-quote__talk {
	background: var(--mi-ink) radial-gradient(70% 60% at 100% 0%, rgba(233, 109, 9, 0.3), rgba(233, 109, 9, 0) 70%);
	color: rgba(255, 255, 255, 0.76);
}

.mi-quote__next {
	border: 1px solid var(--mi-line);
	background: var(--mi-white);
}

.mi-site .mi-quote__aside-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.022em;
	color: var(--mi-ink);
}

.mi-site .mi-quote__talk .mi-quote__aside-title {
	color: var(--mi-white);
}

.mi-quote__talk p {
	margin: 10px 0 22px;
	font-size: 15px;
	line-height: 1.6;
}

.mi-quote__talk .mi-btn + .mi-btn {
	margin-top: 10px;
}

.mi-site .mi-quote__mail {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	margin-top: 20px;
	font-size: 15px;
	font-weight: 600;
	color: var(--mi-white);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.mi-site .mi-quote__mail:hover {
	color: var(--mi-orange-bright);
}

.mi-quote__mail .mi-icon {
	width: 18px;
	height: 18px;
	color: var(--mi-orange-bright);
}

.mi-quote__next ol {
	display: grid;
	gap: 20px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: mi-quote-next;
}

.mi-quote__next li {
	position: relative;
	display: grid;
	gap: 3px;
	min-height: 34px;
	margin: 0;
	padding-left: 48px;
	counter-increment: mi-quote-next;
}

.mi-quote__next li::before {
	content: counter(mi-quote-next);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 11px;
	background: var(--mi-orange-50);
	font-size: 14.5px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--mi-orange-text);
}

.mi-quote__next strong {
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: var(--mi-ink);
}

.mi-quote__next span {
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--mi-muted);
}

@media (min-width: 1024px) {
	.mi-quote__aside {
		position: sticky;
		top: calc(var(--mi-header-space) + 24px);
	}
}

@media (max-width: 1023px) {
	.mi-quote__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	/* The floating WhatsApp button would sit on top of the form fields; the
	   side column below the form has its own WhatsApp button. */
	.page-template-getaqout .mi-whatsapp {
		display: none;
	}

	.mi-quote__aside {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}
}

@media (max-width: 699px) {
	.mi-quote {
		padding-top: calc(var(--mi-header-space) + 30px);
	}

	.mi-quote__aside {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Tabs become rows: icon, then name. The odd one out takes a full row. */
	.mi-quote__tabs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.mi-site .mi-quote__tab {
		flex-direction: row;
		gap: 10px;
		padding: 8px 10px 8px 8px;
		border-radius: 14px;
		text-align: left;
	}

	.mi-quote__tab:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.mi-quote__tab-icon {
		width: 36px;
		height: 36px;
		border-radius: 11px;
	}

	.mi-quote__tab-icon .mi-icon {
		width: 18px;
		height: 18px;
	}
}

@media (max-width: 559px) {
	.mi-site .mi-cf7 .wpcf7 .row {
		grid-template-columns: minmax(0, 1fr);
	}

	.mi-site .mi-cf7 .mdatebox .form-control {
		max-width: none;
	}

	.mi-quote__progress li {
		font-size: 13px;
	}

	.mi-site .mi-cf7 .wpcf7 :is(.cf7mls_next, .wpcf7-submit) {
		flex: 1 1 auto;
	}
}
