:root {
  --mp-ink: #171717;
  --mp-muted: #72716e;
  --mp-line: #dedbd6;
  --mp-paper: #f7f6f3;
  --mp-white: #fff;
  --mp-yellow: #f4d33d;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--mp-paper);
  color: var(--mp-ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button, input, select { font: inherit; }
.mp-header {
  min-height: 66px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--mp-line);
  background: var(--mp-white);
}
.mp-wordmark {
  color: var(--mp-ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-decoration: none;
}
.mp-back { color: var(--mp-ink); font-size: 12px; text-underline-offset: 4px; }
.mp-main { width: min(1040px, calc(100% - 36px)); margin: 0 auto; padding: 52px 0 72px; }
.mp-intro { max-width: 700px; margin: 0 auto 30px; text-align: center; }
.mp-eyebrow { margin: 0 0 10px; color: #8a562d; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; }
.mp-intro h1 { margin: 0; font-size: clamp(30px, 5vw, 46px); letter-spacing: -1.5px; line-height: 1.07; }
.mp-intro > p:last-child { max-width: 560px; margin: 14px auto 0; color: var(--mp-muted); font-size: 15px; line-height: 1.55; }
.mp-loading { min-height: 170px; display: grid; place-items: center; color: var(--mp-muted); }
.mp-error { margin: 0 auto 18px; padding: 13px 16px; max-width: 720px; border: 1px solid #bb6f64; background: #fff4f2; color: #702b23; font-size: 13px; }
.mp-content { max-width: 860px; margin: 0 auto; }
.mp-summary { margin-bottom: 24px; padding: 16px 18px; border: 1px solid var(--mp-line); background: var(--mp-white); font-size: 13px; line-height: 1.6; }
.mp-summary strong { font-weight: 700; }
.mp-saved-profile { margin: 0 0 20px; padding: 18px; border-left: 3px solid #8a562d; background: var(--mp-white); }
.mp-saved-profile p { margin: 0; color: var(--mp-muted); font-size: 13px; }
.mp-saved-profile .mp-submit { margin-top: 12px; }
.mp-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mp-method {
  min-height: 152px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid var(--mp-line);
  background: var(--mp-white);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.mp-method:hover { transform: translateY(-2px); border-color: var(--mp-ink); }
.mp-method[aria-pressed="true"] { border: 2px solid var(--mp-ink); background: #fffdf4; }
.mp-method-number { color: #966334; font-size: 10px; letter-spacing: 1px; }
.mp-method-title { font-size: 16px; font-weight: 700; }
.mp-method-copy { color: var(--mp-muted); font-size: 12px; line-height: 1.45; }
.mp-form { margin-top: 22px; padding: clamp(20px, 4vw, 34px); border: 1px solid var(--mp-line); background: var(--mp-white); }
.mp-form-heading { margin-bottom: 22px; }
.mp-form-heading h2 { margin: 0 0 8px; font-size: clamp(22px, 4vw, 30px); letter-spacing: -.7px; }
.mp-form-heading > p:last-child { margin: 0; color: var(--mp-muted); font-size: 13px; line-height: 1.5; }
.mp-standard-progress { margin: -8px 0 22px; color: #8a562d; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.mp-size-step { min-height: 130px; }
.mp-fieldset { margin: 0 0 16px; padding: 0; display: flex; gap: 22px; border: 0; }
.mp-fieldset legend { margin-bottom: 10px; font-size: 12px; font-weight: 700; }
.mp-radio, .mp-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.45; }
.mp-radio input, .mp-consent input { margin: 2px 0 0; accent-color: var(--mp-ink); }
.mp-field-row, .mp-size-grid, .mp-measure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mp-size-grid { margin-top: 14px; }
.mp-measure-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mp-field { min-width: 0; display: grid; gap: 7px; color: var(--mp-ink); font-size: 12px; font-weight: 600; }
.mp-field input, .mp-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbc8c2;
  border-radius: 0;
  background: #fff;
  color: var(--mp-ink);
  font-size: 14px;
}
.mp-field input:focus, .mp-field select:focus { outline: 2px solid #8a562d; outline-offset: 1px; }
.mp-units, .mp-opening { max-width: 360px; margin: 0 0 16px; }
.mp-photo { margin: 22px 0; padding: 17px; background: var(--mp-paper); }
.mp-photo .mp-field { max-width: 460px; }
.mp-photo p { margin: 10px 0 0; color: var(--mp-muted); font-size: 11px; line-height: 1.45; }
.mp-consent { margin-top: 12px; max-width: 650px; }
.mp-submit {
  min-height: 52px;
  margin-top: 24px;
  padding: 0 26px;
  border: 1px solid var(--mp-ink);
  background: var(--mp-yellow);
  color: var(--mp-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}
.mp-submit:hover { background: #ffe45e; }
.mp-submit:disabled { opacity: .55; cursor: wait; }
.mp-standard-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mp-standard-actions .mp-submit { margin-left: auto; }
.mp-step-back, .mp-step-next { min-height: 52px; padding: 0 22px; border: 1px solid var(--mp-ink); background: var(--mp-white); color: var(--mp-ink); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
.mp-step-next { margin-left: auto; background: var(--mp-ink); color: var(--mp-white); }
.mp-splash {
  min-height: 260px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #101010;
  color: #fff;
  text-align: center;
}
.mp-splash-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--mp-yellow); border-radius: 50%; color: var(--mp-yellow); font-weight: 700; }
.mp-splash strong { font-size: 22px; letter-spacing: .5px; }
.mp-splash > span:last-of-type { color: #c9c9c9; font-size: 12px; }
.mp-splash-progress { width: 180px; height: 2px; margin-top: 10px; overflow: hidden; background: #414141; }
.mp-splash-progress span { display: block; width: 0; height: 100%; background: var(--mp-yellow); animation: mp-progress 3s linear forwards; }
@keyframes mp-progress { to { width: 100%; } }
.mp-fit-instructions { margin-top: 16px; padding: 20px; border: 1px solid var(--mp-line); background: var(--mp-paper); }
.mp-fit-instructions h3, .mp-fit-complete h3 { margin: 0 0 12px; font-size: 17px; }
.mp-fit-instructions ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 13px; line-height: 1.45; }
.mp-fit-instructions p { margin: 14px 0 0; color: var(--mp-muted); font-size: 12px; line-height: 1.5; }
.mp-fit-frame-wrap { width: 100%; height: min(74vh, 760px); min-height: 520px; margin-top: 20px; background: #fff; }
.mp-fit-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.mp-fit-complete { margin-top: 18px; padding: 22px; border: 1px solid var(--mp-line); background: var(--mp-paper); }
.mp-fit-complete p { color: var(--mp-muted); font-size: 13px; }
@media (max-width: 680px) {
  .mp-header { min-height: 58px; padding: 0 18px; }
  .mp-wordmark { font-size: 18px; }
  .mp-main { padding: 34px 0 48px; }
  .mp-methods { grid-template-columns: 1fr; }
  .mp-method { min-height: 112px; }
  .mp-measure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .mp-measure-grid, .mp-field-row, .mp-size-grid { grid-template-columns: 1fr; }
  .mp-fieldset { flex-direction: column; gap: 12px; }
  .mp-fit-frame-wrap { min-height: 450px; }
  .mp-submit { width: 100%; padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
