/* POPUP BASE */

.dm-popup-box,
.dm-popup-content,
.dm-popup-content h3,
.dm-popup-content p,
.dm-popup-content input,
.dm-popup-content button {
  font-family: 'Poppins', sans-serif !important;
}

.dm-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
}

.dm-popup-overlay.active {
  display: flex;
}

.dm-popup-box {
  width: 100%;
  max-width: 780px;
  background: #fff;
  display: flex;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* IMAGE */

.dm-popup-image {
  width: 42%;
}

.dm-popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CONTENT */

.dm-popup-content {
  width: 58%;
  max-width: 460px;
  padding: 48px 42px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dm-popup-content h3 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #111;
}

.dm-popup-text {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

.dm-popup-note {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #777;
}

/* CLOSE BUTTON */

.dm-popup-close {
  position: absolute;
  top: 16px;
  right: 18px;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  color: #000;

  background: #fff;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 50%;

  cursor: pointer;
  z-index: 99999;

  appearance: none;
  -webkit-appearance: none;

  transition: all 0.2s ease;
}

.dm-popup-close:hover {
  transform: scale(1.05);
  border-color: rgba(0,0,0,0.3);
}

.dm-popup-close:focus,
.dm-popup-close:active {
  outline: none;
  box-shadow: none;
}

/* FORM */

.dm-popup-form {
  width: 100%;
}

.dm-popup-form form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

/* INPUT */

.dm-popup-form input[type="email"],
.dm-popup-form input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: 15px;
  border: 1px solid #bbb;
  box-sizing: border-box;
}

/* BUTTON */

.dm-popup-form input[type="submit"],
.dm-popup-form button {
  width: 100%;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #000;
  color: #fff;
  border: none;

  font-size: 14px;
  letter-spacing: 0.05em;

  cursor: pointer;

  padding: 0;
  line-height: 1;

  box-sizing: border-box;

  -webkit-appearance: none;
  appearance: none;

  transition: all 0.2s ease;
}

.dm-popup-form input[type="submit"]:hover,
.dm-popup-form button:hover {
  background: #222;
}

/* MOBILE */

@media (max-width: 768px) {

  .dm-popup-box {
    flex-direction: column;
    max-width: 520px;
  }

  .dm-popup-image,
  .dm-popup-content {
    width: 100%;
  }

  .dm-popup-image {
    height: 220px;
  }

  .dm-popup-content {
    padding: 34px 24px 28px;
  }

  .dm-popup-content h3 {
    font-size: 28px;
  }

  .dm-popup-text {
    font-size: 15px;
  }

  .dm-popup-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

}