.nagaris-contact-modal[hidden] {
  display: none !important;
}

.nagaris-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.nagaris-contact-modal__backdrop {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.nagaris-contact-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(500px, 100%);
  max-height: calc(100vh - 48px);
  flex-direction: column;
  gap: 32px;
  overflow: auto;
  padding: 32px;
  border-radius: 20px;
  background: #fff;
  color: #192a44;
  font-family: "Geist", "Geist Placeholder", sans-serif;
  box-shadow: 0 24px 80px rgba(25, 42, 68, 0.22);
}

.nagaris-contact-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nagaris-contact-modal__close span {
  position: absolute;
  top: 15px;
  left: 6px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #192a44;
}

.nagaris-contact-modal__close span:first-child {
  transform: rotate(45deg);
}

.nagaris-contact-modal__close span:last-child {
  transform: rotate(-45deg);
}

.nagaris-contact-modal__intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 24px;
  text-align: center;
}

.nagaris-contact-modal__intro h3 {
  margin: 0;
  font-family: "PP Neue Montreal Medium", "PP Neue Montreal Medium Placeholder", sans-serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
  color: #192a44;
}

.nagaris-contact-modal__intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(25, 42, 68, 0.8);
}

.nagaris-contact-modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nagaris-contact-modal__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.nagaris-contact-modal__field span {
  font-family: "PP Neue Montreal Medium", "PP Neue Montreal Medium Placeholder", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.1;
  color: #192a44;
}

.nagaris-contact-modal__field input,
.nagaris-contact-modal__field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(136, 136, 136, 0.1);
  border-radius: 10px;
  background: rgba(187, 187, 187, 0.15);
  color: #192a44;
  font: 400 16px/1.4 "Geist", "Geist Placeholder", sans-serif;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.nagaris-contact-modal__field textarea {
  min-height: 112px;
  resize: vertical;
}

.nagaris-contact-modal__field input::placeholder,
.nagaris-contact-modal__field textarea::placeholder {
  color: rgb(153, 153, 153);
}

.nagaris-contact-modal__field input:focus,
.nagaris-contact-modal__field textarea:focus {
  border-color: rgba(25, 42, 68, 0.32);
  background: rgba(187, 187, 187, 0.12);
  box-shadow: 0 0 0 3px rgba(25, 42, 68, 0.08);
}

.nagaris-contact-modal__submit {
  min-height: 51px;
  margin-top: 2px;
  border: 0;
  border-radius: 10px;
  background: #192a44;
  color: #fff;
  cursor: pointer;
  font: 550 16px/1.2 "Geist Variable", "Geist", sans-serif;
  letter-spacing: 0;
  transition: background 0.16s ease, opacity 0.16s ease;
}

.nagaris-contact-modal__submit:hover {
  background: rgba(51, 51, 51, 0.85);
}

.nagaris-contact-modal__submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.nagaris-contact-modal__status {
  min-height: 20px;
  margin: 0;
  color: #ab2516;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

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

@media (max-width: 809.98px) {
  .nagaris-contact-modal {
    padding: 20px;
  }

  .nagaris-contact-modal__dialog {
    max-height: calc(100vh - 40px);
    gap: 24px;
    padding: 28px 24px;
  }

  .nagaris-contact-modal__intro {
    padding: 0 22px;
  }

  .nagaris-contact-modal__intro h3 {
    font-size: 32px;
  }

  .nagaris-contact-modal__field span {
    font-size: 16px;
  }
}
