/* =====================================================
   FIP転／FIT2 お問合せフォーム 固有スタイル
   ===================================================== */

/* ── 条件表示サブフィールド ── */
.form-field--sub {
  margin-top: -8px;
  margin-bottom: 0;
  padding: 14px 16px;
  background: var(--color-gray-50, #f8f9fa);
  border-left: 3px solid var(--color-primary, #2e7d32);
  border-radius: 0 6px 6px 0;
}

/* ── 電力エリア選択（ドロップダウン） ── */
.wpcf7-form .form-field select,
.wpcf7-form .form-field .wpcf7-select {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-ja);
  color: var(--color-text);
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: 6px;
  transition: var(--transition);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.wpcf7-form .form-field select:focus,
.wpcf7-form .form-field .wpcf7-select:focus {
  border-color: var(--color-green);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(46, 155, 101, 0.1);
}

/* ── 電力会社 自動表示 ── */
.power-area-display {
  margin-top: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--color-green-dark);
  background: var(--color-green-pale);
  border-radius: 4px;
  display: none;
}

.power-area-display.is-visible {
  display: block;
}

/* ── FIT価格（¥ 単位付き） ── */
.price-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* CF7 autop: <p> が prefix / input / suffix を全て包む */
.wpcf7-form .price-input-wrap > p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  width: 100%;
}

.wpcf7-form .price-input-wrap > p br {
  display: none;
}

.price-input-wrap .wpcf7-form-control-wrap {
  flex: 0 1 200px;
  min-width: 0;
}

.price-input-wrap input[type="text"] {
  width: 100%;
}

.price-prefix {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-navy);
  flex-shrink: 0;
}

.price-suffix {
  font-size: 13px;
  color: var(--color-gray-500);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── 数値 + 単位 横並び（共通） ── */
.unit-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wpcf7-form .unit-input-wrap > p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  width: 100%;
}

.wpcf7-form .unit-input-wrap > p br {
  display: none;
}

.unit-input-wrap .wpcf7-form-control-wrap {
  flex: 0 1 200px;
  min-width: 0;
}

.unit-input-wrap input[type="text"] {
  width: 100%;
}

.unit-suffix {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray-500);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── FIT契約終了（年・月 横並び） ── */
.date-pair {
  display: flex;
  align-items: center;
  gap: 12px;
}

.date-pair-field {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* CF7 autop: <p> が input + 単位を包む */
.wpcf7-form .date-pair-field > p {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.wpcf7-form .date-pair-field > p br {
  display: none;
}

.date-pair-field .wpcf7-form-control-wrap {
  width: 100px;
}

.date-pair-field input[type="text"] {
  width: 100%;
  text-align: center;
}

.date-pair-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-500);
  flex-shrink: 0;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .price-input-wrap .wpcf7-form-control-wrap {
    flex: 0 1 160px;
  }

  .date-pair-field .wpcf7-form-control-wrap {
    width: 80px;
  }
}
