.ysleadgen-popup * {
  box-sizing: border-box;
}

.ysleadgen-popup .ysi-close-btn,
.ysleadgen-popup [data-gjs-type="close-button"],
.ysi-close-btn,
[data-gjs-type="close-button"] {
  cursor: pointer;
  text-decoration: none;
  font-family: Arial, sans-serif;
}

.ysi-close-btn:hover,
[data-gjs-type="close-button"]:hover {
  opacity: 0.8;
}

.ysleadgen-popup .floating-bar-inner {
  position: relative !important;
  overflow: visible !important;
  width: 100% !important;
}

.ysleadgen-popup .floating-bar-free-text,
.ysleadgen-popup .overlay-text {
  position: absolute !important;
  z-index: 999 !important;
}

.ysi-close-btn {
  z-index: 10000 !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

/* Deactivation Survey */

#ysi-deactivation-modal {
  all: initial;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#ysi-deactivation-modal.ysi-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#ysi-deactivation-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.ysi-modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.ysi-modal-content.active {
  transform: scale(1);
}

.ysi-modal-title {
  margin: 0 0 12px;
  color: #111;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.ysi-modal-description {
  margin: 0 0 20px;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.ysi-form {
  margin-top: 16px;
}

.ysi-reasons-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.ysi-reason-group {
  display: flex;
  flex-direction: column;
}

.ysi-radio-label,
.ysi-checkbox-label,
.ysi-delete-data-label {
  display: flex;
  align-items: center !important;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.ysi-radio-input,
.ysi-checkbox-input {
  appearance: auto !important;
  -webkit-appearance: auto !important;
  margin: 0 8px 0 0 !important;
  width: 16px !important;
  height: 16px !important;
  padding: 0 !important;
  border: 1px solid #787c82;
  vertical-align: middle !important;
  position: static !important;
  flex-shrink: 0;
  background: white;
}

.ysi-radio-text {
  font-weight: 500;
}

.ysi-reason-details {
  padding-left: 24px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ysi-options-title {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin: 0 0 4px;
}

.ysi-input-wrapper,
.ysi-conditional-input {
  margin-top: 8px;
}

.ysi-text-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.ysi-text-input:focus {
  border-color: #0088f8d8;
  outline: 1px solid #047ee2b3;
  box-shadow: 0 0 0 1px #008cff;
}

.ysi-hidden {
  display: none !important;
}

.ysi-footer-actions {
  border-top: 1px solid #eee;
  padding-top: 16px;
  margin-top: 16px;
}

.ysi-delete-data-desc {
  font-size: 12px;
  color: #777;
  margin: 4px 0 0 24px;
}

.ysi-modal-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.ysi-submit-btn {
  background-color: #0c8af2f4;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
}

.ysi-submit-btn:hover {
  background-color: #008bf6;
}

.ysi-submit-btn:disabled,
.ysi-submit-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #1589e7;
}