/* マネーペディア LP 共通の無料相談フォーム。KDOT 部品（MUI）の見た目に合わせる
   2026-11-13 Wix（lp.moneypedia.jp のフォーム部品）を 390・768・1280 で実測して寸法・色を合わせた */
.mp-form { --mpf-primary: #f4810b; --mpf-err: #d32f2f; --mpf-line: #676767; --mpf-gray: #c2c2c2; --mpf-icon: rgba(0,0,0,.6);
  display: flex; flex-direction: column; align-items: center; text-align: left; color: #000; }
.mp-form * { box-sizing: border-box; }

/* 段階表示：今の段だけ橙。済んだ段も Wix と同じく灰色のまま */
.mpf-steps { list-style: none; padding: 0; margin: 0 auto; display: flex; justify-content: center; }
.mpf-steps li { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--mpf-gray); background: #fff; color: var(--mpf-gray);
  font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; margin-left: 40px; }
.mpf-steps li:first-child { margin-left: 0; }
.mpf-steps li + li::before { content: ""; position: absolute; left: -42px; width: 40px; height: 2px; background: var(--mpf-gray); }
.mpf-steps li.on { background: var(--mpf-primary); border-color: var(--mpf-primary); color: #fff; }

.mpf-q { font-weight: 700; font-size: 22px; line-height: 1.5; margin: 16px 0 0; text-align: center; }
.mpf-q-sub { font-size: 10px; line-height: 1.5; text-align: center; margin: 0; }

/* 選択肢の箱：MUI のチェック（42px の欄・見える四角 18px）＋文字 16px/24px */
.mpf-checks { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.mpf-checks label, .mpf-box { display: flex; align-items: center; gap: 0; border: 1px solid var(--mpf-line); border-radius: 5px;
  padding: 8px; background: #fff; cursor: pointer; font-size: 16px; line-height: 24px; user-select: none; }
.mpf-radios .mpf-box { padding: 8px 0; }
.mp-form input[type=checkbox], .mp-form input[type=radio] { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 12px;
  border: 2px solid var(--mpf-icon); border-radius: 2px; background: #fff; cursor: pointer; }
.mp-form input[type=radio] { width: 20px; height: 20px; margin: 11px; border-radius: 50%; }
.mp-form input[type=checkbox]:checked { border-color: var(--mpf-primary);
  background: var(--mpf-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z' fill='%23fff'/%3E%3C/svg%3E") center / 16px no-repeat; }
.mp-form input[type=radio]:checked { border-color: var(--mpf-primary); background: radial-gradient(circle, var(--mpf-primary) 0 4.5px, #fff 5px); }
.mp-form input[type=checkbox]:focus-visible, .mp-form input[type=radio]:focus-visible { outline: 0; }

.mpf-fields { width: 100%; margin-top: 16px; }
.mpf-row { display: flex; align-items: center; margin-bottom: 20px; position: relative; }
.mpf-row:last-child { margin-bottom: 0; }
.mpf-label { flex: none; width: 164px; font-weight: 500; font-size: 16px; line-height: 1.5; }
.mpf-sub { display: block; font-size: 8px; line-height: 1.5; }
.mpf-control { flex: 1; min-width: 0; }
.mpf-msg { position: absolute; top: 100%; font-size: 8px; color: #999; height: 12px; }

.mp-form input[type=text], .mp-form input[type=tel], .mp-form input[type=email], .mp-form select {
  width: 100%; height: 56px; padding: 0 14px; font: inherit; font-size: 16px; background: #fff; color: rgba(0,0,0,.87);
  border: 1px solid var(--mpf-line); border-radius: 4px; outline: none; }
.mp-form select { appearance: none; padding-right: 32px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23757575'/%3E%3C/svg%3E") no-repeat right 7px center / 24px; }
.mp-form input:focus, .mp-form select:focus { border-color: var(--mpf-primary); box-shadow: inset 0 0 0 1px var(--mpf-primary); }
.mp-form input[type=checkbox]:focus, .mp-form input[type=radio]:focus { box-shadow: none; }
.mp-form input[type=checkbox]:focus:not(:checked), .mp-form input[type=radio]:focus:not(:checked) { border-color: var(--mpf-icon); }
.mp-form input[type=checkbox]:focus-visible, .mp-form input[type=radio]:focus-visible { box-shadow: 0 0 0 9px rgba(244,129,11,.18); }
.mp-form .err, .mp-form .err:focus { border-color: var(--mpf-err) !important; box-shadow: none; }
.mp-form ::placeholder { color: #aaa; }

.mpf-radios { display: flex; gap: 16px; }
.mpf-radios .mpf-box { flex: 1; }
.mpf-dob { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.5; }
.mpf-dob select.y { width: 200px; } .mpf-dob select.m, .mpf-dob select.d { width: 88px; }
.mpf-pair { display: flex; gap: 8px; }
.mpf-wish { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mpf-wish > * { min-width: 0; }

.mpf-h { color: var(--mpf-primary); font-size: 18px; font-weight: 500; line-height: 1.5; text-align: center; margin: 0 0 8px; }
.mpf-fields + .mpf-h { margin-top: 20px; }
.mpf-center + .mpf-h { margin-top: 32px; }
.mpf-note { font-size: 14px; font-weight: 500; line-height: 1.5; text-align: center; margin: 0; }
.mpf-note a { color: var(--mpf-primary); }
.mpf-center { display: flex; justify-content: center; margin-top: 16px; }
.mpf-agree { display: inline-flex; align-items: center; font-size: 16px; line-height: 24px; font-weight: 500; cursor: pointer; border-radius: 4px; padding: 0; }
.mpf-agree input[type=checkbox] { margin: 3px 7px 7px; }
.mpf-center:has(+ .mpf-actions) { margin-top: 0; }
.mpf-center:has(+ .mpf-actions) .mpf-agree { font-size: 14px; line-height: 21px; }
.mpf-agree.err { outline: 1px solid var(--mpf-err); }

/* ボタン：MUI の contained / text ボタン（Roboto 系・14px・行高 1.75・字間 .02857em） */
.mpf-actions { display: flex; flex-direction: column; align-items: center; margin-top: 32px; }
.mpf-btn, .mpf-back { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px; font-weight: 500; line-height: 1.75; letter-spacing: .02857em; cursor: pointer; }
.mpf-btn { background: var(--mpf-primary); color: rgba(0,0,0,.87); border: 0; border-radius: 60px; padding: 6px 16px; min-height: 36px; min-width: 165px;
  box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px rgba(0,0,0,.14), 0 1px 5px rgba(0,0,0,.12); }
.mpf-btn:hover { background: #c96a09; }
.mpf-btn:disabled { background: rgba(0,0,0,.12); color: rgba(0,0,0,.26); box-shadow: none; cursor: default; }
.mpf-send { width: 165px; }
.mpf-chev, .mpf-tri { display: inline-block; flex: none; width: 24px; height: 24px; background: currentColor; }
.mpf-chev { margin: 0 -4px 0 8px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E") center / 24px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E") center / 24px no-repeat; }
.mpf-back { margin-top: 8px; background: none; border: 0; color: #000; padding: 6px 8px; border-radius: 4px; }
.mpf-back:hover { background: rgba(0,0,0,.04); }
.mpf-tri {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m14 7-5 5 5 5V7z'/%3E%3C/svg%3E") center / 24px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m14 7-5 5 5 5V7z'/%3E%3C/svg%3E") center / 24px no-repeat; }

/* 希望日の欄：MUI の日付欄と同じく右にカレンダーのアイコン */
.mpf-date { position: relative; }
.mp-form .mpf-date input { cursor: pointer; padding-right: 48px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z' fill='%23757575'/%3E%3C/svg%3E") no-repeat right 10px center / 24px; }
.mpf-cal { position: absolute; z-index: 20; top: 60px; left: 0; width: 300px; background: #fff; border-radius: 4px; padding: 8px 12px 12px;
  box-shadow: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12); }
.mpf-cal-head { display: flex; align-items: center; justify-content: space-between; font-weight: 500; padding: 4px 0 8px; }
.mpf-cal-head button { background: none; border: 0; font-size: 22px; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.mpf-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mpf-cal-w { font-size: 12px; color: #777; padding: 6px 0; }
.mpf-cal-grid button { height: 36px; border: 0; background: none; border-radius: 50%; font: inherit; font-size: 14px; cursor: pointer; }
.mpf-cal-grid button:hover { background: rgba(0,0,0,.04); }
.mpf-cal-grid button.today { border: 1px solid #999; }
.mpf-cal-grid button.on { background: var(--mpf-primary); color: #fff; }
.mpf-cal-grid button:disabled { color: rgba(0,0,0,.3); cursor: default; background: none; }

#mpf-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--mpf-primary, #f4810b); z-index: 1031;
  transform-origin: left; animation: mpf-load 2s ease-out forwards; }
@keyframes mpf-load { from { transform: scaleX(.08); } to { transform: scaleX(.9); } }

@media (max-width: 750px) {
  /* Wix の枠の内側の余白（上 32・下 32）に合わせる（各ページの .form-box は上 24・下 30） */
  .form-box > .mp-form { padding: 8px 0 2px; }
  .mpf-steps li { width: 52px; height: 52px; font-size: 12px; margin-left: 18px; }
  .mpf-steps li + li::before { left: -20px; width: 18px; }
  .mpf-q { font-size: 18px; }
  .mpf-checks { grid-template-columns: 1fr; gap: 8px; }
  .mpf-checks label { padding: 0; font-size: 14px; line-height: 21px; }
  .mpf-row { flex-direction: column; align-items: stretch; }
  .mpf-label { width: 100%; font-size: 13px; margin-bottom: 0; }
  .mpf-label:has(.mpf-sub) { display: inline-flex; align-items: center; gap: 4px; }
  .mpf-dob { gap: 2px; }
  .mpf-dob select.y { width: 82px; flex: none; } .mpf-dob select.m, .mpf-dob select.d { width: 63px; flex: none; }
  .mpf-wish { gap: 8px; }
  .mpf-cal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(320px, calc(100vw - 32px)); }
}

/* 罠の欄（人には見えない・11/30） */
.mpf-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
