body {
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 400;
  padding: 20px 200px;
  color: var(--text-color);
  height: 100vh;
  width: 100vw;
  overflow-x: hidden;
}

/* ==========================================================================
   Form Layout
   ========================================================================== */
.form-container {
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
}

.form-title {
  font-size: 23px;
  font-weight: 500;
  word-wrap: break-word;
  width: 90%;
}

.form-description {
  font-size: 14px;
  word-wrap: break-word;
  width: 100%;
}

/* Section Styles */
.form-section {
  margin-bottom: 30px;
  border: 1px solid var(--border-light);
  padding-bottom: 20px;
  box-shadow: 0px 0px 4px 0px #0000001F; 
  border-top-left-radius: 0px !important;
  
}

.form-section-title {
  width: 200px;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  /* height: 40px; */
  box-shadow: 0px -1px 4px 0px rgba(0, 0, 0, 0.1); 
  display: flex;
  flex-direction: row;
  justify-content: flex-start !important;
  align-items: center;
 background-color:#EEF6FF;
 color: #2F69A7;
 border-bottom: none !important;
}


/* Question Container */
.question {
  margin: 30px 25px 0;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 35px;
  width: 90%;
  display: flex;
  flex-direction: column;
  word-wrap: break-word;
}



/* ==========================================================================
   Form Controls
   ========================================================================== */
/* Input Fields */
.form-control {
  width: 85%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #686868;
  border-radius: 4px;
}

textarea.form-control {
  height: 200px;
  resize: vertical;
}

.form-input {
  width: 85%;
  height: 62px;
  border-color:#686868 !important;
}

/* Date/Time Inputs */
.date-time-area {
  width: 186px !important;
  height: 43px !important;
  background: var(--bg-primary);
  border: 1px solid #686868 !important;
  border-radius: 3px;
}

.dateTime {
  display: flex;
  align-items: center;
  gap: 20px;
  border-color:#686868 !important;
}

/* Radio Buttons */
.input-radio {
  height: 21px;
  width: 21px;
  vertical-align: middle;
}

/* Select Dropdowns */
select.form-control {
  width: 60%;
}

/* ==========================================================================
   Options Container
   ========================================================================== */
.options-container {
  display: flex;
  flex-direction: column;
  margin-top: 25px;
}

.options-container label {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.options-container span {
  margin-left: 10px;
  font: normal 13px/18px var(--font-family);
  word-break: break-word;
}

/* Rating Styles */
.rating-container {
  flex-direction: row !important;
  width: 20%;
}

.rating-container span {
  line-height: 50px;
  text-align: center;
  white-space: nowrap; 
  padding: 6px;
  color: var(--text-secondary);
}

.rating-label {
  flex-direction: column !important;
  padding-right: 5px;
}


.label2{
  font-size: 17px;
  line-height: 23px;
  letter-spacing: 0px;
  text-align: left;
  opacity: 1;
  font-family: "Roboto";
  font-weight: 500;
}


.nps-side-label {
  text-wrap: nowrap;
  min-width: 50px; /* Increased from 20px to accommodate longer text */
  white-space: nowrap;
  overflow: visible;
  font-weight: 600;
  text-align: center;
  font-size: 15px;
  color: #020202;
 
}

/* Scale Styles */
.scale-line {
  width: 12px;
  height: 4px;
  background: #9e9c9c;
}

#optionScale {
  display: flex;
  align-items: center;
  position: relative;
  left: 10px;
  gap: 20px;
}



/* Bar Rating Styles */
.bar-button {
  min-width: 113px;
  width: 100%;
  height: 14px;
  border: none;
  padding: 5px;
  outline: none;
}


/* ==========================================================================
   Buttons
   ========================================================================== */
.submit-button {
  width: 120px;
  height: 40px;
  background: black;
  border-radius: 5px;
  border: none;
  font-size: large;
  color: white;
  transition: 0.3s;
  margin-bottom: 15px;
}

.submit-button:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.submit-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.button-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  width: 95%;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.starIcon {
  color: red !important;
  font-size: 25px;
  margin: 2px;
}

.hideForm { display: none; }
.showForm { display: block; }
.h_spinner { display: none; }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInOut {
  0% { opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes lds-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media screen and (max-width: 768px) {
  body {
    padding: 10px;
  }

  .form-container {
    width: 100%;
  }


  .form-control {
    width: 100%;
  }
  /* for bar responsiveness */
  .bar-button {
    min-width: 70px !important;
  }
  .bar-button:hover {
    opacity: 1;
  }
  
 
}

@media screen and (max-width: 480px) {
  .dateTime {
    flex-direction: column;
    gap: 10px;
  }
  .file-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .file-input-div {
    width: 100%;
  }
  
  .custom-file-upload {
    width: 100%;
    justify-content: center;
  }
  .date-time-area {
    width: 100% !important;
  }
}
.file-upload-button {
  padding: 8px 16px;
  background: #4F46E5;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.file-upload-button:hover:not(:disabled) {
  background: #4338CA;
}

.file-upload-button:disabled {
  background: #9CA3AF;
  cursor: not-allowed;
}

.file-upload-button.uploaded {
  background: #10B981;
  cursor: not-allowed;
}
/* Rating Bar Styles */
.rating-bar-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 600px;
}

.rating-bar-options {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}



.bar-button:hover {
  opacity: 0.5;
}

.bar-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 8px;
}

.bar-label {
  text-align: center;
  font-size: 14px;
  color: #666;
  flex: 1;
}
.scaletostyle{
  display: flex;
  flex-direction: row;
}
.padding_left_right{
  /*custom padding for scale and bar*/
  padding: 0px 0px;
}
/* Linear Scale Styles */
.linear-scale-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}

.scale-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scale-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.textAnswer-input{
  width: 50% !important;
  height: 54px !important;
  border-color:#686868 !important;
}
.scale-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #333;
  transition: all 0.2s ease;
}

.scale-button:hover {
  background: #f0f0f0;
  border-color: #999;
}

.scale-button.active {
  background: #1a50a3;
  color: white;
  border-color: #1a50a3;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
}

.scale-label {
  font-size: 14px;
  color: #666;
}

.scale-lines {
  display: flex;
  align-items: center;
  gap: 5px;
}

.scale-line {
  width: 20px;
  height: 2px;
  background: #ddd;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .rating-bar-container {
    max-width: 100%;
  }
  
  .linear-scale-container {
    flex-direction: column;
  }
  
  .scale-button {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}

/* Animation for button interactions */
@keyframes buttonPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.bar-button:active,
.scale-button:active {
  animation: buttonPulse 0.2s ease;
}
@media screen and (max-width: 768px) {
  .rating-container{
    padding-left: 40px;
    width:55%;
  }
  .textAnswer-input{
    width: 100% !important;
    height: 34px !important;
  }
}
:root {
  --section-bg: #fff;
  --section-border: #eaeaea;
  --section-title-bg: #fafafa;
  --text-primary: #000;
  --text-secondary: #666;
  --input-border: #000000;
  --spacing-base: 20px;
}

.form-section {
  background: var(--section-bg);
  border: 1px solid var(--section-border);
  border-radius: 4px;
  margin-bottom: var(--spacing-base);
  overflow: hidden;
  
}

.form-section-title {
  
  border-bottom: 1px solid var(--section-border);
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  
}
.form-question{
  padding: 12px 22px;
}
.form-section-title p {  /* Target the <p> inside the title */
  flex-grow: 1;        /* Takes up available space */
  text-align: center; /* Centers the text within the <p> */
  margin: 0; /* Remove default p tag margins if needed */
}


/* Animations */
@keyframes selectPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.nps-option.selected {
  animation: selectPulse 0.3s ease;
}

/* Touch Device Optimizations */
@media (hover: none) {
  .nps-option {
    transition: opacity 0.2s ease;
  }
  
  .nps-option:active {
    opacity: 0.8;
  }
}

.scale-line {
  width: 12px;
  height: 4px;
  background: #d3d3d3;
}

#optionScale {
  display: flex;
  align-items: center;
  position: relative;
  left: 10px;
  gap: 20px;
}

#optionScale svg {
  margin-left: 20px;
}



.bar-button {
  min-width: 113px;
  width: 100%;
  height: 14px;
  border: none;
  padding: 5px;
  outline: none;
}

.bar-button:focus {
  outline: none;
}

.bar-info {
  height: 19px;
  text-align: center;
  font-size: 14px;
  font-weight: normal;
  font-family: "Roboto";
  letter-spacing: 0px;
  color: #9a9a9a;
  opacity: 1;
  margin-top: 15px;
  padding: 10px;
}

.bar-area {
  position: relative;
}
/* arrow button  */
.arrow {
  transform: rotate(-90deg);
  position: absolute;
  left: 50%;
  top: 10px;
}
.line {
  background: black;
}

.point {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 18px solid black;
  float: right;
}

.bar-icon-hide {
  display: none;
}

.bar-icon-show {
  display: block;
  padding-bottom: 15px;
}
.section-description{
  font-family: Roboto;
  font-size: 16px;
  font-weight: 400;
  padding-left: 20px;
  padding-top: 12px;
}
.scale_line {
  background: #d3d3d3 0% 0% no-repeat padding-box;
  position: relative;
  padding-left: 25px;
  height: 4px;
  top:-3px;
}

#optionScale svg {
  border: 5px solid #f3f6f8;
  border-radius: 50%;
  margin-left: 2px;
  margin-left: -5px;
}

.svg-area {
  display: flex;
  align-items: center;
}
.custom-dropdown {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 1rem 0;
  border-color:#686868 !important;
}

.custom-dropdown label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.custom-dropdown .option_field {
  position: relative;
}

.custom-dropdown select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  border-color:#686868 !important;
  color: #374151;
  background-color: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  appearance: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.custom-dropdown .option_field::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.75rem;
  height: 0.75rem;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
  transition: all 0.2s ease-in-out;
}

.custom-dropdown select:hover {
  border-color: #686868;
}

.custom-dropdown select:focus {
  outline: none;
  border-color: #686868;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.custom-dropdown select:required:invalid {
  color: #6b7280;
}

.custom-dropdown select option {
  color: #374151;
}

.custom-dropdown select option:first-child {
  color: #6b7280;
}

.error-message {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #dc2626;
}

/* Animation for dropdown opening */
.custom-dropdown select {
  transform-origin: top;
  transition: transform 0.2s ease;
}

.custom-dropdown select:focus {
  transform: scaleY(1.02);
}
/* Base styles */
.rating-container2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.svg-area2 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rating-label2 {
  cursor: pointer;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}


.rating-label2 svg {
  width: 48px;
  height: 48px;
}


.paragraph-input{
  width: 50% !important ;
  height: 200px !important;
  resize: vertical !important;
  border-color:#686868 !important;
}


/* Medium screens */
@media (max-width: 768px) {
  .rating-container2 {
      flex-direction: column;
      align-items: center;
      padding: 1rem;
  }
 
  /* for paragraph input */
  .paragraph-input{
    width: 100% !important;
    height: 80px !important;
    resize: vertical !important;
  }
  /* for the nps */
  .your-upper-div {
    order: -1; /* Moves to top */
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.your-bottom-div {
    order: 1; /* Moves to bottom */
    width: 100%;
    text-align: center;
    padding: 0.5rem;
}

/* Scrollbar styles */
.your-upper-div::-webkit-scrollbar {
    height: 4px;
}

.your-upper-div::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.your-upper-div::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}
  .svg-area2 {
      width: 100%;
      overflow-x: auto;
      margin: 1rem 0;
      padding: 0.5rem;
      justify-content: flex-start;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
      scroll-behavior: smooth;
  }

  .svg-area2::-webkit-scrollbar {
      height: 4px;
  }

  .svg-area2::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 2px;
  }

  .svg-area2::-webkit-scrollbar-thumb {
      background: #888;
      border-radius: 2px;
  }

 

  .rating-label2 {
      flex-shrink: 0;
  }

  .scale-line{
    width: 8px;
  }
}

/* Small screens */
@media (max-width: 480px) {
  .rating-container {
      padding: 0.5rem;
      width: 80%;
  }

  .rating-label2 svg {
      width: 40px;
      height: 40px;
  }

  .scale_line2 {
      width: 20px;
  }
  .form-question {
    padding: 8px 8px;
}
  
}
/* .form-question {
  padding: 8px 8px;
} */
/* Ensure radio buttons remain hidden */
.rating-label2 input[type="radio"] {
  display: none;
}

/* Selected state styling */
.rating-label2.selected svg path {
  fill: var(--selected-color, #4B5563);
}


.question-divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 1.5rem auto;
  width: 95%; /* Reduced from 100% */
}

.for-linearscale-only{
  padding-left: 0px !important;
}
 .nps-side-label-container{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  
}
/* css for scale */
.scale-whole-scale{
  display: flex;
  flex-direction: column;
  width: 350px;
  
  
}
.scale-text-container{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  align-self: center;
  width: 100%;
}
.nps-container{
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.nps-options{
  width: 8%;
}
.radio-label{
  width: 100% !important;
  height: 100% !important;
}
.nps-option{
  width: 100% !important;
  height:100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
@media screen and (max-width: 480px) {
  .radio-label2{
    width: 14% !important;
    height: 100% !important;
  }
  .custom-file-upload{
    padding-left: 8px !important;
  }
  .scale-text-container{
    width: 88%;
  }
  .file-preview{
    display: none;
  }
  .nps-box{
    width: 91% !important;
  }
 
  .scale-whole-scale{
    width: 100%;
  }
  .file-upload-box{
    width: 100% !important;
  }
  .allowed-types{
    width: 100% !important;
  }
  .file-input-div{
    padding-left: 316px !important;
  }
}

.scale-options-area{
  
  width: 100%;
}
@media screen and (min-width: 1024px) {
  .scale-text-container{
    width: 100%;
  }
}
@media screen and (min-width: 768px) and (max-width: 1024px){
  .scale-whole-scale {
    width: 50%;
}


}


.cancel-btn {
  background: transparent;
  position: absolute;
  top: -6px;
  right: -1px;
  /* background: #f15642; */
  border: none;
  /* border-radius: 50%; */
  /* width: 15px; */
  /* height: 16px; */
  text-align: center;
  line-height: 20px;
  cursor: pointer;
  font-size: 18px;
  z-index: 999999999999999999;
  color: #000000;
}

.cancel-btn:focus,
.cancel-btn:active {
  /* this is the same as the "normal" state border */
  outline: 0;
}

#error-box {
  display: none;
  position: fixed;
  top: 10px;
  right: 0;
  transform: translateX(-50%);
  background-color: #f44336;
  color: white;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: fadeInOut 3s forwards;
  z-index: 1000;
}
.upload-btn {
      
  transition: all 0.3s ease;
  cursor: pointer;
  
}

.upload-btn:hover {
  box-shadow: 
      0 10px 20px rgba(0, 0, 0, 0.3),    /* Main shadow */
      0 6px 6px rgba(0, 0, 0, 0.2);      /* Secondary shadow */
  transform: translateY(-5px);            /* More dramatic lift */
}


.info-icon {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 5px;
  color: #007bff;
  font-weight: bold;
  bottom: 6px;
  right: 6px;
}

.info-icon .tooltip {
  visibility: hidden;
  width: 300px;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 5px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Position above the icon */
  left: 0%;
  /* margin-left: -90px; Center the tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip-sm {
  width: 100px !important;
}

.info-icon:hover .tooltip {
  visibility: visible;
  opacity: 0.7;
}

/* Add an arrow below the tooltip */
.info-icon .tooltip::after {
  content: "";
  position: absolute;
  top: 100%; /* At the bottom of the tooltip */
  right: 95%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}
.required-field.error {
  border: 2px solid red;
}

.notification {
  position: fixed;
  top: 20px;
  right: -300px; /* Hidden initially */
  background-color: #ff4d4d;
  color: white;
  padding: 15px 20px;
  border-radius: 5px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  font-family: Arial, sans-serif;
  animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
  to {
      right: 20px;
  }
}
.file-input{
  width: 50% !important;
  height: 54px !important;
}


.custom-file-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #ffffff;

  padding-left: 48px;
  cursor: pointer;
  font-size: 14px;
  color: #000000;
  
}

.file-upload-container {
  margin-bottom: 20px;
}

.file-header {
  display: flex;
  justify-content: space-between;
 
  margin-bottom: 12px;
  width: 50%;
}

.file-label {
  font-weight: 500;
}

.file-size {
  color: #666;
  font-size: 0.875rem;
}

.file-upload-box {
  width: 50%;
  display: flex;
  justify-content: center;
}

.file-input-div {
  display: flex;
  flex-direction: row;
  justify-content: end;
  align-items: flex-end;
  width: 100%;
  padding: 8px;
  border:1px solid;
  border-color:#686868 !important;
  border-radius: 4px;
  text-align: center;
}

.custom-file-upload {
  display: flex;
  align-items: flex-end;


      border-radius: 6px;

  cursor: pointer;
  color: #000000;
  
}
.tooltip-sm {
  width: 100px !important;
}
.info-icon {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 5px;
  color: #007bff;
  font-weight: bold;
  bottom: 6px;
  right: 6px;
}
.info-icon .tooltip {
  visibility: hidden;
  width: 300px;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 5px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Position above the icon */
  left: 0%;
  /* margin-left: -90px; Center the tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}
.info-icon:hover .tooltip {
  visibility: visible;
  opacity: 0.7;
}

/* Add an arrow below the tooltip */
.info-icon .tooltip::after {
  content: "";
  position: absolute;
  top: 100%; /* At the bottom of the tooltip */
  right: 95%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.file-input {
  position: absolute;
  left: -9999px;
  opacity: 0;
  visibility: hidden;
}

.allowed-types {
  width: 50%;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #666;
  font-size: 0.875rem;
}


.preview-image{
  height: 100%;
  width: 100%;
}
.preview-div{
  height: 100%;
  width: 100%;
}
.errordiv {
  margin-top: 8px;
  font-size: 0.875rem;
}
.file-preview {
  position: relative;
  width: 74px;
  height: 60px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin: 0px 0 0 12px;
  padding: 2px;
}

.preview-div {
  position: relative;
  width: 100%;
  height: 100%;
}

.preview-close {
  position: absolute;
  top: -8px;
  right: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.preview-close:hover {
  background: #f9fafb;
}

.preview-image-container,
.preview-file-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.preview-file-container svg {
  color: #6b7280;
}
.spinner-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050; /* Higher than CoreUI's default z-index */
  align-items: center;
  justify-content: center;
}

.error-content {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.spinner-content {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #321fdb; /* CoreUI primary color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: #fee2e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
}

.error-button {
  background: #321fdb; /* CoreUI primary color */
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.error-button:hover {
  background: #2b1bb9;
}
.success-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  align-items: center;
  justify-content: center;
}

.success-content {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
}

.success-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.success-message {
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.success-button {
  background: #22c55e;
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.success-button:hover {
  background: #16a34a;
}



.error-overlay2 {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8); /* Darker background */
  z-index: 9999; /* Ensure it's above everything */
  align-items: center;
  justify-content: center;
}

.error-content {
  background: white;
  padding: 2.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
}

.error-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.retry-button {
  background: #ef4444; /* Red color for emphasis */
}

.retry-button:hover {
  background: #dc2626;
}
.checkbox-container {
  margin-top: 8px;
}

.checkbox-box {

  padding: 16px;
}

.category-group {
  margin-bottom: 16px;
}

.category-group:last-child {
  margin-bottom: 0;
}

.category-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
}

.input-checkbox {
  width: 16px;
  height: 16px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
}

.checkbox-label span {
  color: #374151;
  font-size: 14px;
}
.question-container {
  margin-bottom: 20px; /* Add spacing between questions */
}

.question-label {
  display: block;
  margin-bottom: 10px; 
}



.nps-options {
  display: flex; 
  height: 35px;
}

.nps-option-label {
  flex: 1; /* Distribute space evenly between options */
  text-align: center; 
}
.nps-box{
  width: 38%;
}

.nps-option-display {
  padding: 10px; 
  border-radius: 50%; /* Make the options circular */
  cursor: pointer;
  display: inline-block; /* Ensure proper sizing */
}

.nps-labels {
  display: flex;
  justify-content: space-between; /* Place labels at the ends */
  margin-left: 20px; /* Add space between options and labels */
}

.nps-label {
  font-size: smaller; /* Adjust label size as needed */
}

/* Example media query for smaller screens */
@media (max-width: 768px) {

  .nps-labels {
    margin-top: 10px; 
    margin-left: 0;
  }
}
@media screen and (min-width: 1080px) {
  .rating-container {
  
    width: 22%;
}
.nps-box {
  width: 34%;
}
 }
@media screen and (min-width: 760px) and (max-width: 1080px) {
  .rating-container {
  
    width: 45%;
}
.nps-box {
  width: 65%;
}
 }
 .head{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
 }
 .formtitle{
  
color:#2F69A7 !important;
  font-size: 28px;
font-weight: 700;
line-height: 32.81px;
text-align: left;
text-decoration-skip-ink: none;

 }
 .form-description{
  font-family: Roboto;
font-size: 16px;
font-weight: 400;
line-height: 22px;
text-align: left;
text-underline-position: from-font;
text-decoration-skip-ink: none;
text-align: center;
 }
 .nps-p-right{
  text-align: left;
 }
  .nps-p-left{
  text-align: right;
 }
 .overlay-error {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.content-error {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
  width: 90%;
}
.icon-error {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: #fee2e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
}
.message-error {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #dc2626;
}
.error-screen2{
  height: 100%;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
