/* Overlay */
.tws-enquiry-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal */
.tws-enquiry-modal {
  background: #ffffff;
  max-width: 480px;
  width: 90%;
  padding: 24px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

/* Close button */
.tws-enquiry-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* Product name at top */
.tws-enquiry-product-display {
  margin: 0 0 16px 0;
  font-size: var(--text-m);
}

/* Fields */
.tws-enquiry-field {
  margin-bottom: 16px;
}

.tws-enquiry-field label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: var(--text-m);
}

.tws-enquiry-field input,
.tws-enquiry-field select,
.tws-enquiry-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: var(--text-m);
}

/* Submit button */
.tws-enquiry-submit {
  background-color: var(--blue);
  color: var(--light);
  display: inline-block;
  padding: 10px 18px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: var(--text-s);
}

/* Enquiry Button */
.tws-enquiry-btn {
  background-color: var(--blue);
  color: var(--light);
  border: none;
  padding-top: var(--space-3xs);
  padding-bottom: var(--space-3xs);
  padding-left: var(--space-xs);
  padding-right: var(--space-xs);
  border-radius: var(--radius-s);
  font-size: var(--text-m);
  line-height: 1.2;
  vertical-align: middle;
  cursor: pointer;
  transition: all 0.25s ease; /* smooth hover */
}

/* Arrow */
.tws-enquiry-btn::after {
  content: "›";
  margin-left: var(--space-3xs);
  font-size: 1.1em;
  line-height: 1;
  display: inline-block;
}

/* Hover */
.tws-enquiry-btn:hover {
  background-color: var(--yellow);
  color: var(--dark);
  box-shadow: var(--shadow-l);
}

/* Arrow color on hover */
.tws-enquiry-btn:hover::after {
  color: var(--dark);
}

/* You can style this to match your theme */

.tws-enquiry-response {
  margin-top: 10px;
  font-size: var(--text-m);
}

/* Prevent page scroll behind modal */
body.tws-enquiry-open {
  overflow: hidden;
}
