/* ============================================================
   Sanpo Chart Contact Form v2
   Path: swell_child/assets/css/contact-form-v2.css
   ============================================================ */

.cfv2-page-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 0 56px;
  line-height: 1.7;
  color: #1f2937;
}

.cfv2-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f7fc 0%, #e6f2fa 100%);
}

.cfv2-hero-decoration,
.cfv2-hero::before,
.cfv2-hero::after {
  z-index: -1 !important;
}

.cfv2-hero h1,
.cfv2-hero p {
  position: relative;
  z-index: 1;
}

.cfv2-hero h1 {
  color: #1f2937 !important;
}

.cfv2-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 24px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(26, 53, 79, .09);
  list-style: none;
}
.cfv2-trust li {
  font-size: 12.5px;
  color: #40506a;
  text-align: center;
  line-height: 1.5;
}
.cfv2-trust li strong {
  display: block;
  color: #0f8b8d;
  font-size: 13.5px;
  margin-bottom: 2px;
}
@media (max-width: 600px) {
  .cfv2-trust { grid-template-columns: 1fr; gap: 6px; padding: 12px; }
  .cfv2-trust li { text-align: left; padding: 4px 0; border-bottom: 1px dashed #dbe4ec; }
  .cfv2-trust li:last-child { border-bottom: none; }
  .cfv2-trust li strong { display: inline; margin-right: 6px; }
}

.cfv2-immediate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 24px;
}
@media (max-width: 600px) {
  .cfv2-immediate { grid-template-columns: 1fr; }
}
.cfv2-btn-immediate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 72px;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cfv2-btn-immediate span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.cfv2-btn-immediate span::before {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  content: "";
}
.cfv2-btn-phone span::before {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 0;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.35 1.9.65 2.8a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.28-1.22a2 2 0 0 1 2.11-.45c.9.3 1.84.52 2.8.65A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
  content: "";
}
.cfv2-btn-line span::before {
  width: 50px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #06c755;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
  content: "LINE";
}
.cfv2-btn-line span::after {
  content: none;
  display: none;
}
.cfv2-btn-phone {
  background: #1e6ba8 !important;
  color: #fff !important;
}
.cfv2-btn-phone:hover {
  background: #155a91 !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(30, 107, 168, .25);
}
.cfv2-btn-line {
  background: #06c755;
  color: #fff;
}
.cfv2-page-wrap .cfv2-btn-phone,
.cfv2-page-wrap .cfv2-btn-line {
  color: #fff !important;
}
.cfv2-btn-line:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(6, 199, 85, .22); }
.cfv2-btn-immediate small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  opacity: .86;
  margin-top: 2px;
}

.cfv2-divider {
  text-align: center;
  font-size: 13px;
  color: #7d8798;
  margin: 24px 0 20px;
}
.cfv2-divider::before,
.cfv2-divider::after {
  content: "";
  display: inline-block;
  width: 60px;
  height: 1px;
  background: #d1d5db;
  vertical-align: middle;
  margin: 0 12px;
}

.cfv2-form {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(219, 228, 236, .86);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 48px rgba(26, 53, 79, .12);
}
@media (max-width: 600px) {
  .cfv2-form { padding: 20px 16px; }
}

.cfv2-step {
  font-size: 13px;
  color: #0f8b8d;
  font-weight: 900;
  margin: 0 0 4px;
  letter-spacing: .05em;
}
.cfv2-section-title {
  font-size: 18px;
  font-weight: 900;
  color: #10264c;
  margin: 0 0 16px;
}

.cfv2-purpose-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .cfv2-purpose-options { grid-template-columns: 1fr; }
}
.cfv2-purpose-options input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cfv2-purpose-card {
  display: block;
  min-height: 104px;
  padding: 22px 18px;
  border: 2px solid #dbe4ec;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  background: #fff;
}
.cfv2-purpose-card:hover {
  border-color: #0f8b8d;
  background: #eefafa;
}
.cfv2-purpose-card.is-sub {
  border-style: dashed;
  background: #fafafa;
}
.cfv2-purpose-card.is-selected {
  border-color: #0f8b8d;
  background: #eefafa;
  box-shadow: 0 0 0 3px rgba(15, 139, 141, .1);
}
.cfv2-purpose-icon {
  display: none;
  width: 82px;
  height: 82px;
  margin-bottom: 12px;
}
.cfv2-purpose-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cfv2-purpose-title {
  display: block;
  font-weight: 900;
  font-size: 14.5px;
  color: #10264c;
  margin-bottom: 2px;
}
.cfv2-purpose-desc {
  display: block;
  font-size: 12px;
  color: #68758a;
  line-height: 1.5;
}

.cfv2-press-redirect {
  margin-bottom: 24px;
  padding: 18px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 8px;
  text-align: center;
}
.cfv2-press-redirect p { margin: 0 0 12px; font-size: 14px; color: #7c2d12; }
.cfv2-press-redirect a {
  display: inline-block;
  background: #ea580c;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
}
.cfv2-page-wrap .cfv2-press-redirect a {
  color: #fff !important;
}

.cfv2-progress-wrap {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 18px;
}
.cfv2-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0f8b8d, #06c755);
  width: 0%;
  transition: width .3s ease;
}

.cfv2-form-body[hidden] { display: none; }

.cfv2-existing-form .sc-contact-form-card h2,
.cfv2-existing-form .sc-contact-help,
.cfv2-existing-form .sc-contact-privacy {
  display: none;
}
.cfv2-existing-form .wpcf7,
.cfv2-existing-form .wpcf7 form {
  margin: 0;
}
.cfv2-existing-form .sc-cf7-form {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.cfv2-existing-form .sc-cf7-row {
  display: block;
  margin-bottom: 16px;
  border: 0;
}
.cfv2-existing-form .sc-cf7-row.is-cfv2-hidden {
  display: none !important;
}
.cfv2-existing-form .sc-cf7-label {
  display: block;
  min-height: 0;
  padding: 0;
  margin: 0 0 6px;
  background: transparent;
  border: 0;
  color: #374151;
  font-size: 13.5px;
}
.cfv2-existing-form .sc-cf7-label p,
.cfv2-existing-form .sc-cf7-field p {
  margin: 0;
}
.cfv2-existing-form .sc-cf7-field {
  padding: 0;
}
.cfv2-existing-form .sc-cf7-label span {
  display: inline-block;
  min-width: 0;
  height: auto;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  background: #f8e8e8;
  color: #9d3636;
  font-size: 11px;
  line-height: 1.5;
}
.cfv2-existing-form .sc-cf7-label span.is-optional,
.cfv2-existing-form .cfv2-opt {
  background: #f3f4f6;
  color: #6b7280;
}
.cfv2-existing-form input[type="text"],
.cfv2-existing-form input[type="email"],
.cfv2-existing-form input[type="tel"],
.cfv2-existing-form textarea,
.cfv2-existing-form select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #243653;
  font: inherit;
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cfv2-existing-form input:focus,
.cfv2-existing-form textarea:focus,
.cfv2-existing-form select:focus {
  outline: none;
  border-color: #0f8b8d;
  box-shadow: 0 0 0 3px rgba(15, 139, 141, .12);
}
.cfv2-existing-form textarea {
  min-height: 90px;
}

.cfv2-existing-form .wpcf7-not-valid-tip,
.cfv2-existing-form .wpcf7-response-output {
  display: none;
}

.cfv2-existing-form .cfv2-cf7-form.is-cfv2-submitted .wpcf7-not-valid-tip,
.cfv2-existing-form .cfv2-cf7-form.is-cfv2-submitted .wpcf7-response-output,
.cfv2-existing-form .cfv2-cf7-form .is-cfv2-touched .wpcf7-not-valid-tip {
  display: block;
}

.cfv2-existing-form .wpcf7-form-control.wpcf7-not-valid:not(.is-cfv2-touched) {
  border-color: #d1d5db;
  box-shadow: none;
}

.cfv2-existing-form .cfv2-cf7-form.is-cfv2-submitted .wpcf7-form-control.wpcf7-not-valid,
.cfv2-existing-form .cfv2-cf7-form .wpcf7-form-control.is-cfv2-touched.wpcf7-not-valid {
  border-color: #d96b6b;
  box-shadow: 0 0 0 3px rgba(217, 107, 107, .1);
}

.cfv2-optional {
  margin: 18px 0 22px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
}
.cfv2-optional summary {
  cursor: pointer;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 900;
  color: #0f8b8d;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.cfv2-optional summary::-webkit-details-marker { display: none; }
.cfv2-optional summary::after { content: "＋"; font-size: 18px; }
.cfv2-optional[open] summary::after { content: "−"; }
.cfv2-optional-body {
  padding: 4px 16px 16px;
  border-top: 1px solid #e5e7eb;
}
.cfv2-optional .sc-cf7-row {
  margin-bottom: 16px;
}
.cfv2-optional .sc-cf7-row:last-child {
  margin-bottom: 0;
}

.cfv2-reassure {
  background: #eefafa;
  border-left: 3px solid #0f8b8d;
  padding: 14px 16px;
  margin: 20px 0;
  border-radius: 4px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #374151;
}
.cfv2-reassure strong {
  display: block;
  color: #0f8b8d;
  margin-bottom: 4px;
  font-size: 14px;
}

.cfv2-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 18px;
  cursor: pointer;
}
.cfv2-consent input[type="checkbox"] {
  margin-top: 4px;
  accent-color: #0f8b8d;
  flex-shrink: 0;
}
.cfv2-consent a {
  color: #0f8b8d;
  text-decoration: underline;
}
.cfv2-page-wrap .cfv2-consent a {
  color: #0f8b8d !important;
  text-decoration: underline;
}

.cfv2-existing-form .sc-cf7-submit-row {
  padding: 0;
  text-align: center;
}
.cfv2-existing-form input[type="submit"],
.cfv2-existing-form .wpcf7-submit {
  width: 100%;
  min-height: 58px;
  padding: 16px;
  border: none;
  border-radius: 999px;
  background: #1e6ba8 !important;
  color: #fff !important;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(30, 107, 168, .2);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cfv2-existing-form input[type="submit"]:hover,
.cfv2-existing-form .wpcf7-submit:hover {
  background: #155a91 !important;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(30, 107, 168, .26);
}

.cfv2-submit {
  background: #1e6ba8 !important;
  color: #fff !important;
}

.cfv2-submit:hover:not(:disabled) {
  background: #155a91 !important;
}
.cfv2-submit-note {
  font-size: 12.5px;
  color: #6b7280;
  text-align: center;
  margin: 10px 0 0;
}
