/* 口コミ投稿フォーム（/review-form/post）。review-form.css の rf- を拡張。色は app.css の基本トークンのみ使用 */
.rf-hero--compact { padding: 3rem 1.5rem 2.5rem; }
.rf-hero--compact .rf-hero__title { margin-bottom: 1.2rem; }

/* 進捗ナビ */
.rpf-nav {
  position: sticky;
  top: 72px;
  z-index: 50;
  background: rgba(250, 247, 242, 0.96);
  border-bottom: 1px solid var(--bg-greige);
  padding: 0.6rem 1rem;
  margin-bottom: 1.5rem;
}
.rpf-nav__inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.rpf-nav__inner::-webkit-scrollbar { display: none; }
.rpf-nav a {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--text-medium);
  background: var(--white);
  border: 1px solid var(--bg-greige);
  border-radius: 99px;
  padding: 0.25rem 0.8rem;
  text-decoration: none;
  white-space: nowrap;
}
.rpf-nav a.is-done {
  background: var(--lavender-pale);
  border-color: var(--lavender-light);
  color: var(--text-dark);
}
.rpf-nav a.is-done::before { content: '✓ '; color: var(--lavender); font-weight: 700; }

.rf-section { scroll-margin-top: 130px; }
.rf-card__title-num {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 0.75rem;
  color: var(--lavender);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* 設問 */
.rpf-q {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--bg-beige);
}
.rpf-q:first-of-type { padding-top: 0.4rem; }
.rpf-q:last-child { border-bottom: none; padding-bottom: 0; }
.rpf-q__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}
.rpf-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.55rem;
  border-radius: 99px;
  line-height: 1.6;
}
.rpf-badge--req { background: var(--rose-pale); color: var(--rose-deep); }
.rpf-badge--opt { background: var(--bg-beige); color: var(--text-light); }
.rpf-badge--multi { background: var(--lavender-pale); color: var(--lavender); }
.rpf-q__help {
  font-size: 0.83rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}
.rpf-q__help--ex {
  background: var(--bg-cream);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}
.rpf-q__help--ex ul { list-style: none; margin-top: 0.3rem; }
.rpf-q__help--ex li::before { content: '・'; color: var(--lavender); }

/* テキスト入力 */
.rpf-input, .rpf-textarea, .rpf-select {
  width: 100%;
  font-family: inherit;
  font-size: 16px; /* iOSのズーム防止 */
  color: var(--text-dark);
  background: var(--bg-beige);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}
.rpf-input::placeholder, .rpf-textarea::placeholder { color: var(--text-light); opacity: 0.8; }
.rpf-input:focus, .rpf-textarea:focus, .rpf-select:focus {
  outline: none;
  background: var(--white);
  border-color: var(--lavender-light);
}
.rpf-input--short { max-width: 200px; }
.rpf-textarea { min-height: 140px; resize: vertical; line-height: 1.8; }
.rpf-textarea--sm { min-height: 90px; }
.rpf-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--lavender) 50%), linear-gradient(135deg, var(--lavender) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.rpf-inline { display: flex; align-items: center; gap: 0.5rem; }
.rpf-inline span { color: var(--text-medium); font-size: 0.9rem; }

.rpf-count {
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}
.rpf-count.is-short { color: var(--rose-deep); }
.rpf-count.is-ok { color: var(--lavender); }

/* 選択肢（ラジオ・チェック） */
.rpf-choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
}
.rpf-choices--wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.rpf-choice { position: relative; }
.rpf-choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  pointer-events: none;
}
.rpf-choice span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  height: 100%;
  padding: 0.65rem 0.8rem;
  background: var(--white);
  border: 1.5px solid var(--bg-greige);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.2s;
}
.rpf-choice span::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 2px solid var(--lavender-light);
  border-radius: 50%;
  background: var(--white);
  transition: all 0.2s;
}
.rpf-choice input[type="checkbox"] + span::before { border-radius: 4px; }
.rpf-choice span:hover { border-color: var(--lavender-light); }
.rpf-choice input:checked + span {
  background: var(--lavender-pale);
  border-color: var(--lavender);
  font-weight: 700;
}
.rpf-choice input:checked + span::before {
  background: var(--lavender);
  border-color: var(--lavender);
  box-shadow: inset 0 0 0 3px var(--white);
}
.rpf-choice input[type="checkbox"]:checked + span::before {
  box-shadow: none;
  background: var(--lavender) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.rpf-choice input:focus-visible + span { outline: 2px solid var(--lavender); outline-offset: 2px; }

/* 5段階評価 */
.rpf-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
}
.rpf-scale .rpf-choice span {
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  gap: 0.3rem;
  padding: 0.7rem 0.3rem;
  font-size: 0.78rem;
  line-height: 1.4;
}
.rpf-scale .rpf-choice span::before { display: none; }
.rpf-scale .rpf-choice b {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: -0.05em;
}
.rpf-scale .rpf-choice input:checked + span {
  background: linear-gradient(135deg, var(--lavender-pale) 0%, var(--rose-pale) 100%);
}

/* 同意・送信 */
.rpf-agree {
  background: var(--bg-cream);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-top: 1.2rem;
}
.rpf-submit { text-align: center; padding: 1rem 1.5rem 3.5rem; }
.rpf-submit .rf-btn-primary { min-width: 280px; }
.rpf-submit .rf-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.rpf-submit__note { font-size: 0.82rem; color: var(--text-light); margin-top: 0.8rem; }

.rpf-error { border-color: var(--rose-deep) !important; }
.rpf-q.has-error .rpf-q__label { color: var(--rose-deep); }

@media (max-width: 768px) {
  .rpf-nav { top: 64px; }
  .rpf-choices, .rpf-choices--wide { grid-template-columns: 1fr; }
  .rpf-scale { grid-template-columns: 1fr; }
  .rpf-scale .rpf-choice span {
    flex-direction: row;
    text-align: left;
    gap: 0.7rem;
    padding: 0.6rem 0.9rem;
    font-size: 0.88rem;
  }
  .rpf-scale .rpf-choice b { min-width: 4.5em; font-size: 1rem; }
  .rpf-submit .rf-btn-primary { width: 100%; min-width: 0; }
}

/* サーバー側エラー・ハニーポット */
.rpf-errors {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--rose-pale);
  border-radius: 12px;
  color: var(--rose-deep);
  font-size: 0.9rem;
  line-height: 1.7;
}
.rpf-errors ul { list-style: none; margin-top: 0.3rem; }
.rpf-errors li::before { content: '・'; }
.rpf-q__error { font-size: 0.82rem; color: var(--rose-deep); margin-top: 0.4rem; }
.rpf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rpf-agree.has-error { outline: 2px solid var(--rose-deep); }

/* 利用履歴スクリーンショットの添付欄 */
.rpf-file {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  border: 2px dashed var(--lavender-light);
  border-radius: 12px;
  background: var(--bg-cream);
  padding: 1.6rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}
.rpf-file:hover { background: var(--lavender-pale); }
.rpf-file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rpf-file__icon { font-size: 1.6rem; color: var(--lavender); line-height: 1; }
.rpf-file__main { font-weight: 700; font-size: 0.92rem; }
.rpf-file__sub { font-size: 0.78rem; color: var(--text-light); }
.rpf-file__name { font-size: 0.85rem; color: var(--lavender); font-weight: 700; word-break: break-all; }
.has-error .rpf-file { border-color: var(--rose-deep); }
