* {
  box-sizing: border-box;
}

.mf-doc-type-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 8px 0 20px;
}

.mf-doc-type-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.mf-doc-type-option input[type="radio"] {
  appearance: auto;
  -webkit-appearance: radio;
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  box-shadow: none;
  accent-color: #009688;
}

.mf-doc-type-option:has(input[type="radio"]:checked) {
  border-color: rgba(0,150,136,.45);
  background: rgba(0,150,136,.08);
  color: #0f766e;
}

@keyframes mf-spin {
  to {
    transform: rotate(360deg);
  }
}

.mf-register-finish [data-lucide="loader-circle"],
.mf-register-finish .lucide-loader-circle {
  animation: mf-spin 0.85s linear infinite;
  transform-origin: center;
}

.mf-register-finish.is-failed [data-lucide="loader-circle"],
.mf-register-finish.is-failed .lucide-loader-circle {
  animation: none;
}

.mf-legal-page {
  background: #f6f8fb;
  color: #16202f;
  overflow-x: hidden;
}

.mf-legal-page .mf-page,
.mf-legal-page .mf-container,
.mf-legal-main,
.mf-legal-hero,
.mf-legal-wrap,
.mf-legal-content {
  max-width: 100%;
}

.mf-legal-main {
  padding-top: 84px;
}

.mf-legal-hero {
  background: linear-gradient(135deg, #07111f 0%, #0f766e 100%);
  color: #fff;
  padding: 58px 0 52px;
}

.mf-legal-hero-inner {
  display: grid;
  gap: 18px;
}

.mf-legal-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}

.mf-legal-breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.mf-legal-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.mf-legal-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, .84);
  font-size: 18px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.mf-legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.mf-legal-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
}

.mf-legal-wrap {
  padding: 44px 0 72px;
}

.mf-legal-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.mf-legal-toc {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e3e8ef;
  box-shadow: 0 18px 50px rgba(12, 24, 38, .08);
}

.mf-legal-toc strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
  font-size: 15px;
}

.mf-legal-toc a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #475569;
  text-decoration: none;
  font-size: 14px;
}

.mf-legal-toc a:hover {
  color: #0f766e;
  background: #ecfdf5;
}

.mf-legal-content {
  padding: 36px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e3e8ef;
  box-shadow: 0 20px 70px rgba(12, 24, 38, .09);
}

.mf-legal-section + .mf-legal-section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid #e6edf4;
}

.mf-legal-section h2,
.mf-legal-section h3 {
  color: #0f172a;
  letter-spacing: 0;
}

.mf-legal-section h2 {
  margin: 0 0 14px;
  font-size: 25px;
  line-height: 1.35;
}

.mf-legal-section h3 {
  margin: 22px 0 10px;
  font-size: 18px;
  line-height: 1.45;
}

.mf-legal-section p,
.mf-legal-section li {
  color: #475569;
  font-size: 16px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.mf-legal-section p {
  margin: 0 0 12px;
}

.mf-legal-section ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.mf-legal-section li + li {
  margin-top: 8px;
}

.mf-legal-section strong {
  color: #0f172a;
}

@media (max-width: 860px) {
  .mf-legal-main {
    padding-top: 70px;
  }

  .mf-legal-hero {
    padding: 38px 0 34px;
  }

  .mf-legal-layout {
    grid-template-columns: 1fr;
  }

  .mf-legal-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mf-legal-toc strong {
    grid-column: 1 / -1;
  }

  .mf-legal-content {
    padding: 22px;
    border-radius: 14px;
  }

  .mf-legal-section h2 {
    font-size: 22px;
  }
}

@media (max-width: 520px) {
  .mf-legal-hero p {
    max-width: calc(100vw - 24px);
    font-size: 16px;
    line-height: 1.7;
    word-break: break-all;
  }

  .mf-legal-actions,
  .mf-legal-toc {
    grid-template-columns: 1fr;
  }

  .mf-legal-actions a {
    width: 100%;
    justify-content: center;
  }

  .mf-legal-section p,
  .mf-legal-section li {
    font-size: 15px;
    line-height: 1.85;
  }
}

:root {
  --mf-bg: #f5f7f4;
  --mf-bg-strong: #0d2f2f;
  --mf-ink: #0f172a;
  --mf-surface: #ffffff;
  --mf-surface-soft: #edf4ef;
  --mf-text: #172423;
  --mf-muted: #60706d;
  --mf-line: #dbe5df;
  --mf-accent: #00a394;
  --mf-accent-dark: #007a72;
  --mf-warning: #d89614;
  --mf-shadow: 0 18px 50px rgba(13, 47, 47, 0.14);
  --mf-radius: 18px;
}

body.mober-front {
  margin: 0;
  background: var(--mf-bg);
  color: var(--mf-text);
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  letter-spacing: 0;
}

.mf-page {
  min-height: 100vh;
}

.mf-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.mf-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 244, 0.92);
  border-bottom: 1px solid rgba(219, 229, 223, 0.9);
  backdrop-filter: blur(18px);
}

.mf-nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mf-brand {
  color: var(--mf-bg-strong);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
}

.mf-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--mf-bg-strong);
  color: #fff;
  font-size: 20px;
}

.mf-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mf-nav-links a {
  color: var(--mf-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
}

.mf-nav-links a:hover,
.mf-nav-links a.is-active {
  color: var(--mf-bg-strong);
  background: var(--mf-surface-soft);
}

.mf-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 39, 39, 0.92), rgba(8, 39, 39, 0.68) 45%, rgba(8, 39, 39, 0.24)),
    url("../../images/b02.png") center / cover no-repeat;
}

.mf-hero-inner {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.72fr);
  align-items: end;
  gap: 48px;
  padding: 88px 0 72px;
}

.mf-hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
}

.mf-hero p {
  margin: 24px 0 0;
  max-width: 590px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.mf-flow-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.mf-flow-note span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.mf-panel {
  background: rgba(255, 255, 255, 0.94);
  color: var(--mf-text);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--mf-radius);
  box-shadow: var(--mf-shadow);
  padding: 28px;
}

.mf-panel h2,
.mf-section-title h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
}

.mf-panel p,
.mf-section-title p {
  margin: 10px 0 0;
  color: var(--mf-muted);
  line-height: 1.7;
}

.mf-search {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.mf-field {
  display: grid;
  gap: 8px;
}

.mf-field label {
  font-size: 14px;
  color: #40514e;
  font-weight: 800;
}

.mf-field input,
.mf-field select {
  width: 100%;
  height: 50px;
  border: 1px solid var(--mf-line);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--mf-text);
  background: #fff;
  font: inherit;
  font-size: 15px;
}

.mf-field input:focus,
.mf-field select:focus {
  outline: 3px solid rgba(0, 163, 148, 0.16);
  border-color: var(--mf-accent);
}

.mf-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mf-sms-verify {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #dbe8e5;
  border-radius: 14px;
  background: #f8fcfb;
}

.mf-sms-send-row,
.mf-sms-code-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 12px;
}

.mf-sms-code-row .mf-field {
  min-width: 0;
}

.mf-sms-send-row [data-sms-status] {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.mf-sms-send-row [data-sms-status].is-ok {
  color: #087f6f;
  font-weight: 700;
}

.mf-sms-send-row [data-sms-status].is-error {
  color: #c2410c;
  font-weight: 700;
}

.mf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--mf-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 163, 148, 0.24);
}

.mf-btn:hover {
  background: var(--mf-accent-dark);
}

.mf-btn-secondary {
  background: var(--mf-bg-strong);
  box-shadow: none;
}

.mf-btn-ghost {
  background: transparent;
  color: var(--mf-bg-strong);
  border: 1px solid var(--mf-line);
  box-shadow: none;
}

.mf-section {
  padding: 72px 0;
}

.mf-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.mf-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mf-card,
.mf-result-card {
  background: var(--mf-surface);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(13, 47, 47, 0.07);
}

.mf-card {
  padding: 24px;
}

.mf-card i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--mf-accent-dark);
  background: var(--mf-surface-soft);
  margin-bottom: 18px;
}

.mf-card h3 {
  margin: 0;
  font-size: 20px;
}

.mf-card p {
  margin: 10px 0 0;
  color: var(--mf-muted);
  line-height: 1.7;
}

.mf-results-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 42px 0 72px;
}

.mf-search-page .mf-results-layout {
  padding-top: 112px;
}

.mf-sidebar {
  position: sticky;
  top: 96px;
}

.mf-results-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.mf-results-head h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
}

.mf-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--mf-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  white-space: nowrap;
}

.mf-view-toggle button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--mf-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 900;
  min-width: 106px;
  padding: 10px 14px;
}

.mf-view-toggle button:hover {
  border-color: #0f172a;
}

.mf-view-toggle button.is-active {
  background: #fff !important;
  box-shadow: inset 0 0 0 2px #0f172a;
  color: #0f172a !important;
}

.mf-results-list {
  display: grid;
  gap: 18px;
}

.mf-result-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

.mf-result-media {
  min-height: 210px;
  background: #dfe8e3;
}

.mf-result-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mf-result-body {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.mf-result-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.mf-result-title h2 {
  margin: 0;
  font-size: 23px;
}

.mf-price {
  color: var(--mf-accent-dark);
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}

.mf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mf-meta span {
  background: var(--mf-surface-soft);
  color: #36504c;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 800;
}

.mf-meta span,
.mf-outlet-actions span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mf-outlet-result .mf-result-body > p {
  margin: 0;
  color: #52615e;
  line-height: 1.7;
}

.mf-vehicle-accordion {
  border: 1px solid var(--mf-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.mf-vehicle-accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  cursor: pointer;
  list-style: none;
  color: var(--mf-text);
  font-size: 14px;
  font-weight: 900;
}

.mf-vehicle-accordion summary::-webkit-details-marker {
  display: none;
}

.mf-vehicle-accordion summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--mf-surface-soft);
  color: var(--mf-accent-dark);
  flex: 0 0 auto;
  font-weight: 900;
}

.mf-vehicle-accordion[open] summary::before {
  content: "-";
}

.mf-vehicle-accordion summary span {
  flex: 1;
}

.mf-vehicle-accordion summary strong {
  color: var(--mf-accent-dark);
  white-space: nowrap;
}

.mf-vehicle-mini-list {
  display: grid;
  gap: 6px;
  padding: 0 10px 10px;
}

.mf-vehicle-mini-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--mf-line);
  border-radius: 10px;
  background: #f9fbfa;
  color: var(--mf-ink);
  font-size: 14px;
  text-decoration: none;
}

.mf-vehicle-mini-list span {
  font-weight: 900;
  min-width: 0;
}

.mf-vehicle-mini-list strong {
  color: var(--mf-accent-dark);
  white-space: nowrap;
}

.mf-outlet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.mf-outlet-actions span {
  color: #667085;
  font-size: 14px;
  font-weight: 800;
}

.mf-map-results {
  display: grid;
  gap: 18px;
}

.mf-results-list[hidden],
.mf-map-results[hidden] {
  display: none !important;
}

.mf-map-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  background: #fff;
  box-shadow: var(--mf-shadow);
}

.mf-map-card h2 {
  margin: 0 0 10px;
}

.mf-map-card p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 18px;
  color: #52615e;
  line-height: 1.7;
}

.mf-map-card iframe {
  width: 100%;
  min-height: 260px;
  border: 0;
  border-radius: 14px;
  background: var(--mf-surface-soft);
}

.mf-booking-summary {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.mf-booking-summary p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--mf-line);
}

.mf-booking-summary span {
  color: var(--mf-muted);
  font-size: 14px;
  font-weight: 800;
}

.mf-booking-summary strong {
  color: var(--mf-text);
  font-size: 14px;
  text-align: right;
}

.mf-outlet-box {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--mf-line);
  border-radius: 14px;
  background: var(--mf-surface-soft);
}

.mf-outlet-box h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.mf-outlet-box p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--mf-muted);
  line-height: 1.7;
}

.mf-vehicle-select-card .mf-result-media {
  min-height: 230px;
}

.mf-price-breakdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border-radius: 14px;
  background: #f7fbfa;
  border: 1px solid var(--mf-line);
}

.mf-price-breakdown span {
  color: var(--mf-muted);
  font-size: 14px;
  font-weight: 800;
}

.mf-price-breakdown strong {
  color: var(--mf-accent-dark);
  font-size: 18px;
  white-space: nowrap;
}

.mf-provider-page {
  background: #f6f8f7;
}

.mf-provider-main {
  padding: 112px 0 72px;
}

.mf-provider-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--mf-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(13, 47, 47, 0.1);
}

.mf-provider-media {
  min-height: 300px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--mf-surface-soft);
}

.mf-provider-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mf-provider-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 8px 8px 8px 2px;
}

.mf-provider-steps {
  margin: 0 0 18px;
}

.mf-provider-copy h1 {
  margin: 0;
  color: var(--mf-text);
  font-size: 34px;
  line-height: 1.2;
}

.mf-provider-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--mf-muted);
  line-height: 1.7;
}

.mf-provider-intro {
  margin: 14px 0 0;
  color: #475467;
  line-height: 1.8;
}

.mf-provider-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.mf-provider-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--mf-surface-soft);
  color: #52615e;
  font-size: 13px;
  font-weight: 800;
}

.mf-provider-stats strong {
  color: var(--mf-accent-dark);
}

.mf-provider-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.mf-provider-section,
.mf-provider-booking-card,
.mf-provider-map-card {
  border: 1px solid var(--mf-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(13, 47, 47, 0.08);
}

.mf-provider-section {
  padding: 20px;
}

.mf-provider-side {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 14px;
}

.mf-provider-booking-card,
.mf-provider-map-card {
  padding: 20px;
}

.mf-provider-booking-card h2,
.mf-provider-map-card h2 {
  margin: 0;
  font-size: 22px;
}

.mf-provider-map-card p {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 12px 0 14px;
  color: var(--mf-muted);
  line-height: 1.6;
}

.mf-provider-map-card p svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--mf-primary);
  margin-top: 3px;
}

.mf-provider-map-card iframe {
  width: 100%;
  min-height: 230px;
  border: 0;
  border-radius: 14px;
  background: #eef6f4;
}

.mf-booking-flow-page {
  background:
    radial-gradient(circle at 10% 12%, rgba(0, 154, 137, 0.08), transparent 30%),
    linear-gradient(180deg, #f3fbfa 0%, #f7f9fb 46%, #ffffff 100%);
  overflow-x: hidden;
}

.mf-booking-flow-page *,
.mf-booking-flow-page *::before,
.mf-booking-flow-page *::after {
  box-sizing: border-box;
}

.mf-booking-main {
  padding-top: 116px;
  padding-bottom: 72px;
}

.mf-booking-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  border: 1px solid var(--mf-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(13, 47, 47, 0.08);
  padding: 26px;
  margin-bottom: 24px;
}

.mf-booking-hero h1,
.mf-confirm-card h1 {
  margin: 18px 0 8px;
  color: var(--mf-text);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
}

.mf-booking-hero p,
.mf-confirm-card p {
  margin: 0;
  color: var(--mf-muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mf-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.mf-checkout-card,
.mf-checkout-summary,
.mf-confirm-card {
  border: 1px solid var(--mf-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(13, 47, 47, 0.08);
}

.mf-checkout-card {
  padding: 26px;
  min-width: 0;
}

.mf-checkout-card h2,
.mf-checkout-summary h2 {
  margin: 0 0 18px;
  color: var(--mf-text);
  font-size: 24px;
}

.mf-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mf-field {
  display: grid;
  gap: 8px;
  color: var(--mf-text);
  font-size: 14px;
  font-weight: 900;
}

.mf-field input,
.mf-field select,
.mf-field textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--mf-line);
  border-radius: 12px;
  background: #fbfdfd;
  color: var(--mf-text);
  font: inherit;
  font-weight: 700;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mf-field input:focus,
.mf-field select:focus,
.mf-field textarea:focus {
  border-color: var(--mf-primary);
  box-shadow: 0 0 0 4px rgba(0, 154, 137, 0.12);
}

.mf-field-full,
.mf-new-member-box {
  margin-top: 18px;
}

.mf-new-member-box {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(0, 154, 137, 0.22);
  border-radius: 16px;
  background: #f3fbfa;
  padding: 18px;
}

.mf-new-member-box h3 {
  margin: 0;
  color: var(--mf-text);
  font-size: 20px;
}

.mf-new-member-box p {
  margin: 0;
  color: var(--mf-muted);
  line-height: 1.6;
}

.mf-password-field {
  position: relative;
}

.mf-password-field input {
  padding-right: 48px;
}

.mf-password-field button {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #eef7f5;
  color: var(--mf-text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.mf-check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--mf-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.mf-check-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.mf-check-row input {
  margin-top: 3px;
  accent-color: var(--mf-primary);
}

.mf-btn-wide {
  width: 100%;
  margin-top: 20px;
}

.mf-checkout-summary {
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.mf-checkout-summary > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.mf-checkout-summary > h2,
.mf-checkout-summary > p,
.mf-checkout-summary .mf-compact-meta,
.mf-checkout-summary .mf-summary-note,
.mf-checkout-summary .mf-booking-summary {
  margin-left: 20px;
  margin-right: 20px;
}

.mf-checkout-summary > h2 {
  margin-top: 18px;
}

.mf-checkout-summary > p,
.mf-summary-note {
  color: var(--mf-muted);
  line-height: 1.6;
}

.mf-total-row strong {
  color: var(--mf-accent-dark);
  font-size: 18px;
}

.mf-confirm-card {
  text-align: center;
  padding: 34px 28px;
  margin-bottom: 24px;
}

.mf-confirm-card .mf-provider-steps {
  justify-content: center;
}

.mf-confirm-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #02b29f, #006f68);
  color: #fff;
  box-shadow: 0 18px 34px rgba(0, 154, 137, 0.24);
}

.mf-confirm-icon svg {
  width: 34px;
  height: 34px;
}

.mf-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.mf-confirm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mf-confirm-grid div {
  border: 1px solid var(--mf-line);
  border-radius: 14px;
  background: #fbfdfd;
  padding: 14px;
}

.mf-confirm-grid span {
  display: block;
  color: var(--mf-muted);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}

.mf-confirm-grid strong {
  color: var(--mf-text);
  word-break: break-word;
}

.mf-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.mf-section-title-row h2 {
  margin: 0;
  font-size: 26px;
}

.mf-section-title-row p {
  margin: 6px 0 0;
  color: var(--mf-muted);
  line-height: 1.6;
}

.mf-compact-vehicle-list {
  display: grid;
  gap: 12px;
}

.mf-compact-vehicle-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 156px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--mf-line);
  border-radius: 14px;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mf-compact-vehicle-card:hover {
  box-shadow: 0 14px 34px rgba(13, 47, 47, 0.12);
  transform: translateY(-1px);
}

.mf-compact-vehicle-img {
  display: block;
  width: 132px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--mf-surface-soft);
}

.mf-compact-vehicle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mf-compact-vehicle-body {
  min-width: 0;
}

.mf-compact-vehicle-body h3 {
  margin: 0;
  color: var(--mf-text);
  font-size: 18px;
  line-height: 1.35;
}

.mf-compact-vehicle-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 8px 0 0;
  color: var(--mf-muted);
  font-size: 13px;
  line-height: 1.6;
}

.mf-rate-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 6px 10px;
  margin-top: 10px;
}

.mf-rate-notes span {
  color: #52615e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.mf-rate-notes span:nth-child(1),
.mf-rate-notes span:nth-child(2) {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 8px;
  background: #f7fbfa;
  color: var(--mf-accent-dark);
  border: 1px solid var(--mf-line);
}

.mf-rate-notes span:nth-child(n + 3) {
  grid-column: 1 / -1;
}

.mf-compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.mf-compact-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--mf-surface-soft);
  color: #36504c;
  font-size: 12px;
  font-weight: 800;
}

.mf-compact-meta svg {
  width: 14px;
  height: 14px;
}

.mf-compact-vehicle-action {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.mf-compact-vehicle-action span {
  color: var(--mf-accent-dark);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.mf-compact-vehicle-action small {
  color: var(--mf-muted);
  font-size: 12px;
  font-weight: 800;
}

.mf-compact-vehicle-action .mf-btn {
  min-height: 38px;
  padding: 9px 18px;
  font-size: 14px;
}

.mf-empty {
  padding: 42px;
  background: var(--mf-surface);
  border: 1px dashed var(--mf-line);
  border-radius: var(--mf-radius);
  text-align: center;
}

.mf-empty h2 {
  margin: 0;
  font-size: 24px;
}

.mf-empty p {
  color: var(--mf-muted);
  line-height: 1.8;
}

.mf-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.mf-steps span {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--mf-surface-soft);
  color: var(--mf-muted);
  font-size: 13px;
  font-weight: 800;
}

.mf-steps span.is-current {
  background: var(--mf-bg-strong);
  color: #fff;
}

.mf-footer {
  padding: 34px 0;
  border-top: 1px solid var(--mf-line);
  color: var(--mf-muted);
  font-size: 14px;
}

@media (max-width: 920px) {
  .mf-hero-inner,
  .mf-results-layout,
  .mf-result-card {
    grid-template-columns: 1fr;
  }

  .mf-hero-inner {
    min-height: auto;
    padding: 58px 0 48px;
  }

  .mf-sidebar {
    position: static;
  }

  .mf-search-page .mf-results-layout {
    padding-top: 86px;
  }

  .mf-map-card {
    grid-template-columns: 1fr;
  }

  .mf-provider-main {
    padding-top: 88px;
  }

  .mf-provider-hero,
  .mf-provider-layout,
  .mf-checkout-layout {
    grid-template-columns: 1fr;
  }

  .mf-provider-side,
  .mf-provider-booking-card {
    position: static;
  }

  .mf-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mf-container {
    width: min(100% - 24px, 1120px);
  }

  .mf-booking-main {
    width: calc(100% - 24px);
    max-width: 100%;
    overflow: hidden;
  }

  .mf-nav {
    min-height: 64px;
  }

  .mf-nav-links {
    gap: 2px;
  }

  .mf-nav-links a {
    padding: 8px 9px;
    font-size: 13px;
  }

  .mf-brand {
    font-size: 22px;
  }

  .mf-brand-mark {
    width: 36px;
    height: 36px;
  }

  .mf-panel {
    padding: 20px;
  }

  .mf-grid-2 {
    grid-template-columns: 1fr;
  }

  .mf-sms-send-row,
  .mf-sms-code-row {
    grid-template-columns: 1fr;
  }

  .mf-results-head {
    display: grid;
    gap: 14px;
  }

  .mf-view-toggle {
    width: 100%;
  }

  .mf-view-toggle button {
    flex: 1;
    justify-content: center;
  }

  .mf-result-title {
    display: block;
  }

  .mf-section-title-row {
    display: grid;
  }

  .mf-booking-hero {
    display: grid;
    padding: 20px;
    max-width: 100%;
    overflow: hidden;
  }

  .mf-booking-hero p {
    font-size: 15px;
  }

  .mf-checkout-card,
  .mf-confirm-card {
    padding: 18px;
    max-width: 100%;
    overflow: hidden;
  }

  .mf-new-member-box {
    padding: 16px;
  }

  .mf-check-row {
    font-size: 13px;
  }

  .mf-provider-side,
  .mf-provider-map-card,
  .mf-checkout-summary {
    width: 100%;
    min-width: 0;
  }

  .mf-form-grid,
  .mf-confirm-grid {
    grid-template-columns: 1fr;
  }

  .mf-booking-summary p {
    display: grid;
    justify-content: stretch;
    gap: 4px;
  }

  .mf-booking-summary strong {
    text-align: left;
  }

  .mf-compact-vehicle-card {
    grid-template-columns: 98px minmax(0, 1fr);
  }

  .mf-compact-vehicle-img {
    width: 98px;
  }

  .mf-compact-vehicle-action {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    width: 100%;
    justify-items: start;
    align-items: center;
  }

  .mf-compact-vehicle-action span,
  .mf-compact-vehicle-action small {
    grid-column: 1;
    min-width: 0;
  }

  .mf-compact-vehicle-action small {
    white-space: normal;
  }

  .mf-compact-vehicle-action .mf-btn {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    width: 100%;
  }
}
