/* Marketflow — Go to market form */
html.mf-noscroll, html.mf-noscroll body { overflow: hidden; }

.mf-modal {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  animation: mf-fade .35s ease both;
}
.mf-modal[hidden] { display: none; }
@keyframes mf-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes mf-rise { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }

.mf-scrim { position: fixed; inset: 0; background: hsl(222 47% 6%); }

.mf-close {
  position: fixed; top: 24px; right: 24px; z-index: 70;
  width: 48px; height: 48px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.2); background: transparent;
  color: rgba(255,255,255,.7); font-size: 16px; line-height: 1; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.mf-close:hover { color: #fff; border-color: rgba(255,255,255,.5); }

.mf-panel {
  position: relative; z-index: 10; width: 100%; max-width: 896px;
  margin: 0 16px; padding: 96px 0 64px;
  animation: mf-rise .45s .1s ease both;
}

/* step rail */
.mf-rail { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
.mf-rail-item { display: flex; align-items: center; gap: 12px; }
.mf-dot {
  width: 40px; height: 40px; border-radius: 9999px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.5); font-size: 13px;
  transition: background .2s, color .2s;
}
.mf-rail-item.is-on .mf-dot { background: hsl(var(--teal)); color: #fff; }
.mf-rail-label { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.4); white-space: nowrap; }
.mf-rail-item.is-on .mf-rail-label { color: #fff; }
.mf-rail-line { height: 1px; flex: 0 0 60px; background: rgba(255,255,255,.1); }

/* headings */
.mf-head { margin-bottom: 24px; }
.mf-title { font-size: 30px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.mf-sub { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.5); }
.mf-sub-center { margin: 0 auto 32px; max-width: 448px; }

.mf-block { margin-bottom: 28px; }
.mf-label { font-size: 12px; color: rgba(255,255,255,.5); }
.mf-label-strong { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.8); }
.mf-block > .mf-label { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.8); }

/* motion picker */
.mf-picker { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .mf-picker { grid-template-columns: repeat(3, 1fr); } }
.mf-pick {
  text-align: left; padding: 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03);
  transition: background .2s, border-color .2s;
}
.mf-pick:hover { background: rgba(255,255,255,.06); }
.mf-pick.is-on { border-color: hsl(var(--teal)); background: hsl(var(--teal) / .1); }
.mf-pick-title { display: block; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.8); }
.mf-pick.is-on .mf-pick-title { color: #fff; }
.mf-pick-desc { display: block; margin-top: 4px; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.5); }

/* selected markets */
.mf-chips { margin-bottom: 12px; }
.mf-chipbar {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; margin-bottom: 12px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.8); font-size: 14px; font-weight: 600; transition: background .2s;
}
.mf-chipbar:hover { background: rgba(255,255,255,.07); }
.mf-chipbar em { font-style: normal; margin-left: 8px; font-size: 12px; color: hsl(var(--teal)); }
.mf-caret { color: rgba(255,255,255,.4); transition: transform .2s; }
.mf-caret.is-up { transform: rotate(180deg); }
.mf-chipbox {
  max-height: 200px; overflow-y: auto; padding: 16px; margin-bottom: 12px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
}
.mf-chipgrp + .mf-chipgrp { margin-top: 12px; }
.mf-chipcont { font-size: 12px; font-weight: 600; color: hsl(var(--teal)); margin-bottom: 4px; }
.mf-chipline { display: flex; flex-wrap: wrap; gap: 4px; }
.mf-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 9999px;
  font-size: 12px; background: hsl(var(--teal) / .15); color: hsl(var(--teal));
}
.mf-chip button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 10px; padding: 0; }
.mf-chip button:hover { color: #fff; }

/* search */
.mf-search { position: relative; margin-bottom: 16px; }
.mf-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: .3; }
.mf-search-input { padding-left: 40px !important; }

/* tree */
.mf-tree { max-height: 320px; overflow-y: auto; padding-right: 8px; }
.mf-cont-head, .mf-reg { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; }
.mf-cont-head:hover, .mf-reg:hover { background: rgba(255,255,255,.05); }
.mf-cont.is-off .mf-cont-head, .mf-reg.is-off { opacity: .4; }
.mf-cont-name { flex: 1; text-align: left; font-size: 14px; font-weight: 600; color: #fff; background: none; border: 0; cursor: pointer; padding: 0; }
.mf-cont.is-off .mf-cont-name { color: rgba(255,255,255,.25); cursor: not-allowed; }
.mf-cont-kids, .mf-reg-kids { margin-left: 24px; }
.mf-reg-name { flex: 1; text-align: left; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.7); background: none; border: 0; cursor: pointer; padding: 0; }
.mf-reg-sub { font-weight: 400; color: rgba(255,255,255,.6); }
.mf-reg.is-off .mf-reg-name { color: rgba(255,255,255,.25); cursor: not-allowed; }
.mf-caret-btn { background: none; border: 0; color: rgba(255,255,255,.35); cursor: pointer; padding: 0; font-size: 14px; line-height: 1; }
.mf-caret-btn:hover { color: rgba(255,255,255,.7); }
.mf-caret-sm { font-size: 11px; }
.mf-box {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.15); border-radius: 4px; color: #fff; font-size: 9px; line-height: 1;
  cursor: pointer;
}
.mf-box-md { width: 14px; height: 14px; }
.mf-box-sm { width: 12px; height: 12px; }
.mf-box.is-on { background: hsl(var(--teal)); border-color: hsl(var(--teal)); }
.mf-box.is-some { background: hsl(var(--teal) / .3); border-color: hsl(var(--teal)); }
.mf-city { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 4px; cursor: pointer; }
.mf-city:hover { background: rgba(255,255,255,.05); }
.mf-city.is-off { opacity: .4; cursor: not-allowed; }
.mf-city .mf-box { width: 12px; height: 12px; }
.mf-city-name { font-size: 12px; color: rgba(255,255,255,.5); background: none; border: 0; text-align: left; padding: 0; cursor: pointer; }
.mf-city.is-off .mf-city-name { color: rgba(255,255,255,.2); }

/* fields */
.mf-pair { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
@media (min-width: 640px) { .mf-pair { grid-template-columns: 1fr 1fr; } }
.mf-field { display: flex; flex-direction: column; gap: 8px; }
.mf-input {
  width: 100%; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-family: inherit;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #fff;
  transition: border-color .2s, background .2s;
}
.mf-input::placeholder { color: rgba(255,255,255,.3); }
.mf-input:focus { outline: none; border-color: hsl(var(--teal) / .6); background: rgba(255,255,255,.07); }
.mf-textarea { min-height: 96px; resize: vertical; }

.mf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.mf-foot { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.mf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 24px 32px; border-radius: 9999px; border: 0; cursor: pointer;
  background: hsl(var(--teal)); color: #fff; font-size: 16px; font-family: inherit; font-weight: 500;
  transition: background .2s, opacity .2s;
}
.mf-btn:hover { background: hsl(var(--teal) / .85); }
.mf-btn:disabled { opacity: .35; cursor: not-allowed; }
.mf-btn-lg { padding: 24px 40px; font-size: 18px; text-decoration: none; display: flex; width: max-content; max-width: 100%; margin: 0 auto; }
.mf-legal { max-width: 448px; font-size: 10px; line-height: 1.6; color: rgba(255,255,255,.2); text-align: right; }
.mf-legal a { color: inherit; text-decoration: underline; }
.mf-error { font-size: 13px; color: hsl(0 80% 68%); text-align: right; }

/* step 2 */
.mf-center { text-align: center; }
.mf-badge {
  width: 80px; height: 80px; border-radius: 9999px; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  background: hsl(var(--teal) / .1); color: hsl(var(--teal));
}
.mf-props { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 672px; margin: 0 auto 40px; text-align: left; }
@media (min-width: 640px) { .mf-props { grid-template-columns: repeat(3, 1fr); } }
.mf-prop {
  padding: 16px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
}
.mf-prop-t { display: block; font-size: 12px; font-weight: 600; color: #fff; }
.mf-prop-d { display: block; margin-top: 4px; font-size: 12px; color: rgba(255,255,255,.4); }
.mf-back {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  width: max-content; margin: 24px auto 0;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  font-size: 14px; color: rgba(255,255,255,.4); transition: color .2s;
}
.mf-back:hover { color: rgba(255,255,255,.6); }
.mf-note { margin-top: 32px; font-size: 12px; color: rgba(255,255,255,.3); }

/* phones: clear the site header, keep the rail on one line */
@media (max-width: 640px) {
  .mf-panel { padding: 76px 0 48px; }
  .mf-close { top: 58px; right: 14px; width: 42px; height: 42px; font-size: 14px; }
  .mf-rail { gap: 10px; }
  .mf-rail-line { flex: 0 0 20px; }
  .mf-rail-label { font-size: 12px; }
  .mf-dot { width: 34px; height: 34px; font-size: 12px; }
  .mf-title { font-size: 24px; }
  .mf-legal { text-align: right; }
}
