.h2b-contact-dialog {
  box-sizing: border-box;
  width: min(620px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgb(61 90 128 / 15%);
  border-radius: 24px;
  background: #fefefe;
  color: #263e5d;
  box-shadow: 0 24px 100px rgb(7 22 40 / 30%);
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  text-align: left;
  color-scheme: light;
}

.h2b-contact-dialog::backdrop {
  background: rgb(9 25 45 / 74%);
  backdrop-filter: blur(7px);
}

.h2b-contact-content {
  box-sizing: border-box;
  position: relative;
  padding: 34px;
}

.h2b-contact-close {
  display: grid;
  place-items: center;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid #d8e1eb;
  border-radius: 50%;
  background: #f6f8fe;
  color: #3d5a80;
  cursor: pointer;
  appearance: none;
}

.h2b-contact-close:hover {
  background: #e8eef7;
}

.h2b-contact-eyebrow {
  margin: 0 50px 8px 0;
  color: #3d5a80;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.h2b-contact-title {
  margin: 0 35px 12px 0;
  color: #3d5a80;
  font-family: Montserrat, sans-serif;
  font-size: clamp(23px, 4vw, 29px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.2;
}

.h2b-contact-intro {
  margin: 0 0 25px;
  color: #526780;
  font-size: 13px;
  line-height: 1.65;
}

.h2b-contact-form {
  display: grid;
  gap: 17px;
  margin: 0;
}

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

.h2b-contact-field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.h2b-contact-label {
  color: #3d5a80;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.h2b-contact-optional {
  margin-left: 5px;
  color: #62768d;
  font-size: 11px;
  font-weight: 500;
}

.h2b-contact-input,
.h2b-contact-select,
.h2b-contact-textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #bbcbdc;
  border-radius: 9px;
  background: #fefefe;
  color: #263e5d;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: normal;
  box-shadow: none;
}

.h2b-contact-select {
  padding-right: 30px;
  cursor: pointer;
}

.h2b-contact-textarea {
  min-height: 94px;
  resize: vertical;
}

.h2b-contact-input::placeholder,
.h2b-contact-textarea::placeholder {
  color: #667991;
  opacity: 1;
}

.h2b-contact-input:focus,
.h2b-contact-select:focus,
.h2b-contact-textarea:focus {
  border-color: #2da1a1;
  outline: 2px solid #3d5a80;
  outline-offset: 2px;
}

.h2b-contact-hint {
  margin: 0;
  color: #62768d;
  font-size: 10px;
  line-height: 1.5;
}

.h2b-contact-submit {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  margin: 3px 0 0;
  padding: 14px 19px;
  border: 1px solid #3d5a80;
  border-radius: 10px;
  background: #3d5a80;
  color: #fefefe;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  appearance: none;
}

.h2b-contact-submit:hover {
  border-color: #2a466a;
  background: #2a466a;
}

.h2b-contact-close:focus-visible,
.h2b-contact-submit:focus-visible,
.h2b-contact-email:focus-visible,
.h2b-contact-retry:focus-visible {
  outline: 3px solid #2da1a1;
  outline-offset: 4px;
}

.h2b-contact-note {
  margin: -7px 0 0;
  color: #62768d;
  font-size: 11px;
  line-height: 1.6;
}

.h2b-contact-status {
  margin: 0;
  padding: 13px 15px;
  border-left: 3px solid #2da1a1;
  border-radius: 0 8px 8px 0;
  background: #edf8f8;
  color: #264f5a;
  font-size: 12px;
  line-height: 1.6;
}

.h2b-contact-status:empty {
  display: none;
}

.h2b-contact-retry {
  width: fit-content;
  max-width: 100%;
  color: #3d5a80;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.h2b-contact-retry[hidden] {
  display: none;
}

.h2b-contact-direct {
  margin: 23px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e1e8f0;
  color: #62768d;
  font-size: 11px;
  line-height: 1.8;
}

.h2b-contact-email {
  color: #3d5a80;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .h2b-contact-dialog {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 18px;
  }

  .h2b-contact-content {
    padding: 25px 20px;
  }

  .h2b-contact-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .h2b-contact-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }

  .h2b-contact-title {
    margin-right: 18px;
    font-size: 23px;
  }

  .h2b-contact-eyebrow {
    font-size: 10px;
  }

  .h2b-contact-optional {
    margin-left: 0;
  }
}
