@tailwind base;
@tailwind components;
@tailwind utilities;


:root {
  --background: #ffffff;
  --foreground: #171717;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
  }
}
.single-select-bg-img{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%; 
  width: 100%; 
  position: relative; 

}
.choice-image {
  width: 150px; 
  height: 150px; 
  margin-bottom: 10px; 
  justify-content: center;
  display: block;
}
.blue-link{
  color: #007bff;
  font-size: 18px;
}

.start-quiz{
  padding: 10px 20px;
  cursor: pointer;
  background-color: var(--backgroundColor, "#333");
  color: var(--color, #fff);    
}
.start-quiz:hover{
  background-color: var(--hoverBackgroundColor, "#333");
}
.question-answer {
  display: flex;
  justify-content: center;
  min-height: 100vh; 
  flex-direction: column; 
}

 .questionHeader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  justify-content: center;
} 
.questionDescription
.progress-container {
  width: 100%;
  margin: 0 auto; 
  text-align: center;
}

.progress-bar {
  height: 9px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.progress-text {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  color: #333;
}

 body,html {
  margin: 0;
  padding: 0;
  height: 100%;
  justify-content: center; 
  font-family: 'Nunito', sans-serif; 
  overflow: auto;
} 
.questionContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;  
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  margin-top: 30px; 
}  

 .slide-button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 100px;
}

.previous-button {
  font-family: 'Nunito', sans-serif;
  padding: 10px 30px;
  margin-left: 65px;
  background-color: #333;
  color: #fff;
}

.next-button {
  font-family: 'Nunito', sans-serif;
  padding: 10px 30px;
  margin-right: 65px;
  background-color: #333;
  color: #fff;
} 
 .description{
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  margin-top: 20px;
}
.quiz-questions {
  color: rgb(0, 0, 0);
  font-family: 'Nunito', sans-serif;
  line-height: 29px;
  letter-spacing: 2px;
}
.quiz-answers{
  margin-top: 50px;
} 
.quiz-footer {
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
/*single select */
.select-items {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr; 
  justify-content: flex-start;
  flex-direction: column;
  cursor: pointer;
}
.choice-item{
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
}
.select-items[data-layout="1"] {
  grid-template-columns: 1f;
}

.select-items[data-layout="2"] {
  grid-template-columns: 1fr 1fr; 
}

.select-items[data-layout="3"] {
  grid-template-columns: 1fr 1fr 1fr; 
  
}

.select-items[data-layout="4"] {
  grid-template-columns: 1fr 1fr 1fr 1fr; 
}

.select-items[data-layout="5"] {
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr; 
}

.select-items[data-layout="6"] {
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr; 
}
.select-items[data-layout="1"] .choice-item {
  width: 80vw; 
}
.select-items[data-layout="2"] .choice-item {
  width: 40vw; 
}
.select-items[data-layout="3"] .choice-item {
  width: 26.66vw; 
}
.select-items[data-layout="4"] .choice-item {
  width: 20vw; 
}
.select-items[data-layout="5"] .choice-item {
  width: 16vw; 
}
.select-items[data-layout="5"] .choice-item {
  width: 13.33vw; 
}
 .choice-item {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: center;
  justify-content: center;
  cursor: pointer;
  background-color: white;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  display: block; 
  width: 100%;
  font-weight: 400;
  position: relative !important;
  height: 50px;
  font-size: 1em; 
  min-height: 3em;
  border-color: #000;
} 

.choice-item:hover {
  background-color: black;
  color: white;
  border-color: black;
}

.choice-item.active {
   background-color: black;
  color: white;
  border-color: black; 
}
.choice-label {
  width: 100%;
  text-align: center;
  cursor: pointer;
  font-size: inherit;
} 
/*dropdown */ 
.dropdown-container {
  width: 200px;
  margin: 20px;
}

.custom-select {
  width: 300px; 
  padding: 8px;
  font-size: 16px;
}

.custom-select option {
  background-color: white;
  color: black;
  padding: 8px;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.custom-select option:hover {
  background-color: blue; 
  color: white;
}


.custom-select option.selected-option {
  background-color: grey; 
  color: white;
}

.custom-select option.selected-option:hover {
  background-color: red; 
  color: white;
}
/* mail component */
.mail-type {
  display: flex;
  justify-content: center; 
  align-items: center;
  margin: 0 auto;
}

.mail-type input {
  height: 50px;
  width: 400px;
  max-width: 500px;
  color: #171717;
  border-radius: 6px;
  padding: 0 10px; 
  border: 1px solid black; 
  margin-bottom: 1rem;
}
.mail-type input::placeholder{
  font-size: 14px;
}

/* text field component */
.text-field {
  display: flex;
  justify-content: center; 
  align-items: center;
  margin: 0 auto;
}

.text-field input {
  height: 50px;
  width: 400px;
  max-width: 500px;
  color: #171717;
  border-radius: 6px;
  padding: 0 10px; 
  border: 1px solid black; 
  margin-bottom: 1rem;
}
.text-field input::placeholder{
  font-size: 14px;
}
/* date picker component */
.single-date-picker {
  position: relative;
  width: 265px;
  font-family: Arial, sans-serif;
}

.input-container {
  display: flex;
  align-items: center;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
}

.icon {
  margin-right: 10px;
}

span {
  color: #333;
  font-size: 14px;
}

.calendar-container {
  position: absolute;
  top: 40px;
  left: 0;
  z-index: 1000;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
  padding: 10px;
  width: auto;
}

.custom-datepicker {
  width: 100%;
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.actions span {
  font-size: 12px;
  color: #555;
}

button {
  padding: 5px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}
/*date range component*/
.date-range-picker {
  position: relative;
  max-width: 400px;
}

.input-containers {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  width: 300px;
}

.input-containers .icon {
  margin-right: 8px;
}

.input-containers .caret {
  margin-left: auto;
}

.calendars-container {
  position: absolute  ;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  z-index: 10;
  gap: 16px;
  border: 1px solid #ddd;
  height:auto;
  width:auto;
  display: flex;  
  flex-direction: column;
  align-items: center;
}
.calendars{
  display: flex !important;
  flex-direction: row ;
  gap: 8px;
  width: 100%; 
  justify-content: center;
}
.calendars-container input {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px;
  width: 400px;
}

.actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color:#000;
  background-color: #f3f3f3;
  font-size: 12px;
  font-weight: bold;
}

.react-datepicker__input-container input {
  font-size: 12px;
  padding: 5px;    
  width:50px;   
}
/* number input */

.number-field {
  display: flex;
  justify-content: center; 
  align-items: center;
  margin: 0 auto;
}

.number-field input {
  height: 40px;
  width: 400px;
  max-width: 500px;
  color: #171717;
  border-radius: 6px;
  padding: 0 10px; 
  border: 1px solid black; 
  margin-bottom: 1rem;
}
.number-field input::placeholder{
  font-size: 16px;
 
}

/* address component */
.address-form-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.address-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.row {
  display: flex;
  gap: 4%;
  flex-direction: row;
  width: 100%;
}

.address-input {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

/* .full-width {
  width: 600px;
} */

.half-width {
  width: 48%;
}
.address-input::placeholder{
  font-size: 14px;
}

/* Text area */

.text-area textarea {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  box-sizing: border-box;
  border: 1px solid black;
  border-radius: 6px;
  outline: none; 
}

.max-chars{
  font-size: 13px;
  font-family: 'Nunito', sans-serif;
}
/* FeedBack component */

.feedback-container {
  text-align: center;
  font-family: Arial, sans-serif;
  margin: 20px;
}

.feedback-values {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.feedback-box {
  width: 60px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #f0f0f0; 
}

.feedback-box:hover {
  /* background-color: #000000;
  color: white;  */
  background-color: black; 
  color: white; 
  border: 2px solid black;
}

.feedback-box.selected {
  background-color: black; 
  color: white; 
  border: 2px solid black;
}

.feedback-labels {
  display: flex;
  justify-content: space-between;
  margin: 10px 50px;
  font-size: 16px;
  color: gray;
}
/* range slider */

 .slider-container {
  text-align: center;
  max-width: 300px;
  margin: auto;
  font-size: 16px;
  color: #333;
  margin-top: 50px;
}

.slider-wrapper {
  position: relative;
}

.range-slider {
  width: 300px;
  appearance: none;
  height: 10px; 
  border-radius: 5px; 
  outline: none;
  cursor: pointer;
  background-color: #6c757d;
 
}

.range-slider::-webkit-slider-thumb {
  appearance: none;
  width: 24px; 
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #bbb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.range-slider::-moz-range-thumb {
  width: 16px; 
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #bbb; 
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  color: #555;
  margin-top: 5px;
}

.current-value {
  font-size: 18px;
  color: #333;
}
.quiz-answers > * {
  margin-bottom: 1rem;
} 
/*dropdown - container */
.dropdown-container {
  width: 400px;
  margin: 20px auto;
  font-family: Arial, sans-serif;
  text-align: center;
  position: relative;
  height: 50px;
}


.custom-input {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  background-color: transparent;
  cursor: pointer;
  outline: none;
}

/* Custom options container */
.custom-options {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  border: 1px solid #ccc;
  background-color: #fff;
  z-index: 10;
  max-height: 150px;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Custom options */
.custom-options {
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  border: 1px solid #ccc;
  background-color: #fff;
  z-index: 10;
  max-height: 150px;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.option-item {
  padding: 12px;
  font-size: 16px;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.option-item:hover {
  background-color: blue;
  color: #fff;
}

.option-item.selected {
  background-color: grey;
}

.option-item.selected:hover {
  background-color: red;
  color: white;
}

/* Hover text */
.hover-text {
  font-size: 12px;
  color: white;
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
  margin-top: px;
}

.option-item:hover .hover-text {
  opacity: 1;
}

.option-item.selected:hover .hover-text {
  color: white;
}

.no-options {
  padding: 12px;
  font-size: 14px;
  color: #666;
  text-align: center;
  background-color: #f9f9f9;
}

/*---- */
 .multi-dropdown-container {
  width: 400px;
  margin: 20px auto;
  font-family: Arial, sans-serif;
  
  position: relative;
}

.selected-items-container {
  position: relative;
}

.multi-custom-input {
  width: 100%;
  max-width: 400px;
  padding: 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  background-color: transparent;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
  transition: height 0.3s ease;
}

.selected-items {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.selected-tag {
  background-color: #28a745;
  color: white;
  border-radius: 3px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.remove-tag {
  margin-left: 8px;
  cursor: pointer;
  font-weight: bold;
  color: #fff;
}

.remove-tag:hover {
  color: #f00;
}

.multi-custom-options {
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  max-width: 400px;
  border: 1px solid #ccc;
  background-color: #fff;
  z-index: 10;
  max-height: 150px;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.multi-option-item {
  padding: 12px;
  font-size: 14px;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.multi-option-item:hover {
  background-color: blue;
  color: #fff;
}

.multi-option-item.selected {
  background-color: grey;
}

.multi-option-item.selected:hover {
  background-color: red;
  color: white;
}

.multi-hover-text {
  font-size: 12px;
  color: white;
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.multi-option-item:hover .multi-hover-text {
  opacity: 1;
}

.multi-option-item.selected:hover .multi-hover-text {
  color: white;
}

.no-options {
  padding: 12px;
  font-size: 14px;
  color: #666;
  text-align: center;
  background-color: #f9f9f9;
}  

.multi-placeholder{
  text-align: left;
}


.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 30px;
  margin-bottom: 20px;
  margin-right: 50px;
  margin-left: 50px;
}

.checkbox-input {
  display: none;
}

.checkbox-custom {
  width: 30px;
  height: 20px; 
  border: 2px solid #000;
  border-radius: 4px;
  position: relative;
  margin-right: 10px;
  display: none;
}

.checkbox-input:checked + .checkbox-custom {
  display: inline-block;
}


.checkbox-input:checked + .checkbox-custom::after {
  content: '✔';
  font-size: 30px; 
  font-weight: bold;
  color: black;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.checkbox-input:checked + .checkbox-custom {
  background-color: white;
  border-color: #000;
}

/*spinner */
.spinner-overlay {
  position: fixed; /* Keeps spinner in place */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.8); /* Light transparent background */
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-overlay svg {
  font-size: 40px;
  color: black;
  animation: spin 1s linear infinite;
}

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

div {
  opacity: 1 !important;
  /* transform: none !important; */
}


.answerLayoutWrapper{
	display: flex;
	width: 100%;
	flex-wrap: wrap;
	justify-content: center;
}
.answerOptionWrapper{
  background-color: inherit;
  margin: 20px 0 10px;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.answerInnerWrapper{
  width: 100%;
}
.answerImageWrapper{
  position: relative;
  max-width: 150px;
  max-height: 150px;
  width: 100%;
  margin: 30px auto 20px;
  display: table;
  cursor: pointer;
}
&:hover:has(.hoverImage) .normalImage{
    opacity: 0;
  }
&:hover:has(.hoverImage) .hoverImage{
  opacity: 1;
}
.normalImage{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: opacity 0.3s;
  opacity: 1;
}
.hoverImage{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: opacity 0.3s;
  opacity: 2; 
}
.customCol1{
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}
.customCol2{
  flex: 0 0 50%;
  max-width: 50%;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}
.customCol3{
  flex: 0 0 33.33333333%;
  max-width: 33.33333333%;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}
.customCol4{
  flex: 0 0 25%;
  max-width: 25%;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}
.customCol5{
  flex: 0 0 20%;
  max-width: 20%;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}
.customCol5{
  flex: 0 0 16.66666667%;
  max-width: 16.66666667%;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.questionImageOuter{
  text-align: center;
  display: block;
  position: relative;
  margin-top: 20px;
  margin-bottom: 20px;
}
.questionImageInnerWrapper{
  display: block;
  width: 100%;
}
.questionImage{
  max-width: 300px;
  margin: 0 auto;
  width: 100%;
}

.quiz-answers{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.questionBackgroundImage{
  opacity: 0.7 !important;
}

/* result page styles */

.result-header {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 50px; 
}

.start-over {
  position: absolute;
  font-family: 'Nunito', sans-serif;
  left: 0;
  font-size: 18px;
  padding-left: 20px;
}

.checkout {
  text-align: center;
  font-family: 'Nunito', sans-serif;
  flex: 1;
  font-size: 18px;
}
.result-content {
  font-size: 32px;
  font-family: "Nunito";
  letter-spacing: 0.8;
  text-align: center;
  unicode-bidi: isolate; 
  padding-top: 10px;
}

/* card item container */
.card-item-container {
  gap: 1rem;
  padding-top: 10px;
}
.card-container {
  display: grid;
  grid-template-columns: 1fr;
  padding: 1rem;
  justify-items: center;
}

@media (min-width: 768px) { 
  .card-container {
    grid-template-columns: repeat(2, auto);
    column-gap: 30px;  
    row-gap: 1rem; 
    justify-content: center; 
  }
}

@media (min-width: 1024px) {  
  .card-container {
    grid-template-columns: repeat(3, auto);
    column-gap: 30px;  
    row-gap: 1rem; 
    justify-content: center; 
  }
}


.card {
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
  border-radius: 0.5rem;  
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 350px;
  align-items: flex-start;
  padding-bottom: 10px;
}

.card img {
  width: 100%;
  height: 75%;
  object-fit: cover;
  border-radius: 0.375rem; 
  text-align: left;
}

.card h5 {
  font-size: 24px;  
  font-weight: 600;  
  padding-left: 10px;
  margin-top: 0.5rem;
  text-align: left;
  font-family: 'Nunito', sans-serif;
}

.card .rating {
  display: flex;
  align-items: center;
  margin-top: 0.25rem;
}

.card .rating .text-yellow-500 {
  color: #F59E0B;  
  font-size: 2rem;
  padding-left: 10px;
}

.card .rating .text-gray-600 {
  color: #4B5563;  
  font-size: 1rem; 
  margin-left: 0.5rem;
  padding-left: 10px;
}

.card p {
  font-size: 1rem; 
  color: #4B5563; 
  margin-top: 0.5rem;
  font-family: 'Nunito',sans-serif;
  padding-left: 10px;
}

.card select {
  margin-top: 0.5rem;
  padding: 0.5rem;
  border: 1px solid #D1D5DB;  
  border-radius: 0.375rem; 
  width: 100%;
}

.card-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background-color: black;
  color: white;
  margin-top: 10px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
}

.card-minus-button,
.card-plus-button {
  color: white;
  font-size: 24px;
  cursor: pointer;
  border-radius: 4px;
}

