/* 公開ページのフォームの見た目 (一括見積もり estimate/・求人 recruit/ の入力・確認・完了) (2026-10-25 みんと「ニーテックに比べて手を抜いている感じ・クオリティを上げて」)
   色・形は modern-pages.css にそろえる (紙色・墨・オレンジ・影なし・動かない・平らなボタン)。本文の地は白なので、箱は紙色・入力欄は白 */

.pf-wrap {
  max-width: 880px;
  margin: 0 auto;
}

/* ご依頼の流れ (完了の画面では「このあとの流れ」= .pf-next) */
.pf-flow {
  margin: 0 0 clamp(40px, 5vw, 56px);
}

.pf-next {
  margin-top: clamp(40px, 5vw, 56px);
}

.pf-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}

.pf-label::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.pf-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.pf-steps li {
  position: relative;
  background: var(--paper);
  padding: 24px 22px 22px;
}

.pf-steps li::before {
  counter-increment: step;
  content: "STEP " counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent-text);
}

.pf-steps b {
  display: block;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}

.pf-steps p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* フォーム: 段 = 白い箱・左に項目名・右に入力欄 */
.pf-form {
  margin: 0;
}

.pf-box {
  background: var(--paper);
  margin: 0 0 20px;
}

.pf-box > h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  padding: 20px clamp(20px, 3vw, 32px);
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  letter-spacing: .06em;
}

.pf-box > h2 span {
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--sun);
}

.pf-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 10px 24px;
  align-items: start;
  padding: 20px clamp(20px, 3vw, 32px) 4px;
}

.pf-box > .pf-row:last-child {
  padding-bottom: 26px;
}

.pf-row > .pf-name {
  padding-top: 12px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.pf-req,
.pf-opt {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  vertical-align: 2px;
}

.pf-req {
  background: var(--accent);
  color: #fff;
}

.pf-opt {
  background: var(--paper-2);
  color: var(--muted);
}

.pf-field input[type="text"],
.pf-field input[type="email"],
.pf-field input[type="tel"],
.pf-field input[type="url"],
.pf-field select,
.pf-field textarea {
  width: 100%;
  max-width: none;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}

.pf-field input:focus,
.pf-field select:focus,
.pf-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.pf-field textarea {
  min-height: 200px;
  resize: vertical;
  line-height: 1.8;
}

.pf-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.pf-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pf-date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pf-date select {
  width: auto;
  min-width: 96px;
}

.pf-date span {
  color: var(--muted);
}

/* ご予算: 選ぶボタン */
.pf-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pf-choices label {
  position: relative;
  cursor: pointer;
}

.pf-choices input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pf-choices span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  color: var(--ink-2);
  transition: background-color .2s, border-color .2s, color .2s;
}

.pf-choices input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 700;
}

.pf-choices input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 送る */
.pf-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 16px;
  margin: 32px 0 0;
}

.pf-actions .btn {
  min-width: 280px;
  min-height: 56px;
  font-size: 16px;
}

.pf-actions .btn-secondary {
  min-width: 160px;
}

.pf-note {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.pf-more {
  margin: 40px 0 0;
  text-align: center;
  font-size: 14px;
}

.pf-more a {
  color: var(--accent-text);
  font-weight: 700;
}

/* 確認・エラー・完了 */
.pf-lead {
  margin: 0 0 24px;
  color: var(--ink-2);
  line-height: 1.9;
}

.pf-row > .pf-value {
  padding-top: 12px;
  line-height: 1.8;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.pf-empty {
  color: var(--muted);
}

.pf-errors {
  margin: 0 0 24px;
  padding: 22px 26px;
  background: var(--paper);
  border-left: 4px solid #c4321c;
}

.pf-errors b {
  display: block;
  margin-bottom: 8px;
  color: #c4321c;
}

.pf-errors ul {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.9;
}

.pf-done {
  background: var(--paper);
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
}

.pf-done .pf-number {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 18px;
  background: #fff;
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--ink-2);
}

.pf-done .pf-number b {
  margin-left: 6px;
  font-size: 18px;
  color: var(--ink);
}

.pf-done h2 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.5;
  letter-spacing: .04em;
}

.pf-done p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

@media (max-width: 760px) {
  .pf-steps {
    grid-template-columns: 1fr;
  }

  .pf-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pf-row > .pf-name,
  .pf-row > .pf-value {
    padding-top: 0;
  }

  .pf-actions .btn {
    width: 100%;
    min-width: 0;
  }
}
