.contact-link {
  appearance: none;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  padding: 0;
  text-transform: inherit;
}

.contact-link:hover { color: #ffc49d; }

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 20px;
}

.contact-modal.open { display: grid; }

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 24, 31, .76);
}

.contact-dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fffaf2;
  border: 1px solid #ded1c0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
  color: #102c38;
  padding: 32px;
}

.contact-dialog h2 {
  margin: 0 40px 8px 0;
  font-size: 30px;
  line-height: 1.1;
}

.contact-intro {
  margin: 0 0 22px;
  color: #60717a;
  line-height: 1.55;
}

.contact-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid #ded1c0;
  background: transparent;
  color: #102c38;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-field {
  display: grid;
  gap: 7px;
  color: #102c38;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.contact-field.message { grid-column: 1 / -1; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cdbda8;
  border-radius: 0;
  background: #fffdf8;
  color: #102c38;
  font: inherit;
  padding: 12px;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #e76016;
  outline: 2px solid rgba(231, 96, 22, .2);
}

.contact-submit {
  min-height: 48px;
  border: 0;
  background: #e76016;
  color: #fff;
  padding: 12px 20px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-submit:disabled { cursor: wait; opacity: .65; }
.contact-honeypot { position: absolute !important; left: -10000px !important; }
.contact-status {
  align-self: center;
  min-height: 18px;
  margin: 0;
  color: #9b3e10;
  font-size: 13px;
}

body.contact-modal-open { overflow: hidden; }

.contact-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
  width: min(420px, calc(100vw - 40px));
  border-left: 4px solid #e76016;
  background: #102c38;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  color: #fffaf2;
  padding: 16px 18px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}

.contact-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 560px) {
  .contact-modal { padding: 12px; }
  .contact-dialog { padding: 26px 20px 22px; }
  .contact-dialog h2 { font-size: 26px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-field.message { grid-column: 1; }
  .contact-toast {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}
