@charset "utf-8";

/* ============================================================
   contact-form.css — 1ページ完結フォーム専用スタイル
   ============================================================ */

/* --- Layout ------------------------------------------------- */
.cf-wrap {
  max-width: 680px;
  margin: 0 auto 40px;
  padding: 0 16px;
}

/* --- Heading ------------------------------------------------ */
.cf-heading {
  text-align: center;
  margin-bottom: 8px;
}
.cf-heading h1 {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin: 0;
}
.cf-subtitle {
  text-align: center;
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin: 8px 0 0;
}

/* --- 見積添付カード ------------------------------------------ */
.cf-estimate-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
}
.cf-estimate-card h3 {
  font-size: 15px;
  font-weight: bold;
  color: #334155;
  margin: 0 0 12px;
}
.cf-estimate-card .cf-est-vehicle {
  font-size: 14px;
  color: #475569;
  margin-bottom: 8px;
}
.cf-estimate-card .cf-est-menus {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.cf-estimate-card .cf-est-menus li {
  font-size: 14px;
  color: #475569;
  padding: 2px 0;
}
.cf-estimate-card .cf-est-menus li::before {
  content: "\30FB"; /* ・ */
  margin-right: 4px;
}
.cf-estimate-card .cf-est-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  margin-top: 12px;
}
.cf-estimate-card .cf-est-total strong {
  font-size: 14px;
  color: #333;
}
.cf-estimate-card .cf-est-total .cf-est-price {
  font-size: 22px;
  font-weight: bold;
  color: #333;
}
.cf-estimate-card .cf-est-discount {
  font-size: 13px;
  color: #2563eb;
  text-align: right;
  margin-top: 4px;
}
.cf-estimate-card .cf-est-note {
  font-size: 13px;
  color: #78716c;
  margin-top: 12px;
}

/* --- 見積ツール誘導バナー ------------------------------------ */
.cf-estimate-banner {
  background-color: #fff7ed;
  border: 2px solid #fed7aa;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}
.cf-estimate-banner h3 {
  font-size: 17px;
  font-weight: bold;
  color: #c2410c;
  margin: 0 0 10px;
}
.cf-estimate-banner p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin: 0;
}
.cf-estimate-banner .eb-cta {
  display: inline-block;
  background-color: #f97316;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  font-size: 15px;
  text-decoration: none;
  padding: 10px 20px;
  margin-top: 14px;
  transition: background 0.2s;
}
.cf-estimate-banner .eb-cta:hover { background-color: #ea580c; color: white; }
.cf-estimate-banner .eb-sub-link {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #6b7280;
}
.cf-estimate-banner .eb-sub-link:hover { color: #374151; }
.cf-estimate-banner .eb-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #fed7aa;
  font-size: 13px;
  color: #78716c;
  line-height: 1.7;
}

/* --- Form Reset (mailform.css overrides) -------------------- */
form#mail_form *,
div#confirm_field * {
  box-sizing: border-box;
}
form#mail_form {
  width: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  line-height: 1.8;
}

/* --- dl / dt / dd ------------------------------------------- */
form#mail_form dl {
  width: 100%;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #f0f0f0;
}
form#mail_form dl:last-of-type {
  border-bottom: none;
}
form#mail_form dl dt {
  width: auto;
  float: none;
  padding: 20px 0 6px;
  text-align: left;
  font-weight: bold;
  font-size: 14px;
  color: #333;
}
form#mail_form dl dd {
  width: auto;
  float: none;
  padding: 0 0 16px;
}
form#mail_form dl dt i {
  float: none;
  position: static;
}

/* --- 必須 / 任意 バッジ -------------------------------------- */
form#mail_form dl dt .cf-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
form#mail_form dl dt .cf-badge-required {
  background: #ef4444;
  color: #fff;
}
form#mail_form dl dt .cf-badge-optional {
  background: #e5e7eb;
  color: #6b7280;
}

/* --- Input fields ------------------------------------------- */
form#mail_form input[type="text"],
form#mail_form input[type="email"],
form#mail_form input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fafafa;
  font-size: 16px;
  font-family: inherit;
  line-height: normal;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
form#mail_form input[type="text"]:focus,
form#mail_form input[type="email"]:focus,
form#mail_form input[type="tel"]:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
  background: #fff;
  outline: none;
}

form#mail_form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fafafa;
  font-size: 16px;
  font-family: inherit;
  line-height: normal;
  -webkit-appearance: 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='%236b7280' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
form#mail_form select:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
  background-color: #fff;
  outline: none;
}

form#mail_form textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fafafa;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
form#mail_form textarea:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
  background: #fff;
  outline: none;
}
form#mail_form textarea[readonly] {
  background: #f1f5f9;
  color: #475569;
  cursor: default;
  border-color: #e2e8f0;
}
form#mail_form textarea[readonly]:focus {
  border-color: #e2e8f0;
  box-shadow: none;
}

/* --- Checkbox group ----------------------------------------- */
.cf-checkbox-group {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cf-checkbox-group li {
  margin-bottom: 6px;
}
.cf-checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #f8f9fa;
  cursor: pointer;
  transition: background 0.15s;
}
.cf-checkbox-group label:active { background: #e9ecef; }
.cf-checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  accent-color: #f97316;
}

/* --- Radio group -------------------------------------------- */
.cf-radio-group {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cf-radio-group li {
  margin-bottom: 6px;
}
.cf-radio-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #f8f9fa;
  cursor: pointer;
  transition: background 0.15s;
}
.cf-radio-group label:active { background: #e9ecef; }
.cf-radio-group input[type="radio"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  accent-color: #f97316;
}

/* --- 施工時期インライン通知 ---------------------------------- */
#timing_notice {
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.8;
  transition: all 0.3s ease;
  display: none;
}

/* --- File input --------------------------------------------- */
form#mail_form input[type="file"] {
  font-size: 14px;
}
.cf-file-help {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}

/* --- Field hint --------------------------------------------- */
.cf-hint {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
  line-height: 1.6;
}

/* --- Error messages ----------------------------------------- */
form#mail_form dl dd span.error_blank,
form#mail_form dl dd span.error_format,
form#mail_form dl dd span.error_match {
  display: block;
  color: #ef4444;
  font-size: 13px;
  margin-top: 4px;
}

/* --- Submit button ------------------------------------------ */
.cf-submit-area {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}
form#mail_form p#form_submit {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
}
form#mail_form input[type="button"]#form_submit_button {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 16px 24px;
  background: #f97316;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 17px;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  -webkit-appearance: none;
}
form#mail_form input[type="button"]#form_submit_button:hover {
  background: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}
form#mail_form input[type="button"]#form_submit_button:active {
  transform: translateY(0);
}

/* --- Trust signals ------------------------------------------ */
.cf-trust {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 16px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

/* --- Confirm panel ------------------------------------------ */
div#confirm_field h2 {
  font-size: 18px;
  text-align: center;
  margin-bottom: 16px;
}
div#confirm_field p#confirm_submit {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}
div#confirm_field input[type="button"] {
  width: 100%;
  max-width: 400px;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
}
div#confirm_field input#confirm_submit_button {
  background: #f97316;
  border: 1px solid #ea580c;
  color: #fff;
  margin-left: 0;
}
div#confirm_field input#confirm_submit_button:hover {
  background: #ea580c;
}
div#confirm_field input#confirm_cancel_button {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #6b7280;
  margin-left: 0;
}
div#confirm_field input#confirm_cancel_button:hover {
  background: #f3f4f6;
}

/* --- Section divider ---------------------------------------- */
.cf-section-label {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  padding: 20px 0 8px;
  margin-top: 8px;
  border-bottom: 2px solid #f97316;
}

/* --- Responsive --------------------------------------------- */
@media (max-width: 640px) {
  .cf-wrap {
    padding: 0 12px;
  }
  .cf-heading h1 {
    font-size: 19px;
  }
  .cf-estimate-card {
    padding: 16px 18px;
  }
  .cf-estimate-banner {
    padding: 20px;
  }
  .cf-estimate-banner h3 {
    font-size: 16px;
  }
  form#mail_form dl dt {
    padding: 16px 0 4px;
  }
  form#mail_form dl dd {
    padding: 0 0 12px;
  }
  form#mail_form input[type="button"]#form_submit_button {
    max-width: 100%;
  }
  div#confirm_field input[type="button"] {
    max-width: 100%;
  }
}
