html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
}

.page-hero {
  min-height: 340px;
  padding: 130px max(43px, calc((100vw - 1280px) / 2 + 43px)) 70px;
  color: var(--navy);
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.74) 42%,
      rgba(255, 255, 255, 0.3) 100%
    ),
    url("../../../assets/images/hero_contact_1920x400.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 1920px 400px;
}

.page-hero__eyebrow {
  margin: 0 0 18px;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 3.3vw, 40px);
  font-weight: 600;
  line-height: 1.25;
}

.page-hero p:not(.page-hero__eyebrow) {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(8, 36, 72, 0.82);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 2;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 43px 104px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 44px;
  border: 1px solid rgba(8, 36, 72, 0.16);
}

.step-list div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-right: 1px solid rgba(8, 36, 72, 0.16);
  background: #fff;
  color: rgba(8, 36, 72, 0.58);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.step-list div:last-child {
  border-right: 0;
}

.step-list .current {
  background: var(--navy);
  color: #fff;
}

.form-block,
.confirm-block,
.message-box {
  border-top: 1px solid rgba(8, 36, 72, 0.22);
}

.form-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  border-bottom: 1px solid rgba(8, 36, 72, 0.14);
}

.form-row--honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row label,
.form-row .label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 28px;
  background: rgba(8, 36, 72, 0.045);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.form-row .field {
  padding: 20px 28px;
  color: var(--navy);
}

.required {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid rgba(178, 72, 53, 0.28);
  border-radius: 999px;
  color: #b24835;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(8, 36, 72, 0.22);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  padding: 12px 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(47, 125, 163, 0.72);
  box-shadow: 0 0 0 4px rgba(47, 125, 163, 0.12);
}

textarea {
  min-height: 190px;
  resize: vertical;
}

p label {
  color: rgba(8, 36, 72, 0.8);
  font-size: 14px;
  font-weight: 600;
}

p input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

.privacy-note {
  margin: 26px 0 14px;
  color: rgba(8, 36, 72, 0.56);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.9;
}

.privacy-note a {
  color: rgba(8, 36, 72, 0.72);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.error-box {
  display: none;
  margin-bottom: 28px;
  padding: 16px 18px;
  border-left: 4px solid #b24835;
  background: #fff6f3;
  color: #7a2d20;
  font-size: 14px;
  font-weight: 600;
}

.notice-box {
  margin: -14px 0 28px;
  padding: 16px 18px;
  border-left: 4px solid #2f7da3;
  background: rgba(47, 125, 163, 0.08);
  color: rgba(8, 36, 72, 0.82);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

.field-error {
  margin-top: 8px;
  color: #b24835;
  font-size: 13px;
  font-weight: 600;
}

.confirm-value {
  white-space: pre-wrap;
}

.message-box {
  padding: 34px 38px;
  background: rgba(8, 36, 72, 0.045);
  color: var(--navy);
  font-size: 15px;
  line-height: 2;
}

.message-box p {
  margin: 0 0 14px;
}

.message-box p:last-child {
  margin-bottom: 0;
}

.message-box h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
}

button,
.button-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 48px;
  padding: 13px 26px;
  border: 1px solid rgba(8, 36, 72, 0.36);
  border-radius: 3px;
  background:
    linear-gradient(var(--navy), var(--navy)) no-repeat right / 0 100%,
    rgba(255, 255, 255, 0.72);
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background-size 0.34s ease,
    border-color 0.28s ease,
    color 0.28s ease,
    transform 0.28s ease;
}

button:hover,
.button-link:hover {
  background-size: 100% 100%, auto;
  background-position: left, center;
  border-color: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

button.secondary,
.button-link.secondary {
  border-color: rgba(8, 36, 72, 0.18);
  color: rgba(8, 36, 72, 0.72);
}

button.secondary:hover,
.button-link.secondary:hover {
  color: #fff;
}

@media (max-width: 1100px) {
  .page-hero {
    background-position: left center;
  }
}

@media (max-width: 720px) {
  .page-hero {
    min-height: 250px;
    padding: 112px 24px 42px;
    background-position: center center;
    background-size: auto 400px;
  }

  .page-hero p:not(.page-hero__eyebrow) {
    max-width: 520px;
    font-size: 13px;
    line-height: 1.8;
  }

  main {
    padding: 52px 24px 76px;
  }

  .step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .step-list div {
    min-height: 48px;
    border-bottom: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row label,
  .form-row .label {
    padding: 18px 18px 8px;
    background: #fff;
  }

  .form-row .field {
    padding: 8px 18px 20px;
  }

  .message-box {
    padding: 26px 24px;
  }

  button,
  .button-link {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .page-hero {
    padding-right: 20px;
    padding-left: 20px;
  }

  .step-list {
    grid-template-columns: 1fr;
  }

  .step-list div {
    border-right: 0;
    border-bottom: 1px solid rgba(8, 36, 72, 0.16);
  }

  .step-list div:last-child {
    border-bottom: 0;
  }
}
