.related-topics {
  border-top: 1px solid #d8c9b5;
}
.related-topics h2 {
  font-size: 30px;
  max-width: 680px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 25px;
}
.related-grid a {
  border-bottom: 1px solid #c8b79e;
  font-size: 14px;
  padding: 14px 0;
}
.related-grid a:hover {
  color: #945516;
}
.modal-open {
  overflow: hidden;
}
dialog {
  border: 1px solid #b68a52;
  background: #f9f6f0;
  color: #101c28;
  width: min(94vw, 550px);
  max-height: 90dvh;
  margin: auto;
  padding: 28px 32px;
  box-shadow: 0 30px 100px #0007;
}
dialog::backdrop {
  background: #00101de8;
  backdrop-filter: blur(5px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.icon-button {
  border: 1px solid #c6b394;
  background: transparent;
  color: #775326;
  width: 36px;
  height: 36px;
  font-size: 18px;
}
.dialog-heading .eyebrow {
  margin: 0;
}
dialog h2 {
  font-size: 33px;
  line-height: 1.15;
  max-width: 390px;
}
.dialog-intro {
  font-size: 14px;
  line-height: 1.6;
  color: #645c50;
  margin: 12px 0 20px;
}
dialog input:not([type="checkbox"]),
.search-form input {
  width: 100%;
  border: 1px solid #c8baa6;
  background: white;
  padding: 12px 13px;
  font-size: 16px;
  border-radius: 0;
  min-height: 48px;
}
dialog label {
  font-size: 14px;
  margin: 13px 0 6px;
}
dialog select {
  min-height: 48px;
  font-size: 15px;
  padding: 10px;
}
dialog .button {
  width: 100%;
  font-size: 13px;
  min-height: 49px;
}
.optional {
  color: #7b7163;
  font-weight: 400;
}
.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 !important;
  font-size: 12px !important;
  line-height: 1.6;
}
.check-line input {
  margin-top: 3px;
  accent-color: #a97431;
  min-width: 17px;
  min-height: 17px;
}
.check-line a {
  color: #895317;
  text-decoration: underline;
}
.honey {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-error {
  background: #fff1ed;
  border-left: 3px solid #a74533;
  padding: 12px;
  font-size: 14px;
  margin: 15px 0;
}
.direct-contact {
  border-top: 1px solid #dfd1be;
  margin-top: 23px;
  padding-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  font-size: 12px;
  line-height: 1.7;
}
.direct-contact span {
  color: #756b5d;
}
.direct-contact a {
  color: #895317;
  text-decoration: underline;
}
.reference-line {
  font-size: 12px;
  overflow-wrap: anywhere;
  margin-block: 16px;
  background: #eee7db;
  padding: 10px;
}
#capture-success h3 {
  font-size: 25px;
  margin-bottom: 14px;
}
#capture-success p {
  font-size: 14px;
  line-height: 1.7;
}
.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.plain-button {
  background: transparent;
  border: 0;
  color: #895317;
  padding: 8px;
  font-size: 14px;
}
.reserved-label {
  color: #8d502a;
  display: block;
  font-size: 11px;
}
.search-form {
  margin-bottom: 35px;
}
.search-form > div {
  display: flex;
  gap: 10px;
}
.search-result {
  display: block;
  padding: 24px 0;
  border-bottom: 1px solid #d8c7ad;
}
.search-result h2 {
  font-size: 29px;
  margin-block: 8px 12px;
}
.search-result p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
dialog input:focus-visible,
.search-form input:focus-visible {
  outline: 2px solid #b97c30;
  outline-offset: 2px;
}
@media (max-width: 850px) {
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 580px) {
  dialog {
    padding: 23px 22px;
    max-height: 92dvh;
  }
  .dialog-intro {
    margin-bottom: 16px;
  }
  dialog h2 {
    font-size: 30px;
  }
  .related-topics h2 {
    font-size: 28px;
  }
  .related-grid {
    gap: 8px 20px;
  }
  .related-grid a {
    font-size: 13px;
  }
  .search-form > div {
    flex-direction: column;
  }
  .search-form button {
    width: 100%;
  }
}
