/* User Info Module Styles */

.app-cta-floating {
  position: fixed;
  z-index: 1050;
  border: 1px solid #fff;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
  opacity: 0.9;
  animation: surveyEngineSlideIn 800ms cubic-bezier(0.34, 1.56, 0.64, 1) 120ms both;
  will-change: transform, opacity;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Positions */
.cta-pos-bottom-right {
  right: 16px !important;
  bottom: 16px !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
}

.cta-pos-bottom-left {
  left: 16px !important;
  bottom: 16px !important;
  top: auto !important;
  right: auto !important;
  transform: none !important;
}

.cta-pos-bottom-center {
  bottom: 16px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  top: auto !important;
  right: auto !important;
}

.cta-pos-top-right {
  right: 16px !important;
  top: 16px !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
}

.cta-pos-top-left {
  left: 16px !important;
  top: 16px !important;
  bottom: auto !important;
  right: auto !important;
  transform: none !important;
}

.cta-pos-top-center {
  top: 16px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: auto !important;
  right: auto !important;
}

.app-cta-floating .app-cta-text {
  font-size: 16px;
}

/* Sizes */
.cta-size-small {
  padding: 5px 10px !important;
  font-size: 12px !important;
}

.cta-size-small .app-cta-text {
  font-size: 13px !important;
}

.cta-size-small i {
  font-size: 14px !important;
}

.cta-size-large {
  padding: 15px 25px !important;
  font-size: 16px !important;
  border-radius: 30px !important;
}

.cta-size-large .app-cta-text {
  font-size: 20px !important;
  font-weight: 700;
}

.cta-size-large i {
  font-size: 26px !important;
}

.app-cta-icon-container {
  display: inline-block;
  font-size: 20px;
}

.app-cta-icon-animated {
  transform-origin: 70% 70%;
  animation: surveyEngineHandWave 1.8s ease-in-out 1.2s infinite;
}

@keyframes surveyEngineHandWave {

  0%,
  100% {
    transform: rotate(0deg);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: rotate(14deg);
  }

  20%,
  40%,
  60%,
  80% {
    transform: rotate(-8deg);
  }
}

.app-cta-floating:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  opacity: 1;
}

.app-cta-floating.cta-pos-bottom-center:hover,
.app-cta-floating.cta-pos-top-center:hover {
  transform: translate(-50%, -1px);
}

/* Pulsing effect */
.app-cta-floating::after,
.app-cta-floating::before {
  z-index: -1;
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  pointer-events: none;
}

.app-cta-floating::after {
  border: 2px solid rgba(224, 88, 10, 0.6);
  opacity: 0;
  animation: surveyEngineRing 2.2s ease-out infinite;
}

.app-cta-floating::before {
  border: 2px solid rgba(226, 250, 7, 0.25);
  opacity: 0;
  animation: surveyEngineRing 2.2s ease-out infinite;
  animation-delay: 1.1s;
}

@keyframes surveyEngineRing {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }

  60% {
    transform: scale(1.35);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes surveyEngineSlideIn {
  0% {
    transform: translate3d(0, 110px, 0) scale(0.95);
    opacity: 0;
  }

  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}

/* Centered positions slide in from bottom too, but needs to keep X transform */
.cta-pos-bottom-center,
.cta-pos-top-center {
  animation: surveyEngineSlideInCenter 800ms cubic-bezier(0.34, 1.56, 0.64, 1) 120ms both;
}

@keyframes surveyEngineSlideInCenter {
  0% {
    transform: translate3d(-50%, 110px, 0) scale(0.95);
    opacity: 0;
  }

  100% {
    transform: translate3d(-50%, 0, 0) scale(1);
    opacity: 1;
  }
}

/* Scoped Bootstrap Overrides for SurveyEngine */
.survey-engine-modal .modal-header {
  display: flex !important;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
}

.survey-engine-modal .modal-header::before,
.survey-engine-modal .modal-header::after {
  display: none !important;
}

.survey-engine-modal .modal-title {
  margin: 0 !important;
}

.survey-engine-modal .text-intro {
  font-size: 1.15rem !important;
}

.survey-engine-modal .close {
  margin: 0 !important;
  padding: 10px !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  float: none !important;
}

.survey-engine-modal .modal-dialog {
  /* Ajoutez vos modifications ici, elles ne s'appliqueront qu'au SurveyEngine */
  width: 95%;
  max-width: 1024px;
}

.survey-engine-modal .control-label {
  font-weight: 600 !important;
  font-size: 1rem !important;
}

.survey-engine-modal .checkbox-group {
  padding-right: 2rem !important;
}


.survey-engine-modal .form-control.label-input-row {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: flex-start;
  border: 0px !important;
  margin: 0 !important;
  cursor: pointer;
  line-height: 1.4;
  height: auto !important;

}



.survey-engine-modal .form-control.label-input-row:hover {
  color: #06a3ff !important;
}

.survey-engine-modal .form-control.label-input-row input[type="radio"] {
  margin: 4px 0 0 0 !important;
}

.survey-engine-modal .form-control.label-input-row input[type="checkbox"] {
  margin: 4px 0 0 0 !important;
}