/*
Theme Name: Mad Mobile
Description: Custom theme for Mad Mobile: phone catalogue, payroll-deduction application form and an approval list in the dashboard.
Version: 1.10.3
Requires at least: 6.2
Requires PHP: 7.4
Author: Mad Mobile
Text Domain: madmobile
License: GPL-2.0-or-later
*/

:root {
	--mm-red: #E52B2B;
	--mm-red-dark: #731919;
	--mm-ink: #0A0D13;
	--mm-slate: #6D7486;
	--mm-charcoal: #303643;
	--mm-silver: #A5ACB9;
	--mm-mist: #E9F0F3;
	--mm-mist-dark: #A2A5AC;
	--mm-card: #1e1e1e;
	--mm-white: #ffffff;
	--mm-gradient: linear-gradient(160deg, var(--mm-red), var(--mm-red-dark));
	--mm-head: 'Squada One', 'Arial Narrow', sans-serif;
	--mm-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--mm-gutter: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--mm-body); color: var(--mm-ink); background: var(--mm-white); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 12px 20px; background: var(--mm-ink); color: #fff; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--mm-red); outline-offset: 2px; }

.mm-wrap { max-width: 1200px; margin: 0 auto; }
.mm-section { padding: 72px var(--mm-gutter); }
.mm-section--mist { background: var(--mm-mist); }
.mm-section--ink { background: var(--mm-ink); color: #fff; }
.mm-section--red { background: var(--mm-gradient); color: #fff; }
.mm-h1, .mm-h2, .mm-h3 { margin: 0; font-family: var(--mm-head); font-weight: 400; text-transform: uppercase; line-height: 1; }
.mm-h1 { font-size: clamp(52px, 8vw, 92px); line-height: .98; }
.mm-h2 { font-size: clamp(36px, 5vw, 48px); margin-bottom: 32px; }
.mm-h3 { font-size: 26px; }
.mm-muted { color: var(--mm-charcoal); }
.mm-section--ink .mm-muted { color: var(--mm-silver); }

/* Buttons */
.mm-btn { display: inline-block; padding: 16px 36px; border-radius: 999px; font-weight: 700; font-size: 18px; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; text-align: center; transition: transform .15s ease, filter .15s ease; }
.mm-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.mm-btn--red { background: var(--mm-red); color: #fff; }
.mm-btn--ink { background: var(--mm-ink); color: #fff; }
.mm-btn--outline { border-color: currentColor; background: transparent; }
.mm-btn--block { display: block; width: 100%; }
.mm-btn--sm { padding: 12px 24px; font-size: 16px; }
.mm-btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.mm-header { position: sticky; top: 0; z-index: 50; background: var(--mm-mist); }
.mm-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--mm-gutter); }
.mm-logo img, .mm-logo .custom-logo { height: 48px; width: auto; display: block; }
.mm-logo__text { font-family: var(--mm-head); font-size: 32px; text-transform: uppercase; }
.mm-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 28px; font-weight: 700; }
.mm-nav a:hover { color: var(--mm-red); }
.mm-nav .mm-nav__cta a, .mm-nav li.menu-cta a { display: inline-block; padding: 12px 24px; border-radius: 999px; background: var(--mm-red); color: #fff; }
.mm-nav .mm-nav__track a { display: inline-block; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--mm-ink); }
.mm-nav .mm-nav__track a:hover { border-color: var(--mm-red); }
.mm-nav .mm-nav__cta a:hover, .mm-nav li.menu-cta a:hover { color: #fff; filter: brightness(1.08); }
.mm-menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--mm-ink); }
.mm-menu-toggle svg { display: block; }

/* Section titles: a boxed label sitting on a full-width line (from the wireframe) */
.mm-title { display: flex; align-items: center; gap: 0; margin: 0 0 40px; }
.mm-title::before, .mm-title::after { content: ""; flex: 1; height: 2px; background: currentColor; opacity: .18; }
.mm-title span { padding: 8px 26px; border: 2px solid currentColor; border-radius: 12px; font-family: var(--mm-head); font-weight: 400; text-transform: uppercase; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; text-align: center; }
.mm-section--ink .mm-title::before, .mm-section--ink .mm-title::after { opacity: .35; }
.mm-gridbg { background-color: var(--mm-mist); background-image: linear-gradient(rgba(10, 13, 19, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 13, 19, .045) 1px, transparent 1px); background-size: 22px 22px; }

/* Hero: light grey gradient with the cover's red panel and dark band on the right */
.mm-hero { position: relative; overflow: hidden; padding: 88px var(--mm-gutter); background: linear-gradient(135deg, var(--mm-mist) 0%, var(--mm-mist-dark) 100%); color: var(--mm-ink); }
.mm-hero__art { position: absolute; top: 0; bottom: 0; right: 0; width: 54%; pointer-events: none; }
.mm-hero__art svg { display: block; width: 100%; height: 100%; }
.mm-hero__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.mm-hero__copy { flex: 0 1 560px; min-width: 0; max-width: 46%; }
.mm-hero .mm-h1 { text-shadow: 0 1px 0 rgba(255, 255, 255, .4); }
.mm-hero__sub { margin: 16px 0 12px; font-size: 24px; color: var(--mm-charcoal); }
.mm-hero__tag { margin: 0 0 32px; font-size: 20px; font-weight: 700; }
.mm-hero .mm-btn--outline { color: var(--mm-ink); }
.mm-hero__media { flex: 0 1 360px; min-width: 0; margin: 0 0 0 auto; border-radius: 32px; overflow: hidden; background: #000; border: 4px solid #fff; box-shadow: 0 24px 60px rgba(10, 13, 19, .45); }
.mm-hero__media img { display: block; width: 100%; height: 100%; max-height: 440px; object-fit: cover; object-position: center top; }
.mm-hero__slant { position: absolute; top: -40px; bottom: -40px; right: -8%; width: 42%; background: linear-gradient(180deg, var(--mm-slate), var(--mm-ink)); opacity: .45; transform: skewX(-14deg); }

/* Benefit icons */
.mm-benefits { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; text-align: center; list-style: none; margin: 0; padding: 0; }
.mm-benefit { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mm-benefit__icon { width: 104px; height: 104px; border-radius: 50%; border: 2px solid var(--mm-ink); display: flex; align-items: center; justify-content: center; color: var(--mm-red); background: #fff; transition: background .2s, color .2s; }
.mm-benefit:hover .mm-benefit__icon { background: var(--mm-red); color: #fff; border-color: var(--mm-red); }
.mm-benefit__icon svg { width: 40px; height: 40px; }
.mm-benefit__title { font-family: var(--mm-head); font-size: 22px; text-transform: uppercase; line-height: 1.1; }
.mm-benefit__text { font-size: 15px; color: var(--mm-charcoal); }

/* Featured phone cards */
.mm-featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.mm-fcard { background: #fff; border: 2px solid var(--mm-ink); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.mm-fcard__img { background: var(--mm-card); border-radius: 12px; height: 220px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mm-fcard__img img { height: 100%; width: auto; object-fit: contain; }
.mm-fcard__name { font-family: var(--mm-head); font-size: 26px; text-transform: uppercase; margin: 6px 0 0; font-weight: 400; }
.mm-fcard__specs { font-size: 14px; color: var(--mm-charcoal); }
.mm-fcard .mm-price { align-self: center; background: var(--mm-ink); color: #fff; }
.mm-fcard .mm-btn { margin-top: auto; padding: 13px; font-size: 16px; }
.mm-center { text-align: center; margin-top: 32px; }
.mm-link { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* Timeline */
.mm-timeline-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: stretch; }
.mm-timeline-wrap > img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; border-radius: 24px; border: 2px solid var(--mm-ink); }
.mm-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.mm-tstep { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 24px; align-items: start; }
.mm-tstep:not(:last-child)::after { content: ""; position: absolute; left: 37px; top: 76px; bottom: -28px; width: 2px; background: var(--mm-ink); }
.mm-tstep__icon { width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--mm-ink); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--mm-red); position: relative; z-index: 1; }
.mm-tstep__icon svg { width: 32px; height: 32px; }
.mm-tstep__num { font-family: var(--mm-head); color: var(--mm-red); font-size: 18px; }
.mm-tstep h3 { margin: 0 0 6px; font-size: 20px; }
.mm-tstep p { margin: 0; color: var(--mm-charcoal); }

/* Devices */
.mm-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.mm-filter { padding: 8px 20px; border-radius: 999px; background: var(--mm-charcoal); color: #fff; border: 0; font: inherit; cursor: pointer; }
.mm-filter[aria-pressed="true"] { background: var(--mm-red); font-weight: 700; }
.mm-phones { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.mm-phone { background: var(--mm-card); color: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.mm-phone__img { width: 100%; height: 230px; object-fit: contain; background: var(--mm-card); display: block; }
.mm-phone__body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mm-phone__name { font-family: var(--mm-head); font-size: 26px; letter-spacing: .5px; margin: 0; font-weight: 400; }
.mm-phone__specs { font-size: 14px; color: var(--mm-silver); }
.mm-price { margin: 10px 0; align-self: flex-start; padding: 8px 20px; border-radius: 999px; background: var(--mm-mist); color: var(--mm-ink); font-weight: 700; font-size: 20px; }
.mm-price small { font-size: 13px; text-transform: uppercase; }
.mm-phone .mm-btn { margin-top: auto; padding: 13px; font-size: 16px; }
.mm-note { margin: 24px 0 0; color: var(--mm-silver); font-size: 14px; text-align: center; }

/* About */
.mm-about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; font-size: 18px; line-height: 1.6; }
.mm-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mm-stat { border: 2px solid var(--mm-ink); border-radius: 20px; padding: 20px; text-align: center; background: #fff; }
.mm-stat__num { font-family: var(--mm-head); font-size: 48px; color: var(--mm-red); line-height: 1.1; }
.mm-stat__label { font-size: 15px; line-height: 1.3; }

/* Employers band */
.mm-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.mm-band__copy { flex: 1 1 520px; min-width: 0; }
.mm-band__copy .mm-h2 { margin-bottom: 12px; font-size: clamp(36px, 4.5vw, 52px); }
.mm-band__copy p { margin: 0; font-size: 18px; line-height: 1.6; }

/* FAQ */
.mm-faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.mm-faq__item { padding: 24px; border-radius: 20px; background: #fff; border: 2px solid var(--mm-ink); }
.mm-faq__q { font-weight: 700; font-size: 18px; margin: 0 0 8px; }
.mm-faq__a { color: var(--mm-charcoal); margin: 0; }

/* Enquiry block */
.mm-qform { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px; background: #fff; border: 2px solid var(--mm-ink); border-radius: 24px; padding: 36px; }
.mm-qform__intro .mm-h2 { font-size: 36px; margin-bottom: 12px; }
.mm-qform__intro p { color: var(--mm-charcoal); }
.mm-qform__contact { display: flex; flex-direction: column; gap: 6px; font-weight: 700; margin-top: 20px; }
.mm-qform__contact { gap: 12px; }
.mm-qform__way { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 2px solid var(--mm-ink); border-radius: 14px; overflow-wrap: anywhere; }
.mm-qform__way svg { flex: 0 0 auto; color: var(--mm-red); }
.mm-qform__way small { display: block; font-weight: 400; font-size: 13px; color: var(--mm-charcoal); }
.mm-qform__way:hover { border-color: var(--mm-red); color: var(--mm-red); }
.mm-qform__row { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 18px; }

/* Reviews */
.mm-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.mm-review { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mm-review__avatar { width: 96px; height: 96px; border-radius: 28px; border: 2px solid var(--mm-ink); background: var(--mm-mist); display: flex; align-items: center; justify-content: center; font-family: var(--mm-head); font-size: 36px; color: var(--mm-red); }
.mm-stars { color: #F5A623; letter-spacing: 3px; font-size: 20px; }
.mm-review__name { font-weight: 700; margin: 0; }
.mm-review__text { color: var(--mm-charcoal); margin: 0; font-size: 15px; }

/* Forms */
.mm-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px 18px; }
.mm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mm-field--full { grid-column: 1 / -1; }
.mm-field label, .mm-label { font-weight: 700; font-size: 14px; }
.mm-field .mm-req { color: var(--mm-red); }
.mm-input { height: 48px; width: 100%; padding: 0 16px; border: 1px solid var(--mm-silver); border-radius: 12px; font-size: 16px; font-family: inherit; background: #fff; color: var(--mm-ink); }
textarea.mm-input { height: auto; min-height: 110px; padding: 12px 16px; }
select.mm-input { padding: 0 12px; }
.mm-input:focus { outline: none; border-color: var(--mm-red); box-shadow: 0 0 0 3px rgba(229, 43, 43, .2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mm-red) 22%, transparent); }
.mm-input[aria-invalid="true"] { border-color: var(--mm-red); }
.mm-help { font-size: 14px; color: var(--mm-charcoal); }
.mm-error-text { font-size: 14px; color: #B3161B; font-weight: 700; }
.mm-field label.mm-check, .mm-check { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; font-weight: 400; font-size: 16px; }
.mm-check input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--mm-red); }
.mm-check a { text-decoration: underline; }
.mm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mm-alert { padding: 16px 20px; border-radius: 14px; margin-bottom: 24px; font-weight: 700; }
.mm-alert--error { background: #FDE7E7; color: #8E1414; border: 1px solid #F5B5B5; }
.mm-alert--ok { background: #E4F6EA; color: #155D2C; border: 1px solid #A9DDB9; }
.mm-alert ul { margin: 8px 0 0; padding-left: 20px; font-weight: 400; }

/* Apply page */
.mm-apply { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.mm-apply__form { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.mm-apply__step { display: flex; flex-direction: column; gap: 16px; }
.mm-apply__step .mm-h2 { font-size: 32px; margin: 0; }
.mm-summary { flex: 1 1 340px; min-width: 0; position: sticky; top: 100px; padding: 28px; border-radius: 24px; background: var(--mm-ink); color: #fff; display: flex; flex-direction: column; gap: 18px; }
.mm-summary__phone { display: flex; gap: 16px; align-items: center; }
.mm-summary__phone img { width: 96px; height: 120px; object-fit: contain; background: var(--mm-card); border-radius: 12px; flex: 0 0 auto; }
.mm-summary__row { display: flex; justify-content: space-between; gap: 12px; }
.mm-summary__row--top { border-top: 1px solid var(--mm-charcoal); padding-top: 14px; }
.mm-summary .mm-input { background: #fff; }
.mm-summary__small { font-size: 13px; color: var(--mm-silver); }
.mm-mobile-only { display: none; }
.mm-apply__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.mm-apply__step legend { padding: 0; margin-bottom: 16px; }
.mm-apply__step legend:focus { outline: none; }
.mm-apply__nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 8px; }
.mm-apply__nav [data-go="next"], .mm-apply__nav [type="submit"] { margin-left: auto; min-width: 200px; }
.mm-apply:not(.is-stepped) [data-go] { display: none; }
.mm-apply.is-stepped .mm-apply__nav [type="submit"] { display: inline-flex; }
.mm-apply__later { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 18px; background: var(--mm-mist); color: var(--mm-charcoal); }
.mm-apply__later svg { flex: 0 0 auto; color: var(--mm-slate); }
.mm-apply__later p { margin: 4px 0 0; }
.mm-radios { border: 0; padding: 0; margin: 0; }
.mm-radios legend { padding: 0; margin-bottom: 8px; }
.mm-radios__row { display: flex; flex-wrap: wrap; gap: 10px; }
.mm-radio { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border: 1px solid var(--mm-silver); border-radius: 12px; cursor: pointer; font-weight: 400 !important; font-size: 16px !important; }
.mm-radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--mm-red); }
.mm-radio:has(input:checked) { border-color: var(--mm-red); box-shadow: 0 0 0 1px var(--mm-red); }
.mm-upload input[type="file"] { height: auto; padding: 10px 12px; }
.mm-upload input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--mm-ink); color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.mm-declare { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 2px solid var(--mm-ink); border-radius: 18px; }

/* Step bar */
.mm-steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; counter-reset: mmstep; }
.mm-steps__item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; color: var(--mm-slate); }
.mm-steps__item:not(:last-child)::after { content: ""; position: absolute; top: 27px; left: calc(50% + 34px); right: calc(-50% + 34px); height: 2px; background: var(--mm-silver); }
.mm-steps__item.is-done:not(:last-child)::after { background: var(--mm-ink); }
.mm-steps__dot { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--mm-silver); background: #fff; }
.mm-steps__label { font-weight: 700; font-size: 15px; line-height: 1.2; color: var(--mm-ink); }
.mm-steps__label small { display: block; font-weight: 400; font-size: 12px; color: var(--mm-slate); text-transform: uppercase; letter-spacing: .5px; }
.mm-steps__note { font-size: 12px; min-height: 1em; }
.mm-steps__short { display: none; }
.mm-steps__item.is-done .mm-steps__dot { border-color: var(--mm-ink); background: var(--mm-ink); color: #fff; }
.mm-steps__item.is-current .mm-steps__dot, .mm-steps__item.is-waiting .mm-steps__dot { border-color: var(--mm-red); background: var(--mm-red); color: #fff; box-shadow: 0 0 0 5px rgba(229, 43, 43, .18); }
.mm-steps__item.is-current .mm-steps__note, .mm-steps__item.is-waiting .mm-steps__note { color: var(--mm-red); font-weight: 700; }
.mm-steps__item.is-locked .mm-steps__dot { background: var(--mm-mist); border-style: dashed; color: var(--mm-slate); }
.mm-steps__item.is-locked .mm-steps__label, .mm-steps__item.is-todo .mm-steps__label, .mm-steps__item.is-stopped .mm-steps__label { color: var(--mm-slate); }
.mm-steps__item.is-stopped .mm-steps__dot { background: var(--mm-mist); text-decoration: line-through; }

/* Tracker */
.mm-track-login { max-width: 640px; margin: 0 auto; }
.mm-track-new { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 32px; padding: 20px; border-radius: 18px; background: var(--mm-mist); }
.mm-track-new p { margin: 0; flex: 1 1 280px; }
.mm-track-head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; margin-bottom: 40px; padding: 24px; border-radius: 20px; background: var(--mm-mist); }
.mm-track-head form { margin-left: auto; }
.mm-track-card { max-width: 760px; margin: 0 auto; padding: 32px; border: 2px solid var(--mm-ink); border-radius: 24px; }
.mm-track-card .mm-h2 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 12px; }
.mm-track-lock { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 14px; background: var(--mm-mist); color: var(--mm-charcoal); }
.mm-track-lock svg { flex: 0 0 auto; color: var(--mm-slate); }
/* Online contract on the Contract step */
.mm-contract-box { max-height: 460px; overflow-y: auto; padding: 4px 22px 18px; border: 1px solid var(--mm-silver); border-radius: 14px; background: #fff; font-size: 14px; line-height: 1.55; }
.mm-contract-box:focus-visible { outline: 3px solid var(--mm-red); outline-offset: 2px; }
.mm-contract h3 { font-size: 18px; margin: 22px 0 8px; color: var(--mm-red-dark); }
.mm-contract h4 { font-size: 15px; margin: 16px 0 6px; }
.mm-contract h5 { font-size: 14px; margin: 12px 0 4px; }
.mm-contract p, .mm-contract li { margin: 0 0 8px; }
.mm-contract__list { padding-left: 22px; }
.mm-contract__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mm-contract__table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 13px; }
.mm-contract__table caption { text-align: left; font-weight: 700; padding: 4px 0; }
.mm-contract__table th, .mm-contract__table td { border: 1px solid var(--mm-silver); padding: 5px 8px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.mm-contract__table th { background: var(--mm-mist); width: 42%; font-weight: 600; }
.mm-contract__table thead th { width: auto; }
.mm-fill { background: #FFF4CC; padding: 0 3px; border-radius: 3px; font-weight: 600; }
.mm-sign { margin-top: 20px; }
@media (max-width: 700px) { .mm-contract__cols { grid-template-columns: 1fr; } .mm-contract-box { padding: 4px 14px 14px; max-height: 380px; } }
.mm-pay { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 24px; padding: 20px; border-radius: 18px; background: var(--mm-ink); color: #fff; }
.mm-pay__bank { padding-top: 12px; border-top: 1px solid var(--mm-charcoal); color: var(--mm-silver); line-height: 1.7; }
.mm-thanks { max-width: 760px; margin: 0 auto; text-align: center; }
.mm-thanks__ref { display: inline-block; margin: 8px 0 24px; padding: 10px 24px; border-radius: 999px; background: var(--mm-mist); font-weight: 700; font-size: 20px; }

/* Generic pages */
.mm-page { max-width: 820px; margin: 0 auto; }
.mm-page .entry-content { font-size: 17px; line-height: 1.7; }
.mm-page .entry-content h2, .mm-page .entry-content h3 { font-family: var(--mm-head); font-weight: 400; text-transform: uppercase; }
.mm-page .entry-content a { color: var(--mm-red); text-decoration: underline; }

/* Footer */
.mm-footer { background: var(--mm-ink); color: #fff; padding: 56px var(--mm-gutter) 28px; font-size: 15px; }
.mm-footer__cols { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.mm-footer__logo { display: inline-block; background: var(--mm-mist); padding: 8px 16px; border-radius: 10px; margin-bottom: 16px; }
.mm-footer__logo img { height: 40px; width: auto; display: block; }
.mm-footer__blurb { color: var(--mm-silver); max-width: 340px; margin: 0; }
.mm-footer h2 { font-family: var(--mm-head); font-weight: 400; text-transform: uppercase; font-size: 22px; margin: 0 0 14px; }
.mm-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mm-footer a:hover { color: var(--mm-red); }
.mm-footer__bottom { border-top: 1px solid var(--mm-charcoal); margin-top: 40px; padding-top: 20px; color: var(--mm-silver); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (min-width: 901px) and (max-width: 1180px) {
	.mm-header__inner { padding-left: 24px; padding-right: 24px; }
	.mm-logo img, .mm-logo .custom-logo { height: 44px; width: auto; }
	.mm-nav ul { gap: 14px; font-size: 15px; flex-wrap: nowrap; }
	.mm-nav li { white-space: nowrap; }
	.mm-nav .mm-nav__track a { padding: 8px 14px; }
	.mm-nav .mm-nav__cta a, .mm-nav li.menu-cta a { padding: 10px 16px; }
}

@media (max-width: 1000px) {
	.mm-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
	.mm-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mm-qform, .mm-about, .mm-timeline-wrap { grid-template-columns: 1fr; }
	.mm-timeline-wrap > img { min-height: 0; max-height: 360px; }
}

@media (max-width: 900px) {
	:root { --mm-gutter: 20px; }
	.mm-section, .mm-hero { padding-top: 48px; padding-bottom: 48px; }
	.mm-menu-toggle { display: block; }
	.mm-header__inner { flex-wrap: wrap; }
	.mm-nav { display: none; width: 100%; }
	.mm-nav.is-open { display: block; }
	.mm-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
	.mm-nav li a { display: block; padding: 12px 0; border-top: 1px solid rgba(10, 13, 19, .08); }
	.mm-nav .mm-nav__cta a, .mm-nav li.menu-cta a { margin-top: 10px; text-align: center; padding: 14px 24px; }
	.mm-nav .mm-nav__track a { margin-top: 10px; text-align: center; padding: 12px 24px; border-top: 2px solid var(--mm-ink); }
	.mm-logo img, .mm-logo .custom-logo { height: 40px; }
	.mm-hero__copy, .mm-hero__media, .mm-apply__form, .mm-summary { flex-basis: 100%; }
	.mm-hero__media img { max-height: 320px; }
	.mm-hero__copy { max-width: none; }
	.mm-hero { padding-bottom: 0; }
	.mm-hero__art { top: auto; height: 300px; width: 100%; }
	.mm-hero__media { margin: 0 auto 32px; max-width: 260px; }
	.mm-hero__sub { font-size: 20px; }
	.mm-hero__tag { font-size: 18px; }
	.mm-featured { grid-template-columns: 1fr; }
	.mm-phones { grid-template-columns: 1fr; }
	.mm-qform { padding: 24px 20px; }
	.mm-summary { position: static; order: -1; }
	.mm-desktop-only { display: none; }
	.mm-mobile-only { display: block; }
	.mm-btns .mm-btn { flex: 1 1 auto; }
	.mm-steps { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin-bottom: 28px; }
	.mm-steps__dot { width: 34px; height: 34px; }
	.mm-steps__dot svg { width: 18px; height: 18px; }
	.mm-steps__item:not(:last-child)::after { top: 16px; left: calc(50% + 19px); right: calc(-50% + 19px); }
	.mm-steps__label { font-size: 11px; }
	.mm-steps__label small, .mm-steps__note, .mm-steps__full { display: none; }
	.mm-steps__short { display: inline; }
	.mm-apply__nav .mm-btn { flex: 1 1 140px; min-width: 0; }
	.mm-track-card { padding: 22px 18px; }
	.mm-track-head form { margin-left: 0; }
}

@media (max-width: 560px) {
	.mm-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mm-benefit__icon { width: 84px; height: 84px; }
	.mm-footer__cols { grid-template-columns: 1fr; }
	.mm-tstep { grid-template-columns: 60px 1fr; gap: 16px; }
	.mm-tstep__icon { width: 60px; height: 60px; }
	.mm-tstep:not(:last-child)::after { left: 29px; top: 60px; }
	.mm-title span { padding: 6px 16px; }
}

/* Inner page title banner: same grey gradient and artwork as the home banner */
.mm-pagehero { position: relative; overflow: hidden; padding: 72px var(--mm-gutter); background: linear-gradient(135deg, var(--mm-mist) 0%, var(--mm-mist-dark) 100%); color: var(--mm-ink); }
.mm-pagehero .mm-hero__art { width: 40%; }
.mm-pagehero__inner { position: relative; }
.mm-pagehero__inner > * { max-width: 56%; }
.mm-pagehero .mm-h1 { font-size: clamp(44px, 6vw, 72px); text-shadow: 0 1px 0 rgba(255, 255, 255, .4); }
.mm-pagehero__intro { margin: 14px 0 0; font-size: 20px; color: var(--mm-charcoal); }
@media (max-width: 900px) {
	.mm-pagehero { padding-top: 40px; padding-bottom: 40px; }
	.mm-pagehero .mm-hero__art { top: 0; height: auto; width: 34%; opacity: .9; }
	.mm-pagehero__inner > * { max-width: 68%; }
	.mm-pagehero__intro { font-size: 17px; }
}

/* Fade effect: a soft fade-in as each page loads, and sections and cards
   fading up as they scroll into view (set up in assets/js/site.js). */
@media (prefers-reduced-motion: no-preference) {
	@keyframes mm-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
	.mm-hero__copy, .mm-pagehero__inner { animation: mm-fade-up .7s ease-out both; }
	.mm-hero__media { animation: mm-fade-up .9s .15s ease-out both; }
	.mm-fade { opacity: 0; transform: translateY(18px); transition: opacity .6s ease-out, transform .6s ease-out; }
	.mm-fade.is-in { opacity: 1; transform: none; }
}
@media print { .mm-fade { opacity: 1 !important; transform: none !important; } }
