/* ============================================================
   charter-form.css  顧客予約フォーム 完全版
   ============================================================ */

#charter-form-page,
#charter-form-page * {
  box-sizing: border-box !important;
}

#charter-form-page {
  background: #f0f7fc !important;
  min-height: 100vh;
  padding: 0 0 60px !important;
  margin: 0 !important;
  width: 100% !important;
}

.cf-container {
  max-width: 640px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
  overflow-x: hidden !important;
}

/* ヒーロー */
.cf-hero {
  background: linear-gradient(135deg, #023e6e 0%, #0077b6 100%) !important;
  color: #fff !important;
  padding: calc(32px + 64px) 20px 28px !important;
  text-align: center !important;
  margin: 0 -16px 20px !important;
}
.cf-hero h1 {
  font-size: 24px !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  color: #fff !important;
}
.cf-hero h1 i { color: #ffc94a !important; }
.cf-hero p { font-size: 15px !important; opacity: .85; color: #fff !important; margin: 0 !important; }

/* 料金サマリー */
.cf-price-summary {
  background: #fff !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  margin-bottom: 16px !important;
  border-left: 4px solid #f4a020 !important;
  box-shadow: 0 2px 10px rgba(0,119,182,.1) !important;
}
.cf-price-summary__title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #5a7189 !important;
  margin-bottom: 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.cf-price-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  padding: 6px 0 !important;
  border-bottom: 1px solid #f0f7fc !important;
  font-size: 15px !important;
}
.cf-price-row:last-child { border-bottom: none !important; }
.cf-price-row__label { color: #5a7189 !important; }
.cf-price-row__value { font-weight: 700 !important; color: #023e6e !important; font-size: 18px !important; }
.cf-price-row__value.total { color: #f4a020 !important; font-size: 22px !important; }
.cf-price-note { font-size: 12px !important; color: #999 !important; margin-top: 8px !important; }

/* セクション */
.cf-section {
  background: #fff !important;
  border-radius: 12px !important;
  padding: 20px 16px !important;
  margin-bottom: 14px !important;
  box-shadow: 0 2px 10px rgba(0,119,182,.08) !important;
}
.cf-section__title {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #023e6e !important;
  margin-bottom: 16px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid #e8f2f9 !important;
  display: block !important;
}

/* フォームグループ */
.cf-form-group {
  margin-bottom: 18px !important;
  display: block !important;
}
.cf-form-group:last-child { margin-bottom: 0 !important; }

/* labelは基本block */
#charter-form-page .cf-form-group > label {
  display: block !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #5a7189 !important;
  margin-bottom: 8px !important;
  line-height: 1.5 !important;
  flex-direction: unset !important;
}

/* 入力要素共通 */
.cf-form-group input[type="text"],
.cf-form-group input[type="tel"],
.cf-form-group input[type="email"],
.cf-form-group input[type="date"],
.cf-form-group select,
.cf-form-group textarea {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 14px 16px !important;
  border: 1.5px solid #c5dff0 !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  color: #1a2e42 !important;
  background: #fff !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  line-height: 1.5 !important;
  height: auto !important;
  min-height: 50px !important;
  margin: 0 !important;
  transition: border-color .15s;
}
.cf-form-group input:focus,
.cf-form-group select:focus,
.cf-form-group textarea:focus {
  outline: none !important;
  border-color: #0077b6 !important;
}
.cf-req { color: #e53935 !important; }
.cf-hint {
  display: block !important;
  font-size: 13px !important;
  color: #5a7189 !important;
  margin-top: 6px !important;
}

/* 貸し切り注記 */
.cf-charter-note {
  background: #fff9e6 !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  margin-top: 10px !important;
  font-size: 14px !important;
  color: #5a7189 !important;
}
.cf-charter-note p { font-weight: 700 !important; color: #1a2e42 !important; margin-bottom: 6px !important; }
.cf-charter-note ul { padding-left: 18px !important; }
.cf-charter-note li { margin-bottom: 4px !important; }

/* トグルラッパー */
.cf-toggle-wrap {
  display: block !important;
}

/* トグルlabel：横並び強制 */
#charter-form-page .cf-toggle-label,
.cf-toggle-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: none !important;
  font-size: inherit !important;
  color: inherit !important;
}

/* トグルスライダー */
.cf-toggle__slider {
  display: block !important;
  width: 48px !important;
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  background: #ccc !important;
  border-radius: 13px !important;
  position: relative !important;
  flex-shrink: 0 !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.cf-toggle__slider::after {
  content: '' !important;
  position: absolute !important;
  top: 3px !important;
  left: 3px !important;
  width: 20px !important;
  height: 20px !important;
  background: #fff !important;
  border-radius: 50% !important;
  transition: transform .2s;
  margin: 0 !important;
  padding: 0 !important;
}
input#cf-charter:checked + .cf-toggle-label .cf-toggle__slider {
  background: #0077b6 !important;
}
input#cf-charter:checked + .cf-toggle-label .cf-toggle__slider::after {
  transform: translateX(22px) !important;
}

/* トグルテキスト */
.cf-toggle__text {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #1a2e42 !important;
  line-height: 1 !important;
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: center !important;
}

/* レンタル品 */
.cf-rental-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
}
.cf-rental-row select {
  flex: 1 !important;
  padding: 10px 12px !important;
  border: 1.5px solid #c5dff0 !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  min-height: 44px !important;
  line-height: 1.5 !important;
  display: block !important;
}
.cf-rental-row input[type="number"] {
  width: 64px !important;
  padding: 10px 8px !important;
  border: 1.5px solid #c5dff0 !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  text-align: center !important;
  min-height: 44px !important;
}
.cf-rental-remove {
  color: #e53935 !important;
  font-size: 20px !important;
  padding: 4px !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  min-height: auto !important;
  line-height: 1 !important;
}

.cf-add-btn {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: none !important;
  border: 1.5px dashed #c5dff0 !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  color: #5a7189 !important;
  cursor: pointer !important;
  width: 100% !important;
  transition: all .15s;
}
.cf-add-btn:hover { border-color: #0077b6 !important; color: #0077b6 !important; }

/* 同意 */
.cf-agree { padding: 4px 0 !important; }
.cf-agree__label {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px !important;
  font-size: 15px !important;
  color: #1a2e42 !important;
  cursor: pointer !important;
}
.cf-agree__label input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
  display: inline-block !important;
}
.cf-agree__label a { color: #0077b6 !important; }

/* 送信ボタン */
.cf-submit-area { margin-top: 8px !important; }
.cf-submit-btn {
  width: 100% !important;
  padding: 18px !important;
  background: linear-gradient(135deg, #0077b6 0%, #023e6e 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  min-height: 60px !important;
}
.cf-submit-btn:disabled { opacity: .6 !important; cursor: not-allowed !important; }

/* 完了画面 */
.cf-complete {
  text-align: center !important;
  padding: 40px 20px !important;
}
.cf-complete__icon { font-size: 72px !important; color: #2e7d32 !important; margin-bottom: 20px !important; }
.cf-complete h2 { font-size: 22px !important; font-weight: 700 !important; color: #023e6e !important; margin-bottom: 12px !important; }
.cf-complete p { font-size: 16px !important; color: #5a7189 !important; line-height: 1.8 !important; margin-bottom: 28px !important; }
.cf-complete__contact { display: flex !important; flex-direction: column !important; gap: 12px !important; margin-bottom: 24px !important; }
.cf-tel-btn, .cf-line-btn {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 16px !important;
  border-radius: 10px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.cf-tel-btn { background: #f4a020 !important; color: #fff !important; }
.cf-line-btn { background: #06c755 !important; color: #fff !important; }
.cf-home-btn {
  display: inline-block !important;
  padding: 12px 28px !important;
  border: 2px solid #0077b6 !important;
  border-radius: 8px !important;
  color: #0077b6 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  font-size: 15px !important;
}

/* エラー */
.cf-form-group input.error,
.cf-form-group select.error { border-color: #e53935 !important; }
