.modal-other-instrument {
  --capture-green: #37d696;
  --capture-paper: #edf2f6;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(1, 8, 8, 0.82);
  backdrop-filter: blur(8px);
}

.modal-other-instrument .inner {
  display: grid;
  grid-template-columns: minmax(290px, 0.8fr) minmax(480px, 1.2fr);
  align-items: center;
  gap: clamp(38px, 5vw, 76px);
  width: min(1180px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  padding: clamp(36px, 4vw, 62px);
  overflow-y: auto;
  border: 1px solid rgba(59, 191, 196, 0.24);
  border-radius: clamp(28px, 3vw, 46px);
  background:
    radial-gradient(circle at 90% 12%, rgba(55, 214, 150, 0.11), transparent 32%),
    linear-gradient(135deg, rgba(49, 69, 70, 0.96), rgba(8, 16, 15, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.modal-other-instrument .modal-window-content {
  width: auto;
  max-width: 480px;
}

.modal-other-instrument .modal-window__title {
  margin: 0 0 24px;
  color: var(--capture-paper);
  font-size: clamp(38px, 4vw, 66px);
  line-height: 1.02;
}

.modal-other-instrument .modal-window__text {
  color: rgba(237, 242, 246, 0.82);
  font-size: clamp(15px, 1.1vw, 19px);
  line-height: 1.55;
}

.modal-other-instrument .contacts-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 0;
}

.modal-other-instrument .contacts-form > .form-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88px;
  height: auto;
  padding: 16px 20px;
  border: 1px solid rgba(49, 69, 70, 0.28);
  border-radius: 16px;
  background: rgba(237, 242, 246, 0.96);
}

.modal-other-instrument .form-label__name {
  margin-bottom: 8px;
  color: #314546;
  font-size: 13px;
  line-height: 1.2;
}

.modal-other-instrument .form-label__input {
  width: 100%;
  height: auto;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #08100f;
  font-size: 17px;
  line-height: 1.35;
  outline: 0;
}

.modal-other-instrument .form-label:nth-of-type(3),
.modal-other-instrument .form-label:nth-of-type(4),
.modal-other-instrument .form-line,
.modal-other-instrument .homepage-form-status {
  grid-column: 1 / -1;
}

.modal-other-instrument .homepage-form-textarea {
  min-height: 94px !important;
  resize: vertical;
}

.modal-other-instrument .form-line {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid rgba(59, 191, 196, 0.24);
  border-radius: 18px;
}

.modal-other-instrument .form-policy {
  display: block;
  position: static;
  width: 24px;
  height: 24px;
  margin: 0;
  appearance: none;
  border: 1px solid var(--capture-green);
  border-radius: 7px;
  background: rgba(55, 214, 150, 0.06);
  opacity: 1;
  cursor: pointer;
}

.modal-other-instrument .form-policy:checked {
  background: var(--capture-green) url("/wp-content/themes/Miryar/assets/img/icons/policy-check.svg") center / 14px no-repeat;
}

.modal-other-instrument .form-policy-label {
  display: block;
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  color: rgba(237, 242, 246, 0.82);
  font-size: 12px;
  line-height: 1.35;
}

.modal-other-instrument .form-policy-label::before { content: none; }

.modal-other-instrument .form-policy-label a {
  color: var(--capture-paper);
  text-decoration: underline;
}

.modal-other-instrument .form-btn {
  width: auto;
  min-width: 172px;
  min-height: 52px;
  margin: 0;
  padding: 13px 25px;
  border-radius: 999px;
}

.other-instrument-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(237, 242, 246, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--capture-paper);
  font: 300 32px/1 sans-serif;
  cursor: pointer;
}

.open-other-instrument:focus-visible,
.other-instrument-modal-close:focus-visible {
  outline: 3px solid var(--capture-green);
  outline-offset: 4px;
}

.other-instrument-modal-open { overflow: hidden; }

@media (max-width: 760px) {
  .modal-other-instrument { padding: 12px; }

  .modal-other-instrument .inner {
    grid-template-columns: 1fr;
    gap: 24px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 58px 20px 28px;
    border-radius: 26px;
  }

  .modal-other-instrument .modal-window__title { font-size: 34px; }
  .modal-other-instrument .contacts-form { grid-template-columns: 1fr; }
  .modal-other-instrument .contacts-form > * { grid-column: 1; }
  .modal-other-instrument .form-line { grid-template-columns: 28px 1fr; }
  .modal-other-instrument .form-btn { grid-column: 1 / -1; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .modal-other-instrument * { transition-duration: 0.01ms !important; }
}
