.contact-titleband {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.contact-titleband::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--red);
}

.contact-titleband__copy {
  padding-block: 64px 58px;
}

.contact-titleband p,
.contact-form__heading > p,
.contact-aside > p {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.contact-titleband h1 {
  margin: 12px 0 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(44px, 5.6vw, 66px);
  line-height: 1.2;
  letter-spacing: 0;
}

.contact-titleband__copy > span {
  max-width: 760px;
  margin-top: 18px;
  display: block;
  color: #dce6ee;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.8;
}

.contact-section {
  padding-block: 76px 88px;
  background: #eef2f5;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.38fr);
  gap: 56px;
  align-items: start;
}

.contact-form {
  min-width: 0;
  border: 1px solid rgba(10, 23, 36, 0.12);
  border-radius: 7px;
  padding: 40px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(10, 23, 36, 0.07);
}

.contact-form__heading {
  margin-bottom: 34px;
}

.contact-form__heading h2 {
  margin: 8px 0 0;
  color: var(--navy);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.35;
  letter-spacing: 0;
}

.contact-form__heading > span {
  margin-top: 12px;
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.contact-form__heading b,
.form-field label b {
  color: var(--red);
  font-size: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  min-width: 0;
  margin-top: 22px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #b8c2cc;
  border-radius: 5px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

.form-field input,
.form-field select {
  min-height: 50px;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid rgba(186, 17, 24, 0.14);
  border-color: var(--red);
}

.form-field small {
  margin-top: 7px;
  display: block;
  color: #63717f;
  font-size: 12px;
  line-height: 1.6;
}

.consent-field {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.7;
  cursor: pointer;
}

.consent-field input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--red);
}

.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-status {
  margin: 24px 0 0;
  border-left: 4px solid var(--navy);
  padding: 13px 15px;
  color: var(--navy);
  background: #edf4f8;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.contact-status.is-error {
  border-left-color: var(--red);
  color: #8c1117;
  background: #fff0f0;
}

.contact-status.is-success {
  border-left-color: #197044;
  color: #145837;
  background: #eef8f2;
}

.contact-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 24px;
  border: 0;
  border-radius: 6px;
  padding-inline: 20px;
  color: var(--white);
  background: var(--red);
  box-shadow: 0 12px 28px rgba(186, 17, 24, 0.24);
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.64;
}

.contact-noscript {
  color: var(--red);
  font-size: 13px;
  line-height: 1.7;
}

.contact-aside {
  position: sticky;
  top: 96px;
  min-width: 0;
  border-top: 4px solid var(--red);
  padding: 26px 0 0;
}

.contact-aside > a {
  margin-top: 12px;
  display: block;
  color: var(--navy);
  font-size: 17px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-aside > span {
  margin-top: 16px;
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.contact-aside__links {
  margin-top: 26px;
  display: grid;
  border-top: 1px solid var(--line);
}

.contact-aside__links a {
  min-height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .contact-titleband__copy {
    padding-block: 48px 44px;
  }

  .contact-titleband h1 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .contact-titleband__copy > span {
    font-size: 14px;
  }

  .contact-section {
    padding-block: 48px 60px;
  }

  .contact-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    gap: 42px;
  }

  .contact-form {
    padding: 26px 20px;
  }

  .contact-form__heading {
    margin-bottom: 26px;
  }

  .form-grid {
    gap: 0;
  }

  .contact-aside {
    position: static;
  }
}
