#pdf-popup {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 9999;

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

  padding: 15px;
  box-sizing: border-box;
}

.popup-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 1100px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0,0,0,0.4);
  flex-wrap: wrap;
}

.popup-left {
  flex: 1 1 40%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.popup-left img {
  max-width: 100%;
  height: auto;
  display: block;
}

.popup-right {
  flex: 1 1 60%;
  padding: 30px;
  box-sizing: border-box;
  text-align: center;
  position: relative;
}

.popup-right h2 {
  color: #256094;
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 900;
}

.popup-right input[type="text"],
.popup-right input[type="email"] {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

.popup-right label {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
}

.popup-right label input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: middle;
}

.q2-btn,
.popup-right button[type="submit"] {
  background-color: #D32F2F;
  color: white;
  font-weight: 900;
  font-size: 14px;
  padding: 10px 20px;
  margin-top: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.q2-btn:hover,
.popup-right button[type="submit"]:hover {
  background-color: #256094;
}

.q3-instruction {
  margin-bottom: 0;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #efefef;
  color: #256094;
  font-weight: 800;
  font-size: 13px;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  color: #666;
}

.popup-message {
  margin-top: 15px;
  font-size: 0.9rem;
  text-align: center;
}

.popup-message a.button {
  display: inline-block;
  padding: 8px 12px;
  background-color: #50b3f1;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.popup-message a.button:hover {
  background-color: #256094;
}

/* Responsive */
@media (max-width: 768px) {
  .popup-content {
    flex-direction: column;
  }

  .popup-left, .popup-right {
    flex: 1 1 100%;
  }

  .popup-left img {
    max-height: 280px;
    margin: 0 auto;
    padding-top: 35px;
  }

  .popup-right {
    padding: 15px;
  }

  .popup-right h2 {
    font-size: 13px !important;
    margin-bottom: 0px;
  }
  .q3-instruction{
    font-size: 11px !important;
  }
  .q2-btn{
    font-size: 11px !important;
  }
  .popup-right label {
    font-size: 11px;
  }
  .popup-right button[type="submit"]{
    font-size: 11px !important;
  }
  .popup-right input{
    font-size: 11px !important;
  }
  .popup-right button {
    font-size: 0.95rem;
  }
}

@supports (-webkit-overflow-scrolling: touch) {
  .popup-content {
    -webkit-overflow-scrolling: touch;
  }
}
