/* ==========================
   Glass Modals (green sea)
   ========================== */

body.is-gmodal-open {
  overflow: hidden;
}

.gmodal[hidden] {
  display: none !important;
}

.gmodal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
}

.gmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(220, 255, 253, 0.9);
  /* backdrop-filter: blur(2px);*/
}

.gmodal__dialog {
  position: relative;
  width: min(460px, calc(100vw - 28px));
  max-height: min(86svh, 920px);
  overflow: auto;

  border-radius: 22px;

  background: linear-gradient(
    135deg,
    rgba(27, 92, 89, 0.22),
    rgba(27, 92, 89, 0.08)
  );
  box-shadow: inset 0 0 0 1px rgba(27, 92, 89, 0.16),
    0 22px 60px rgba(0, 0, 0, 0.22);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gmodal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;

  padding: 18px 18px 10px;
}

.gmodal__kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.gmodal__title {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 600;
}

.gmodal__sub {
  margin: 6px 0 0;
  opacity: 0.78;
}

.gmodal__x {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.gmodal__body {
  padding: 18px;
  display: grid;
  gap: 2px;
}

.gmodal__card {
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 14px 34px rgba(0, 0, 0, 0.14);
}

.gmodal__h {
  margin: 0 0 10px;
  font-size: 16px;
}

.gmodal__p {
  margin: 0;
  opacity: 0.88;
}

.gmodal__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.gmodal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  align-items: center;
  justify-content: center;
}

.contact-audit-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.gmodal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 4px 14px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  text-decoration: none;

  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.gmodal__btn--primary {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.gmodal__btn--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.Need {
  padding: 0 18px;
  display: block;
}

.gmodal__note,
.gmodal__fineprint {
  opacity: 0.78;
}

.gmodal__contacts {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

/* form */
.gmodal__form {
  display: grid;
  gap: 12px;
}

.gmodal__field {
  display: grid;
  gap: 6px;
}

.gmodal__label {
  font-size: 13px;
  opacity: 0.85;
}

.gmodal__input,
.gmodal__textarea {
  width: 100%;
  border-radius: 14px;
  border: 0;
  outline: none;
  padding: 12px 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.gmodal__textarea {
  min-height: 110px;
  resize: vertical;
}

/* Кнопка "Морское стекло" для форм */
.btn-glass {
  /* Сброс стандартных стилей */
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;

  /* Эффект стекла */
  background: linear-gradient(
    to left,
    rgba(27, 92, 89, 0.15),
    rgba(27, 92, 89, 0.05)
  ) !important; /* Форсируем, чтобы перебить gmodal__btn--primary */

  backdrop-filter: blur(15px) saturate(120%);
  -webkit-backdrop-filter: blur(15px) saturate(120%);

  /* Цвет текста и границы */
  color: #1b5c59 !important; /* Тёмно-бирюзовый под цвет стекла */
  border: 1px solid rgba(27, 92, 89, 0.3) !important;
  border-radius: 12px !important; /* Мягкие углы для формы */

  padding: 12px 24px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(27, 92, 89, 0.1),
    0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Эффект при наведении */
.btn-glass:hover {
  background: rgba(27, 92, 89, 0.25) !important;
  border-color: rgba(27, 92, 89, 0.5) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27, 92, 89, 0.15);
}

/* Состояние при нажатии */
.btn-glass:active {
  transform: translateY(0);
  filter: brightness(0.9);
}

/* mobile spacing */
@media (max-width: 480px) {
  .gmodal__dialog {
    width: calc(100vw - 18px);
    max-height: 88svh;
  }
  .gmodal__title {
    font-size: 20px;
  }
}
