.dqst-wrap {
  max-width: 980px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.dqst-hero h2 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.2;
}

.dqst-subtitle {
  font-size: 18px;
  margin-bottom: 16px;
}

.dqst-benefits {
  margin: 0 0 24px 18px;
  padding: 0;
}

.dqst-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.dqst-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.dqst-full {
  margin-bottom: 18px;
}

.dqst-form input,
.dqst-form select,
.dqst-form textarea,
#dqst-lead-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  box-sizing: border-box;
  font-size: 15px;
}

.dqst-btn {
  display: inline-block;
  border: none;
  padding: 14px 22px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.dqst-loader {
  margin-top: 20px;
  font-weight: 600;
}

.dqst-preview-wrap {
  margin-top: 28px;
  padding: 20px;
  background: #f8f8f8;
  border-radius: 12px;
  border: 1px solid #ececec;
}

.dqst-download-btn {
  margin-top: 20px;
}

.dqst-button-wrap {
  text-align: center;
  margin: 20px 0;
}

.dqst-large-modal {
  max-width: 760px;
  width: 95%;
}

.dqst-wrap-inner {
  padding: 10px 5px;
}

#dqst-lead-response {
  margin-top: 14px;
  font-weight: 600;
}

/* Modal overlay */
.dqst-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 99999;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Modal box */
.dqst-modal-content {
  width: 100%;
  max-width: 700px;
  margin: 30px auto;
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  position: relative;
  box-sizing: border-box;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Main popup larger width support */
#dqst-main-popup .dqst-modal-content {
  max-width: 760px;
}

/* Close button */
.dqst-close-modal,
.dqst-close-main-popup {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}

/* Optional better textarea behavior */
.dqst-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Mobile */
@media (max-width: 767px) {
  .dqst-grid {
    grid-template-columns: 1fr;
  }

  .dqst-wrap {
    padding: 20px;
  }

  .dqst-hero h2 {
    font-size: 26px;
  }

  .dqst-modal {
    padding: 10px;
  }

  .dqst-modal-content {
    max-width: 100%;
    margin: 10px auto;
    padding: 20px;
    max-height: calc(100vh - 20px);
    border-radius: 12px;
  }

  .dqst-large-modal {
    width: 100%;
  }
}
