/* assets/css/newsletter.css */

/* Kotak sidebar */
.newsletter-box {
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-top: 24px;
  /* ✅ font-family dihapus — cukup di global.css */
}

/* Konten dalam sidebar: teks kiri, tombol kanan */
.newsletter-content {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.newsletter-text {
  flex: 1;
  text-align: left;
}

.newsletter-text h4 {
  margin-bottom: 8px;
  color: #0e9bd3;
  font-size: 17px;
  font-weight: 600;
}

.newsletter-text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #0a0a0a;
  /* ✅ font-family dihapus */
}

/* Tombol di sebelah kanan */
.btn-newsletter {
  background: #0e9bd3;
  color: #ffffff;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  /* ✅ font-family dihapus */
}

.btn-newsletter:hover {
  background: #0b82af;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(14, 155, 211, 0.2);
}

/* Popup */
.popup {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px);
  margin: 0 auto;
}

.popup-content {
  background: #ffffff;
  padding: 28px;
  border-radius: 12px;
  width: 340px;
  max-width: 90vw;
  text-align: left;
  position: relative;
  animation: fadeIn 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.popup-content h3 {
  margin-bottom: 10px;
  color: #0e9bd3;
  font-size: 20px;
  font-weight: 600;
}

.popup-content p {
  margin-bottom: 20px;
  font-size: 15px;
  color: #555;
  line-height: 1.5;
}

.popup-content input {
  width: 100%;
  padding: 12px 16px;
  margin: 8px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 14px;
  transition: border-color 0.2s ease;
  /* ✅ font-family dihapus */
}

.popup-content input:focus {
  border-color: #0e9bd3;
  outline: none;
}

.popup-content button {
  width: 100%;
  padding: 12px;
  background: #0e9bd3;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  /* ✅ font-family dihapus */
}

.popup-content button:hover {
  background: #0b82af;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(14, 155, 211, 0.2);
}

/* Close button */
.close-btn {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 22px;
  cursor: pointer;
  color: #888;
  background: #f5f5f5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: #e0e0e0;
  color: #333;
}

@keyframes fadeIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}