.emera-contact {
  box-sizing: border-box;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: #f8fafc;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.32), 0 2px 10px rgba(15, 23, 42, 0.12);
}

.emera-contact::backdrop {
  background: rgba(15, 23, 42, 0.68);
  -webkit-backdrop-filter: blur(8px) saturate(75%);
  backdrop-filter: blur(8px) saturate(75%);
}

.emera-contact__panel {
  position: relative;
  padding: 44px 40px 36px;
  font-family: "Open Sans", sans-serif;
}

.emera-contact__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  font-size: 22px;
  line-height: 30px;
  cursor: pointer;
}

.emera-contact__close:hover {
  background: #cbd5e1;
}

.emera-contact__heading {
  margin: 0 44px 7px 0;
  color: #172554;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
}

.emera-contact__intro {
  margin: 0 0 22px;
  color: #537083;
  font-size: 15px;
  line-height: 1.5;
}

.emera-contact__field {
  display: block;
  margin-bottom: 14px;
}

.emera-contact__field span {
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.emera-contact__field input,
.emera-contact__field select {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #172554;
  font: inherit;
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.emera-contact__field input:focus,
.emera-contact__field select:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.emera-contact__submit {
  width: 100%;
  margin-top: 2px;
  padding: 13px 20px;
  border: 0;
  border-radius: 10px;
  background: #0f5ea8;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 94, 168, 0.2);
}

.emera-contact__submit:hover {
  background: #0b4d8a;
}

.emera-contact__submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.emera-contact__status {
  min-height: 21px;
  margin: 13px 0 0;
  font-size: 14px;
}

.emera-contact__status[data-state="error"] {
  color: #b91c1c;
}

.emera-contact__status[data-state="success"] {
  color: #15803d;
}

.emera-contact[data-result] .emera-contact__field,
.emera-contact[data-result] .emera-contact__submit {
  display: none;
}

.emera-contact[data-result] .emera-contact__status {
  display: flex;
  min-height: 220px;
  margin-top: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 19px;
  font-weight: 600;
}

@media screen and (max-width: 479px) {
  .emera-contact__panel {
    padding: 40px 22px 25px;
  }

  .emera-contact__heading {
    font-size: 22px;
  }
}
