/* =====================================
   くらべる職人 LP 固定フォーム専用CSS
   style.css の影響を完全に遮断（最終安定版）
===================================== */

/* =========================
   LPフォーム全体
========================= */

#lp-form {
  margin: 60px 0;
  padding: 0 10px;
  box-sizing: border-box;
}

/* フォーム外枠 */
#lp-form .sf-wrapper {
  max-width: 640px;
  margin: 0 auto !important;
  padding: 24px 24px 50px;
  background-color: #f4faec;
  border: 3px solid #d5e6c3;
  border-radius: 12px;
  box-sizing: border-box;
}

/* タイトル */
#lp-form .step0 {
  font-weight: bold;
  color: #666;
  margin-bottom: 20px;
  text-align: center;
}

/* =========================
   各ステップ共通
========================= */

#lp-form .sf-step {
  position: static !important;
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
  margin-bottom: 32px;
}

/* 見出し */
#lp-form .step-title {
  color: #7ab63d;
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 16px;
  border-bottom: 2px solid #7ab63d;
  padding-bottom: 2px;
  text-align: left;
}

/* =========================
   ボタン配置（フォーム）
========================= */

#lp-form .button-group {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
}

#lp-form .btn-radio,
#lp-form .btn-check {
  flex: 0 0 calc(50% - 12px);
  max-width: calc(50% - 12px);
  box-sizing: border-box;
}

#lp-form .btn-radio input,
#lp-form .btn-check input {
  display: none !important;
}

#lp-form .btn-radio span,
#lp-form .btn-check span {
  display: block;
  width: 100%;
  padding: 16px;
  text-align: center;
  font-weight: bold;
  border-radius: 8px;
  border: 2px solid #ccc;
  background: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

#lp-form .btn-radio span:hover,
#lp-form .btn-check span:hover {
  background: #eef6e4;
  border-color: #7ab63d;
}

#lp-form .btn-radio input:checked + span,
#lp-form .btn-check input:checked + span {
  background: #7ab63d;
  color: #fff;
  border-color: #7ab63d;
}

/* =========================
   入力エリア
========================= */

#lp-form .sf-step.one-column,
#lp-form .sf-final-form {
  max-width: 520px;
  margin: 0 auto;
  box-sizing: border-box;
}

#lp-form select,
#lp-form input[type='text'],
#lp-form input[type='tel'],
#lp-form input[type='email'] {
  width: 100%;
  height: 44px;
  font-size: 16px;
  padding: 0 10px;
  border-radius: 6px;
  border: 2px solid #ccc;
  margin-bottom: 12px;
  box-sizing: border-box;
}

#lp-form input[readonly] {
  background-color: #f5f5f5;
  color: #666;
}

/* =========================
   最終フォーム
========================= */

#lp-form .sf-final-form {
  display: block !important;
}

#lp-form .sf-final-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
}

#lp-form .sf-final-form button {
  width: 100%;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #fff;
  background: #f4a460;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#lp-form .sf-final-form button:hover {
  background: #ff8c00;
}

#lp-form .policy-note {
  font-size: 0.9em;
  margin: 12px 0;
  text-align: left;
}

/* =========================
   補足テキスト
========================= */

.form-lead {
  margin: 0 0 20px;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  background: #fafafa;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
}

.form-time {
  font-size: 13px;
  color: #666;
  margin-bottom: 24px;
  text-align: center;
}

.form-note {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin-top: -10px;
  margin-bottom: 18px;
}

/* =====================================
   CVエリア（LP専用・top / bottom 両対応）
   ※ HTMLは一切変更しない前提
===================================== */

/* =========================
   CVエリア外枠
========================= */

#cv_area_top.cv-area,
#cv_area_bottom.cv-area {
  max-width: 1000px;
  margin: 40px auto 20px;
  padding: 0 16px;
  text-align: center;
  box-sizing: border-box;
}

/* =========================
   リード文
========================= */

#cv_area_top .cv-lead,
#cv_area_bottom .cv-lead {
  font-size: 16px;
  color: #666;
  margin-bottom: 15px;
  font-weight: 600;
}

/* 補足説明文 */
#cv_area_top .cv-pre-note,
#cv_area_bottom .cv-pre-note {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  margin: 0 0 24px;
  text-align: left;
}

/* =========================
   ボタン全体
========================= */

#cv_area_top .cv-buttons,
#cv_area_bottom .cv-buttons {
  display: flex !important;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  box-sizing: border-box;
}

/* 各ボタンブロック */
#cv_area_top .cv-button-wrap,
#cv_area_bottom .cv-button-wrap {
  width: 100%;
  max-width: 420px;
}

/* =========================
   CVボタン本体（WP対策）
========================= */

#cv_area_top a.cv-button,
#cv_area_bottom a.cv-button {
  display: flex !important; /* ← WPの a { display:inline } を殺す */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 25px 16px 22px;
  border-radius: 8px;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  box-sizing: border-box;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#cv_area_top a.cv-button:hover,
#cv_area_bottom a.cv-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* =========================
   バッジ
========================= */

#cv_area_top .cv-badge,
#cv_area_bottom .cv-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  font-size: 13px;
  padding: 2px 20px;
  border-radius: 20px;
  margin-bottom: 6px;
  box-sizing: border-box;
}

/* =========================
   メインテキスト
========================= */

#cv_area_top .cv-text,
#cv_area_bottom .cv-text {
  font-size: 20px;
}

/* =========================
   フォームCV（オレンジ）
========================= */

#cv_area_top .cv-form,
#cv_area_bottom .cv-form {
  background: #f7931e;
}

#cv_area_top .cv-form .cv-badge,
#cv_area_bottom .cv-form .cv-badge {
  color: #f7931e;
}

/* =========================
   LINE CV（グリーン）
========================= */

#cv_area_top .cv-line,
#cv_area_bottom .cv-line {
  background: #41b549;
}

#cv_area_top .cv-line .cv-badge,
#cv_area_bottom .cv-line .cv-badge {
  color: #41b549;
}

/* =========================
   注釈テキスト
========================= */

#cv_area_top .cv-note,
#cv_area_bottom .cv-note {
  font-size: 12px;
  color: #777;
  margin-top: 6px;
  line-height: 1.5;
}

/* =========================
   スマホ対応
========================= */

@media (max-width: 768px) {
  #cv_area_top .cv-buttons,
  #cv_area_bottom .cv-buttons {
    flex-direction: column;
    gap: 8px;
  }

  #cv_area_top .cv-text,
  #cv_area_bottom .cv-text {
    font-size: 18px;
  }
}
