/* ============================================================
   SAMPO CHART contact page
   Clean v2 form shell.
   ============================================================ */

.sampo-contact-page {
  background:
    radial-gradient(circle at 8% 22%, rgba(20, 143, 152, 0.08) 0 120px, transparent 121px),
    radial-gradient(circle at 88% 12%, rgba(67, 151, 204, 0.12) 0 180px, transparent 181px),
    linear-gradient(180deg, #f7fcff 0%, #eef8fc 52%, #f8fbfd 100%);
  color: #0b2148;
}

.sampo-contact-page .sc-contact-main {
  width: 100%;
  overflow: hidden;
  padding-bottom: clamp(72px, 8vw, 112px);
}

.sampo-contact-page .cfv2-shell,
.sampo-contact-page .cfv2-hero__inner {
  width: min(calc(100% - 48px), 1120px);
  margin-inline: auto;
}

.sampo-contact-page .cfv2-hero {
  position: relative;
  padding: clamp(56px, 7vw, 92px) 0 clamp(36px, 4vw, 56px);
}

.sampo-contact-page .cfv2-hero::before {
  content: "";
  position: absolute;
  left: max(16px, calc((100vw - 1120px) / 2 - 92px));
  top: 190px;
  width: 180px;
  height: 180px;
  opacity: 0.28;
  background-image: radial-gradient(#79c8d1 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  pointer-events: none;
}

.sampo-contact-page .cfv2-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: clamp(48px, 7vw, 120px);
}

.sampo-contact-page .cfv2-eyebrow {
  position: relative;
  margin: 0 0 22px;
  padding-left: 18px;
  color: #1b8a92;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.sampo-contact-page .cfv2-eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 4px;
  height: 1.1em;
  border-radius: 999px;
  background: #148f98;
}

.sampo-contact-page .cfv2-hero h1 {
  margin: 0;
  color: #0b2148;
  font-size: clamp(42px, 5.2vw, 68px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
}

.sampo-contact-page .cfv2-hero__lead {
  max-width: 760px;
  margin: 34px 0 0;
  color: #233a5f;
  font-size: 16px;
  font-weight: 800;
  line-height: 2.05;
}

.sampo-contact-page .cfv2-hero__portrait {
  position: relative;
  width: min(300px, 32vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 14px;
  background: linear-gradient(135deg, rgba(226, 246, 250, 0.95), rgba(255, 255, 255, 0.8));
  box-shadow: 0 26px 54px rgba(30, 96, 130, 0.15);
}

.sampo-contact-page .cfv2-hero__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.sampo-contact-page .cfv2-trust-section {
  margin-top: 6px;
}

.sampo-contact-page .cfv2-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(193, 218, 230, 0.9);
  border-radius: 10px;
  box-shadow: 0 22px 60px rgba(23, 71, 105, 0.1);
}

.sampo-contact-page .cfv2-trust__item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 22px 26px;
  border-left: 1px solid #dce9ef;
}

.sampo-contact-page .cfv2-trust__item:first-child {
  border-left: 0;
}

.sampo-contact-page .cfv2-trust__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid #2d95a0;
  border-radius: 50%;
  color: #2d95a0;
  background: #f8fdff;
}

.sampo-contact-page .cfv2-trust__icon::before {
  display: block;
  color: inherit;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.sampo-contact-page .cfv2-trust__item--phone .cfv2-trust__icon::before { content: "☎"; }
.sampo-contact-page .cfv2-trust__item--yen .cfv2-trust__icon::before { content: "¥"; }
.sampo-contact-page .cfv2-trust__item--shield .cfv2-trust__icon::before { content: "✓"; }
.sampo-contact-page .cfv2-trust__item--clock .cfv2-trust__icon::before { content: "○"; }

.sampo-contact-page .cfv2-trust strong,
.sampo-contact-page .cfv2-trust small {
  display: block;
  min-width: 0;
}

.sampo-contact-page .cfv2-trust strong {
  color: #0b2148;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.55;
}

.sampo-contact-page .cfv2-trust small {
  margin-top: 2px;
  color: #41556f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.sampo-contact-page .cfv2-form-section {
  padding: clamp(44px, 5vw, 70px) 0 0;
}

.sampo-contact-page .cfv2-card {
  position: relative;
  padding: clamp(34px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(197, 219, 230, 0.94);
  border-radius: 10px;
  box-shadow: 0 26px 70px rgba(19, 71, 106, 0.11);
}

.sampo-contact-page .cfv2-step-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.sampo-contact-page .cfv2-step-head--second {
  margin-top: 34px;
}

.sampo-contact-page .cfv2-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  background: #dff1f5;
  color: #1b8a92;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.sampo-contact-page .cfv2-step-badge--form {
  background: #2d95a0;
  color: #fff;
}

.sampo-contact-page .cfv2-step-head h2 {
  margin: 0;
  color: #0b2148;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0;
}

.sampo-contact-page .cfv2-purpose-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sampo-contact-page .cfv2-purpose-option {
  position: relative;
  display: block;
  margin: 0;
}

.sampo-contact-page .cfv2-purpose-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sampo-contact-page .cfv2-purpose-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 13px 16px 13px 44px;
  color: #243a5d;
  background: #fff;
  border: 1px solid #d7e5ed;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(16, 63, 92, 0.04);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sampo-contact-page .cfv2-purpose-card::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid #b6c9d5;
  border-radius: 50%;
  transform: translateY(-50%);
  box-sizing: border-box;
}

.sampo-contact-page .cfv2-purpose-card::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1b8a92;
  transform: translateY(-50%) scale(0);
  transition: transform 0.18s ease;
}

.sampo-contact-page .cfv2-purpose-card:hover,
.sampo-contact-page .cfv2-purpose-card.is-selected {
  border-color: #3aa0aa;
  background: #f7fdff;
  box-shadow: 0 10px 26px rgba(22, 133, 145, 0.1);
}

.sampo-contact-page .cfv2-purpose-card.is-selected::before {
  border-color: #3aa0aa;
}

.sampo-contact-page .cfv2-purpose-card.is-selected::after {
  transform: translateY(-50%) scale(1);
}

.sampo-contact-page .cfv2-existing-form {
  margin-top: 4px;
}

.sampo-contact-page .cfv2-existing-form .wpcf7,
.sampo-contact-page .cfv2-existing-form .wpcf7 form {
  margin: 0;
}

.sampo-contact-page .cfv2-existing-form .sc-contact-form-card,
.sampo-contact-page .cfv2-existing-form .sc-contact-form-card__body {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sampo-contact-page .cfv2-existing-form .sc-contact-form-card h2,
.sampo-contact-page .cfv2-existing-form .sc-contact-help,
.sampo-contact-page .cfv2-existing-form .sc-contact-privacy {
  display: none !important;
}

.sampo-contact-page .cfv2-existing-form .sc-cf7-form {
  overflow: hidden;
  border: 1px solid #d5e3eb;
  border-radius: 8px;
  background: #fff;
}

.sampo-contact-page .cfv2-existing-form .sc-cf7-row {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid #dce8ef;
}

.sampo-contact-page .cfv2-existing-form .sc-cf7-row:first-child {
  border-top: 0;
}

.sampo-contact-page .cfv2-existing-form .sc-cf7-label {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 18px 22px;
  background: #f7fbfd;
  border-right: 1px solid #dce8ef;
  color: #0b2148;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.55;
}

.sampo-contact-page .cfv2-existing-form .sc-cf7-label p {
  margin: 0;
}

.sampo-contact-page .cfv2-existing-form .sc-cf7-label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 20px;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 4px;
  background: #e06b6b;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}

.sampo-contact-page .cfv2-existing-form .sc-cf7-label span.is-optional,
.sampo-contact-page .cfv2-existing-form .cfv2-opt {
  background: #9aa9b8;
}

.sampo-contact-page .cfv2-existing-form .sc-cf7-field {
  min-width: 0;
  padding: 14px 22px;
}

.sampo-contact-page .cfv2-existing-form .sc-cf7-field p,
.sampo-contact-page .cfv2-existing-form .wpcf7-form > p {
  margin: 0;
}

.sampo-contact-page .cfv2-existing-form .wpcf7-form-control-wrap {
  display: block;
}

.sampo-contact-page .cfv2-existing-form input[type="text"],
.sampo-contact-page .cfv2-existing-form input[type="email"],
.sampo-contact-page .cfv2-existing-form input[type="tel"],
.sampo-contact-page .cfv2-existing-form select,
.sampo-contact-page .cfv2-existing-form textarea {
  width: min(100%, 390px);
  min-height: 42px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #cbdce6;
  border-radius: 6px;
  background: #fff;
  color: #10264c;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  box-shadow: inset 0 1px 2px rgba(17, 58, 87, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.sampo-contact-page .cfv2-existing-form select {
  appearance: auto;
}

.sampo-contact-page .cfv2-existing-form textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
}

.sampo-contact-page .cfv2-existing-form input:focus,
.sampo-contact-page .cfv2-existing-form select:focus,
.sampo-contact-page .cfv2-existing-form textarea:focus {
  outline: none;
  border-color: #2d95a0;
  box-shadow: 0 0 0 3px rgba(45, 149, 160, 0.13);
}

.sampo-contact-page .cfv2-existing-form ::placeholder {
  color: #9aa9b8;
  opacity: 1;
}

.sampo-contact-page .cfv2-existing-form .wpcf7-radio,
.sampo-contact-page .cfv2-existing-form .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
}

.sampo-contact-page .cfv2-existing-form .wpcf7-list-item {
  display: inline-flex;
  margin: 0;
}

.sampo-contact-page .cfv2-existing-form .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: #243a5d;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
}

.sampo-contact-page .cfv2-existing-form input[type="radio"],
.sampo-contact-page .cfv2-existing-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #2d95a0;
}

.sampo-contact-page .cfv2-existing-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #b33d3d;
  font-size: 12px;
  font-weight: 800;
}

.sampo-contact-page .cfv2-existing-form .wpcf7-response-output {
  margin: 18px 0 0 !important;
  padding: 12px 16px !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.sampo-contact-page .cfv2-existing-form .sc-cf7-submit-row {
  margin: 34px auto 0;
  padding: 0;
  text-align: center;
}

.sampo-contact-page .cfv2-existing-form .wpcf7-submit,
.sampo-contact-page .cfv2-existing-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 520px);
  min-height: 64px;
  margin: 0 auto;
  padding: 16px 34px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #2d95a0 0%, #0b7d84 100%) !important;
  color: #fff !important;
  box-shadow: 0 18px 36px rgba(18, 121, 132, 0.22);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.sampo-contact-page .cfv2-existing-form .wpcf7-submit:hover,
.sampo-contact-page .cfv2-existing-form input[type="submit"]:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(18, 121, 132, 0.27);
}

.sampo-contact-page .cfv2-submit-secure {
  margin: 14px 0 0;
  color: #64758b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.sampo-contact-page .cfv2-submit-secure::before {
  content: "🔒";
  margin-right: 6px;
}

@media (max-width: 1080px) {
  .sampo-contact-page .cfv2-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sampo-contact-page .cfv2-trust__item:nth-child(3) {
    border-left: 0;
  }

  .sampo-contact-page .cfv2-trust__item:nth-child(n+3) {
    border-top: 1px solid #dce9ef;
  }

  .sampo-contact-page .cfv2-purpose-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .sampo-contact-page .cfv2-shell,
  .sampo-contact-page .cfv2-hero__inner {
    width: min(calc(100% - 32px), 640px);
  }

  .sampo-contact-page .cfv2-hero__inner {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: left;
  }

  .sampo-contact-page .cfv2-hero__portrait {
    width: min(240px, 72vw);
    justify-self: center;
  }

  .sampo-contact-page .cfv2-hero__lead br {
    display: none;
  }

  .sampo-contact-page .cfv2-existing-form .sc-cf7-row {
    grid-template-columns: 1fr;
  }

  .sampo-contact-page .cfv2-existing-form .sc-cf7-label {
    min-height: 0;
    padding: 14px 16px 4px;
    border-right: 0;
    background: #fff;
  }

  .sampo-contact-page .cfv2-existing-form .sc-cf7-field {
    padding: 8px 16px 16px;
  }
}

@media (max-width: 640px) {
  .sampo-contact-page .cfv2-hero {
    padding-top: 42px;
  }

  .sampo-contact-page .cfv2-hero h1 {
    font-size: clamp(34px, 11vw, 44px);
  }

  .sampo-contact-page .cfv2-hero__lead {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.9;
  }

  .sampo-contact-page .cfv2-trust {
    grid-template-columns: 1fr;
  }

  .sampo-contact-page .cfv2-trust__item {
    min-height: 82px;
    padding: 18px 20px;
    border-left: 0;
    border-top: 1px solid #dce9ef;
  }

  .sampo-contact-page .cfv2-trust__item:first-child {
    border-top: 0;
  }

  .sampo-contact-page .cfv2-purpose-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sampo-contact-page .cfv2-card {
    padding: 26px 16px;
  }

  .sampo-contact-page .cfv2-step-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
