.contact-page {
  min-height: 100vh;
}

.contact-main {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.contact-hero {
  max-width: 720px;
  margin-bottom: 30px;
}

.contact-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.05;
  color: #0b2239;
}

.contact-hero p {
  margin: 0;
  color: #526273;
  font-size: 1rem;
  line-height: 1.9;
}

.contact-card {
  background: #fff;
  border: 1px solid rgba(11, 34, 57, .10);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(11, 34, 57, .08);
  padding: clamp(24px, 5vw, 48px);
}

.contact-card-heading {
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(11, 34, 57, .10);
}

.contact-card-heading h2,
.contact-success h2 {
  margin: 0 0 8px;
  color: #0b2239;
  font-size: 1.55rem;
}

.contact-card-heading p,
.contact-success p {
  margin: 0;
  color: #687785;
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 24px;
}

.contact-field {
  display: grid;
  gap: 9px;
}

.contact-field > span {
  color: #0b2239;
  font-weight: 800;
}

.required-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff0eb;
  color: #b43d21;
  font-size: .72rem;
  line-height: 1.5;
  vertical-align: 2px;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd4dc;
  border-radius: 13px;
  background: #fff;
  color: #15283a;
  font: inherit;
  font-size: 16px;
  padding: 13px 14px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.contact-field textarea {
  min-height: 190px;
  line-height: 1.7;
  resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: #0a8f87;
  box-shadow: 0 0 0 4px rgba(10, 143, 135, .12);
}

.field-help {
  color: #7c8995;
}

.field-error {
  color: #b42318;
  font-weight: 700;
}

.contact-error-summary {
  margin-bottom: 24px;
  border: 1px solid #f0b8ae;
  border-radius: 12px;
  background: #fff5f3;
  color: #9f2d1b;
  padding: 13px 15px;
  font-weight: 700;
}

.contact-submit-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.contact-submit {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.contact-submit-row p {
  margin: 0;
  color: #7a8793;
  font-size: .88rem;
  line-height: 1.6;
}

.contact-success {
  text-align: center;
  padding: 26px 0 18px;
}

.contact-success > span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e9f8f5;
  color: #0a8f87;
  font-size: 2rem;
  font-weight: 900;
}

.contact-success .primary-button {
  display: inline-flex;
  margin-top: 24px;
}

.contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-footer {
  margin-top: 0;
}

@media (max-width: 720px) {
  .contact-main {
    width: min(100% - 22px, 920px);
    padding: 44px 0 64px;
  }

  .contact-card {
    border-radius: 18px;
  }

  .contact-submit-row {
    display: grid;
  }

  .contact-submit {
    width: 100%;
    justify-content: center;
  }
}
