.fix-field-size{
  width: 15em;
}

.spacer {
  padding-top: 2.0em;
}

.scrolloff {
  overflow-x: hidden;
  overflow-y: auto;
}

.col-w-20 {
  width: 20%;
}

.col-w-35 {
  width: 35%;
}

.pl-15 {
  padding-left: 15px !important;
}

.adjustment-text {
  margin: 0;
  padding-top: 7px;
  padding-bottom: 7px;
}

.fix-field-size{
  width: 15em;
}

.spacer {
  padding-top: 2.0em;
}

.scrolloff {
  overflow-x: hidden;
  overflow-y: auto;
}

.col-w-20 {
  width: 20%;
}

.col-w-35 {
  width: 35%;
}

.pl-15 {
  padding-left: 15px !important;
}

.adjustment-text {
  margin: 0;
  padding-top: 7px;
  padding-bottom: 7px;
}

/* NPS Survey Popup Styles */
.nps-survey-popup {
  --nps-side-gap: 24px;
  --nps-help-gap: 20px;
  --nps-help-height: 56px;
  --nps-top-safe-gap: 88px;
  --nps-bottom-gap: calc(var(--nps-help-height) + var(--nps-help-gap));
  --nps-top-gap: 88px;
  position: fixed;
  top: var(--nps-top-gap);
  right: var(--nps-side-gap);
  width: 582px;
  height: auto;
  max-width: calc(100vw - (var(--nps-side-gap) * 2));
  max-height: calc(100dvh - var(--nps-top-gap) - var(--nps-bottom-gap));
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.1);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  animation: slideIn 0.3s ease-out;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  box-sizing: border-box;
  overflow-y: hidden;
  overflow-x: hidden;
}

.form-group>span {
	margin-left: 0px!important;
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.nps-survey-popup.thank-you-mode {
  height: 107px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nps-survey-popup.thank-you-mode .survey-content {
  display: none;
}

.nps-survey-popup .close-button {
  position: absolute;
  right: 2px;
  top: 2px;
  padding: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.nps-survey-popup .close-button:hover {
  opacity: 0.7;
}

.nps-survey-popup .close-button svg {
  display: block;
  transition: opacity 0.2s ease;
}

.nps-survey-popup .thank-you-message {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: fadeIn 0.3s ease-out;
  width: 100%;
}

.nps-survey-popup .thank-you-text {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #151619;
  line-height: 150%;
  text-align: center;
}

.nps-survey-popup .survey-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.nps-survey-popup .form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 0.3em;
}

.nps-survey-popup .survey-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif !important;
  font-size: 15px;
  font-weight: 600;
  color: #151619;
  line-height: 22px;
  letter-spacing: 0%;
  margin: 0;
}

.nps-survey-popup .survey-label.required::before {
  content: '* ';
  color: #EF4444;
}

.nps-survey-popup .required-mark {
  color: #EF4444;
}

.nps-survey-popup .survey-label.email-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif !important;
  font-size: 13px;
  font-weight: 600;
  color: #000000;
  line-height: 18px;
}

.nps-survey-popup .rating-scale {
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 4px;
}

.nps-survey-popup .rating-button {
  min-width: 0;
  max-width: none;
  width: 100%;
  height: 42px;
  padding: 0;
  background: #FFFFFF;
  border: 1px solid #E8EAED;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nps-survey-popup .rating-button:hover:not(.selected) {
  border-color: #0094D2;
  background: #EFF6FF;
}

.nps-survey-popup .rating-button.selected {
  background: #0094D2;
  border-color: #0094D2;
  color: #FFFFFF;
  box-shadow: none;
  outline: none;
}

.nps-survey-popup .rating-button:focus:not(.selected) {
  outline: 2px solid #0094D2;
  outline-offset: 2px;
}

.nps-survey-popup .rating-labels {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #32363E;
  line-height: 18px;
  letter-spacing: 0%;
  margin-top: 4px;
}

.nps-survey-popup .label-left,
.nps-survey-popup .label-right {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #32363E;
  line-height: 18px;
  letter-spacing: 0%;
  max-width: 48%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.nps-survey-popup .label-right {
  text-align: right;
}

.nps-survey-popup .error-message {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #EF4444;
  font-size: 13px;
  margin-top: 4px;
}

.nps-survey-popup .error-message svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.nps-survey-popup .error-message span {
  line-height: 1.4;
}

.nps-survey-popup .survey-textarea {
  width: 100%;
  max-width: 100%;
  height: 193px;
  min-height: 124px;
  padding: 11px 16px;
  background: #FFFFFF;
  border: 1px solid #D8DADF;
  border-radius: 3px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 14px;
  color: #111827;
  resize: vertical;
  transition: all 0.2s;
  box-sizing: border-box;
  line-height: 1.5;
}

.nps-survey-popup .survey-textarea::placeholder {
  color: #9CA3AF;
}

.nps-survey-popup .survey-textarea:focus {
  outline: none;
  border-color: #1976D2;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.nps-survey-popup .survey-textarea:hover {
  border-color: #9CA3AF;
}

.nps-survey-popup .survey-textarea.is-invalid {
  border-color: #EF4444;
}

.nps-survey-popup .survey-input {
  width: 100%;
  max-width: 100%;
  height: 42px;
  padding: 10px 16px;
  background: #FFFFFF;
  border: 1px solid #D8DADF;
  border-radius: 3px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400;
  color: #111827;
  line-height: 22px;
  transition: all 0.2s;
  box-sizing: border-box;
}

.nps-survey-popup .survey-input::placeholder {
  color: #8E95A4;
  opacity: 0.8;
}

.nps-survey-popup .survey-input:focus {
  outline: none;
  border-color: #1976D2;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.nps-survey-popup .survey-input:hover {
  border-color: #9CA3AF;
}

.nps-survey-popup .survey-input.is-invalid,
.nps-survey-popup .survey-input.invalid {
  border-color: #EF4444;
}

.nps-survey-popup .alert {
  padding: 5px;
  margin-top: 8px;
  margin-bottom: 0;
  border-radius: 4px;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.nps-survey-popup .alert.pas {
  padding: 5px;
}

.nps-survey-popup .alert.alert-danger {
  color: #c00;
  background-color: transparent;
  border: none;
}

.nps-survey-popup .alert.alert-danger i.fa-exclamation-circle {
  margin-top: 2px;
  flex-shrink: 0;
}

.nps-survey-popup .helper-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #32363E;
  line-height: 14px;
  letter-spacing: 0%;
  margin-top: 0;
}

.nps-survey-popup .character-count {
  font-size: 12px;
  color: #6B7280;
  text-align: right;
  margin-top: 4px;
}

.nps-survey-popup .survey-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 2px;
  padding-top: 4px;
  flex-shrink: 0;
}

.nps-survey-popup .btn {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: none;
  border-radius: 3px;
}

.nps-survey-popup .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nps-survey-popup .btn.btn-primary {
  background: #0094D2 !important;
  border-color: #0094D2 !important;
  color: #FFFFFF;
  padding: 9px 16px 10px 16px;
  gap: 4px;
  min-width: auto;
}

.nps-survey-popup .btn.btn-primary:hover:not(:disabled) {
  background: #0094D2 !important;
  border-color: #0094D2 !important;
}

.nps-survey-popup .btn.btn-primary:active:not(:disabled) {
  background: #0094D2 !important;
  border-color: #0094D2 !important;
}

.nps-survey-popup .btn.btn-link {
  background: transparent;
  color: #0094D2;
  text-decoration: none;
  padding: 10px 0;
  min-width: auto;
}

.nps-survey-popup .btn.btn-link:hover:not(:disabled) {
  color: #0094D2;
  background: transparent;
  text-decoration: underline;
}

.nps-survey-popup .btn.btn-link:active:not(:disabled) {
  color: #0094D2;
}

.nps-survey-popup .loading-spinner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nps-survey-popup .loading-spinner svg {
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}

@media (max-width: 575.98px) {
  .nps-survey-popup {
    --nps-side-gap: 12px;
    --nps-bottom-gap: max(12px, env(safe-area-inset-bottom));
    --nps-top-gap: max(72px, env(safe-area-inset-top));
    width: auto;
    right: var(--nps-side-gap);
    left: var(--nps-side-gap);
    top: var(--nps-top-gap);
    padding: 14px;
    max-height: calc(100dvh - var(--nps-top-gap) - var(--nps-bottom-gap));
    border-radius: 8px;
  }

  .nps-survey-popup .survey-label {
    font-size: 14px;
    line-height: 20px;
  }

  .nps-survey-popup .rating-scale {
    gap: 2px;
    min-height: 36px;
  }

  .nps-survey-popup .rating-button {
    height: 36px;
    font-size: 12px;
  }

  .nps-survey-popup .rating-labels {
    font-size: 11px;
    line-height: 16px;
    max-width: 100%;
  }

  .nps-survey-popup .survey-textarea {
    height: 193px;
    min-height: 124px;
    font-size: 13px;
    padding: 10px 12px;
  }

  .nps-survey-popup .survey-input {
    height: 38px;
    font-size: 13px !important;
    padding: 8px 12px;
  }

  .nps-survey-popup .survey-actions {
    flex-direction: column;
    gap: 10px;
  }

  .nps-survey-popup .survey-actions .btn {
    width: 100%;
    padding: 10px 16px;
  }

  .nps-survey-popup .thank-you-text {
    font-size: 16px;
  }

  .nps-survey-popup .close-button {
    right: 0;
    top: 0;
    padding: 14px;
  }
}

@media (min-width: 500px) and (max-width: 767.98px) {
  .nps-survey-popup {
    --nps-side-gap: 16px;
    --nps-bottom-gap: max(12px, env(safe-area-inset-bottom));
    --nps-top-gap: 76px;
    width: auto;
    right: var(--nps-side-gap);
    left: var(--nps-side-gap);
    top: var(--nps-top-gap);
    max-width: 540px;
    max-height: calc(100dvh - var(--nps-top-gap) - var(--nps-bottom-gap));
  }

  .nps-survey-popup .rating-scale {
    gap: 3px;
    min-height: 40px;
  }

  .nps-survey-popup .rating-button {
    height: 40px;
  }

  .nps-survey-popup .survey-actions {
    flex-direction: row;
    justify-content: flex-end;
  }

  .nps-survey-popup .survey-actions .btn {
    width: auto;
  }
}

@media (max-height: 760px) {
  .nps-survey-popup {
    --nps-bottom-gap: max(12px, env(safe-area-inset-bottom));
    --nps-top-gap: 72px;
    top: var(--nps-top-gap);
    max-height: calc(100dvh - var(--nps-top-gap) - var(--nps-bottom-gap));
    padding: 14px;
  }

  .nps-survey-popup .survey-content {
    gap: 12px;
  }

  .nps-survey-popup .form-group {
    margin-bottom: 0.5em;
  }

  .nps-survey-popup .survey-textarea {
    height: 193px;
    min-height: 124px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .nps-survey-popup {
    --nps-side-gap: 24px;
    --nps-bottom-gap: calc(var(--nps-help-height) + var(--nps-help-gap));
    --nps-top-gap: 88px;
    width: auto;
    max-width: 582px;
    right: var(--nps-side-gap);
    /* left: var(--nps-side-gap); */
    top: var(--nps-top-gap);
    max-height: calc(100dvh - var(--nps-top-gap) - var(--nps-bottom-gap));
  }

  .nps-survey-popup .rating-scale,
  .nps-survey-popup .rating-labels,
  .nps-survey-popup .survey-textarea,
  .nps-survey-popup .survey-input {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .nps-survey-popup {
    --nps-top-gap: 88px;
    --nps-bottom-gap: calc(var(--nps-help-height) + var(--nps-help-gap));
    width: 582px;
    right: 24px;
    top: var(--nps-top-gap);
    max-height: calc(100dvh - var(--nps-top-gap) - var(--nps-bottom-gap));
  }
}

@media (min-width: 1200px) {
  .nps-survey-popup {
    --nps-top-gap: 88px;
    --nps-bottom-gap: calc(var(--nps-help-height) + var(--nps-help-gap));
    width: 582px;
    right: 24px;
    top: var(--nps-top-gap);
    max-height: calc(100dvh - var(--nps-top-gap) - var(--nps-bottom-gap));
  }
}

@media (min-width: 1400px) {
  .nps-survey-popup {
    --nps-top-gap: 88px;
    --nps-bottom-gap: calc(var(--nps-help-height) + var(--nps-help-gap));
    width: 582px;
    right: 32px;
    top: var(--nps-top-gap);
    max-height: calc(100dvh - var(--nps-top-gap) - var(--nps-bottom-gap));
  }
}

@media (max-width: 1366px) and (max-height: 768px) {
  .nps-survey-popup {
    --nps-side-gap: 20px;
    --nps-bottom-gap: calc(var(--nps-help-height) + var(--nps-help-gap));
    --nps-top-gap: 88px;
    left: auto;
    width: 560px;
    max-width: calc(100vw - (var(--nps-side-gap) * 2));
    max-height: calc(100dvh - var(--nps-top-gap) - var(--nps-bottom-gap));
  }
}

@media (max-width: 1280px) and (max-height: 720px) {
  .nps-survey-popup {
    --nps-side-gap: 16px;
    --nps-bottom-gap: calc(var(--nps-help-height) + var(--nps-help-gap));
    --nps-top-gap: 72px;
    left: auto;
    width: 540px;
    max-width: calc(100vw - (var(--nps-side-gap) * 2));
    max-height: calc(100dvh - var(--nps-top-gap) - var(--nps-bottom-gap));
    padding: 14px;
  }

  .nps-survey-popup .survey-content {
    gap: 12px;
  }

  .nps-survey-popup .form-group {
    margin-bottom: 0.5em;
  }

  .nps-survey-popup .survey-textarea {
    height: 193px;
    min-height: 124px;
  }
}

@media (max-width: 1024px) and (max-height: 768px) {
  .nps-survey-popup {
    --nps-side-gap: 16px;
    --nps-bottom-gap: calc(var(--nps-help-height) + var(--nps-help-gap));
    --nps-top-gap: 76px;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - var(--nps-top-gap) - var(--nps-bottom-gap));
  }
}

@media (width: 768px) and (height: 1024px) and (orientation: portrait) {
  .nps-survey-popup {
    --nps-side-gap: 16px;
    --nps-bottom-gap: calc(var(--nps-help-height) + var(--nps-help-gap));
    --nps-top-gap: 76px;
    left: var(--nps-side-gap);
    width: auto;
    max-width: none;
    max-height: calc(100dvh - var(--nps-top-gap) - var(--nps-bottom-gap));
    border-radius: 10px;
  }
}

@media (max-height: 900px) {
  .nps-survey-popup {
    padding: 8px;
    gap: 4px;
  }

  .nps-survey-popup .survey-content {
    gap: 4px;
  }

  .nps-survey-popup .form-group {
    gap: 3px;
    margin-bottom: 0.1em;
  }

  .nps-survey-popup .survey-label {
    font-size: 13px;
    line-height: 16px;
  }

  .nps-survey-popup .survey-label.email-label {
    font-size: 12px;
    line-height: 16px;
  }

  .nps-survey-popup .rating-scale {
    min-height: 34px;
    gap: 3px;
  }

  .nps-survey-popup .rating-button {
    height: 34px;
    font-size: 12px;
  }

  .nps-survey-popup .rating-labels,
  .nps-survey-popup .label-left,
  .nps-survey-popup .label-right {
    font-size: 11px;
    line-height: 14px;
  }

  .nps-survey-popup .rating-labels {
    margin-top: 2px;
  }

  .nps-survey-popup .survey-textarea {
    height: 160px;
    min-height: 112px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .nps-survey-popup .helper-text {
    font-size: 9px;
    line-height: 12px;
    margin-top: 0;
  }

  .nps-survey-popup .survey-input {
    height: 34px;
    padding: 6px 9px;
    font-size: 12px !important;
  }

  .nps-survey-popup .survey-actions {
    gap: 6px;
    margin-top: 0;
    padding-top: 0;
  }

  .nps-survey-popup .btn {
    font-size: 12px;
  }

  .nps-survey-popup .btn.btn-primary {
    padding: 5px 9px;
  }

  .nps-survey-popup .btn.btn-link {
    padding: 4px 0;
  }
}

@media (max-height: 820px) {
  .nps-survey-popup {
    padding: 8px;
    gap: 4px;
  }

  .nps-survey-popup .survey-content {
    gap: 4px;
  }

  .nps-survey-popup .form-group {
    margin-bottom: 0.1em;
  }

  .nps-survey-popup .survey-label {
    font-size: 13px;
    line-height: 16px;
  }

  .nps-survey-popup .survey-label.email-label {
    font-size: 12px;
    line-height: 16px;
  }

  .nps-survey-popup .helper-text {
    font-size: 9px;
    line-height: 12px;
  }

  .nps-survey-popup .btn {
    font-size: 12px;
  }
}

.nps-survey-popup {
  top: auto !important;
  bottom: calc(var(--nps-help-height) + var(--nps-help-gap)) !important;
  max-height: calc(100dvh - (var(--nps-help-height) + var(--nps-help-gap)) - var(--nps-top-safe-gap)) !important;
}

@media (max-width: 767.98px) {
  .nps-survey-popup {
    --nps-top-safe-gap: 64px;
    bottom: calc(env(safe-area-inset-bottom) + var(--nps-help-height) + var(--nps-help-gap)) !important;
    max-height: calc(100dvh - (env(safe-area-inset-bottom) + var(--nps-help-height) + var(--nps-help-gap)) - var(--nps-top-safe-gap)) !important;
  }
}

/* Modal styling override */
.nps-survey-modal-window .modal-content {
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.nps-survey-modal-window .modal-body {
  padding: 0;
}