.contact-dialog {
  width: min(calc(100% - 32px), 1040px);
}

.contact-dialog-body {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  min-height: 570px;
}

.contact-intro {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 46px 38px;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 151, 56, .2), transparent 20rem),
    linear-gradient(145deg, #082d24, #0e4435);
  color: #f8fbf8;
}

.contact-intro::after {
  position: absolute;
  right: -120px;
  bottom: -130px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(255, 255, 255, .025), 0 0 0 100px rgba(255, 255, 255, .018);
  content: '';
  pointer-events: none;
}

.contact-intro .eyebrow {
  color: #ff9638;
}

.contact-intro h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.2vw, 56px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.contact-intro > p:not(.eyebrow) {
  max-width: 470px;
  margin: 26px 0 0;
  color: #bdd0c8;
  font-size: 14px;
  line-height: 1.75;
}

.contact-trust {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.contact-trust > span {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 150, 56, .16);
  color: #ff9638;
  font-weight: 900;
}

.contact-trust p,
.contact-trust strong,
.contact-trust small {
  display: block;
  margin: 0;
}

.contact-trust strong {
  font-size: 13px;
}

.contact-trust small {
  margin-top: 5px;
  color: #9fb9af;
  font-size: 11px;
  line-height: 1.5;
}

.contact-form {
  position: relative;
  z-index: 1;
  padding: 36px 38px 32px;
  background: #fff;
  color: #173b32;
}

.contact-form-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 25px;
}

.contact-form-heading span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.contact-form-heading small {
  color: #788780;
  font-size: 10px;
}

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

.contact-grid label {
  color: #5d6d66;
  font-size: 11px;
  letter-spacing: .035em;
}

.contact-grid input,
.contact-grid select,
.contact-grid textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #d5ddd8;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #15372f;
  font: inherit;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.contact-grid input,
.contact-grid select {
  height: 48px;
  padding: 0 14px;
}

.contact-grid textarea {
  min-height: 142px;
  padding: 14px;
  line-height: 1.55;
  resize: vertical;
}

.contact-grid input:focus,
.contact-grid select:focus,
.contact-grid textarea:focus {
  border-color: #2b866b;
  box-shadow: 0 0 0 3px rgba(43, 134, 107, .12);
}

.contact-wide {
  grid-column: 1 / -1;
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.contact-privacy {
  margin: 16px 0 0;
  color: #7b8983;
  font-size: 10px;
  line-height: 1.55;
}

.contact-actions {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
}

.contact-form-message {
  margin: 0;
  color: #2a745f;
  font-size: 12px;
  line-height: 1.45;
}

.contact-form-message.error {
  color: #a43b32;
}

.contact-submit {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  margin-left: auto;
  border-radius: 10px;
  background: #ff9138;
  color: #14372e;
}

.contact-submit:hover {
  background: #ffa151;
}

.contact-success-dialog {
  width: min(500px, calc(100vw - 32px));
  padding: 42px;
  border: 0;
  border-radius: 24px;
  background: #fbfaf5;
  box-shadow: 0 30px 100px rgba(3, 35, 27, .34);
  color: #143a30;
  text-align: center;
}

.contact-success-dialog::backdrop {
  background: rgba(4, 31, 24, .7);
  backdrop-filter: blur(5px);
}

.contact-success-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 50%;
  background: #e1f1e8;
  color: #187154;
  font-size: 27px;
  font-weight: 900;
}

.contact-success-dialog .kicker {
  margin-bottom: 12px;
  color: #ea7827;
}

.contact-success-dialog h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.08;
}

.contact-success-dialog > p:not(.kicker) {
  margin: 18px auto 26px;
  color: #677a72;
  font-size: 14px;
  line-height: 1.65;
}

.contact-success-dialog button {
  border-radius: 9px;
}

.footer-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}

@media (max-width: 850px) {
  .contact-dialog-body {
    grid-template-columns: 1fr;
  }

  .contact-intro {
    padding: 30px 32px;
  }

  .contact-intro h3 {
    font-size: 38px;
  }
}

@media (max-width: 560px) {
  .contact-dialog .dialog-heading {
    padding: 21px 20px;
  }

  .contact-intro {
    padding: 25px 22px;
  }

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

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

  .contact-wide {
    grid-column: auto;
  }

  .contact-form-heading,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-submit {
    width: 100%;
    margin-left: 0;
  }

  .contact-success-dialog {
    padding: 34px 24px;
  }

  .footer-actions {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
}
