@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');

:root {
  --background: 0, 0%, 100%;
  --foreground: 240, 10%, 3.9%;
  --primary: 258, 90%, 66%;
  --primary-foreground: 0, 0%, 98%;
  --secondary: 240, 4.8%, 95.9%;
  --secondary-foreground: 240, 5.9%, 10%;
  --muted: 240, 4.8%, 95.9%;
  --muted-foreground: 240, 3.8%, 46.1%;
  --border: 240, 5.9%, 90%;
  --radius: 0.75rem;
  /* --font-sans: 'Raleway', sans-serif; */
  --font-sans: "Outfit", sans-serif;
  --font-serif: "Josefin Sans", sans-serif;
  --font-mono: 'Montserrat', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body>.site-footer {
  margin-top: auto;
}

body {
  font-family: var(--font-sans);
  color: #000;
  line-height: 1.6;
  min-height: 100vh;
  background-color: #fff;
  /* Add this line to prevent content from being hidden behind footer */
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.video-background video {
  position: absolute;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
}

.container {
  max-width: 1200px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 2rem;
}

.intro {
  text-align: center;
  margin: 2rem 0;
}

.intro h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.navigation-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2rem 0;
  gap: 1rem;
}

.progress-container {
  flex: 1;
  margin: 0 1rem;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: #501aa8;
  transition: width 0.3s ease;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn.primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
}

.btn.outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  position: relative;
}

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

#next-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

#prev-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.glass-card {
  background: #ffffff1f;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(100px);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}

.question-header {
  text-align: center;
  margin-bottom: 2rem;
}

.question-category {
  font-size: 1rem;
  color: hsl(var(--primary));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.question-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 0.5rem 0;
}

.question-description {
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.option-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: calc(var(--radius) - 4px);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.option-title {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
}

.option-radio {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.option-radio-inner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.3s ease;
}

.option-card.selected .option-radio {
  border-color: hsl(var(--primary));
}

.option-card.selected .option-radio-inner {
  background: hsl(var(--primary));
}

.option-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.option-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.option-card.selected {
  background: rgba(var(--primary), 0.2);
  border: 1px solid hsl(var(--primary));
}

.animated {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.search-container {
  margin-top: 5%;
  margin-bottom: 2rem;
}

.search-input-wrapper {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: hsl(var(--primary));
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.no-results {
  text-align: center;
  padding: 2rem;
  color: #000;
  font-style: italic;
}

.no-results p {
  margin-bottom: 20px;
}

.products-grid {
  display: grid;
  gap: 2rem;
  padding: 2rem;
}

.product-card {
  border-radius: 1rem;
  transition: transform 0.3s ease;
  color: black;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  background: #fff;
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
}

.product-image img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 0.5rem;
  overflow: hidden;
}

.product-info {
  margin-top: 1rem;
}

.product-name {
  font-size: 1.25rem;
  line-height: 22px;
  margin-bottom: 0.5rem;
  min-height: 45px;
}

.product-brand {
  font-weight: bold;
}

.product-description {
  min-height: 55px;
}

.product-price {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 1rem 0;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: hsl(var(--primary));
  animation: spin 1s ease-in-out infinite;
  margin: 2rem auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.site-footer {
  position: static;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.site-footer .glass-card {
  padding: 0.75rem;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  background: transparent;
  border-radius: 0;
}

.copyright-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.footer-sections-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding: 3rem;
}

.footer-brand {
  max-width: 400px;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-tagline {
  color: hsl(var(--primary));
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-nav h4,
.footer-contact h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.footer-nav ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
}

.footer-nav li,
.footer-contact li {
  margin-bottom: 1rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: hsl(var(--primary));
  transform: translateX(5px);
}

.contact-label {
  color: rgba(255, 255, 255, 0.5);
  margin-right: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Auth Layout Styles */

.site-header {
  position: static;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-top {
  display: flex;
  justify-content: end;
  align-items: center;
  width: 100%;
  margin-right: 20px;
}
.results-action.top-menu-items a {
    color: #fff;
    letter-spacing: 1px;
    font-weight: 600;
}
.results-action.top-menu-items a:hover {
    color: #ffffff;
    letter-spacing: 1px;
    font-weight: 600;
    background: #ffffff2b;
}
.results-action.top-menu-items .menu-active {
    color: #ffffff;
    letter-spacing: 1px;
    font-weight: 600;
    background: #ffffff2b;
}

.logo {
  text-decoration: none;
}

.logo h1 {
  color: hsl(var(--primary));
  font-family: var(--font-serif);
  font-size: 1.75rem;
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: auto;
}

.btn.outline {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 0.375rem;
}

.btn.primary {
  background: hsl(var(--primary));
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: none;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  max-width: 100%;
  margin: 0 auto;
  margin: unset;
  /* cursor: pointer; */
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
}

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 1rem 1rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  margin: 0 auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.auth-header p {
  color: rgba(255, 255, 255, 0.7);
}

.auth-form .form-group {
  margin-bottom: 1.5rem;
}

.auth-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group i {
  position: absolute;
  left: 1rem;
  color: rgba(255, 255, 255, 0.5);
}

.input-group input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: #fff;
  transition: all 0.3s ease;
}

.input-group input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
  outline: none;
}

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

.auth-actions {
  margin-top: 2rem;
  text-align: center;
}

.auth-actions .btn {
  width: 100%;
  margin-bottom: 1rem;
}

.auth-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.auth-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-link a:hover {
  text-decoration: underline;
}

.quiz-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  text-align: center;
  z-index: 1000;
}

.quiz-header .logo {
  text-decoration: none;
}

.quiz-header h1 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 2rem;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.menu-container {
  display: flex;
  align-items: center;
  margin-left: 80%;
}

.menu-button {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  margin-left: 1rem;
  margin-right: 10px;
}

.dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 10px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid white;
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 10px;
  width: 280px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.dropdown.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown ul {
  margin: 0;
  padding: 8px 0 8px 40px;
  list-style-type: disc;
}

.dropdown li::marker {
  font-size: 1.8rem;
}

.dropdown li {
  padding: 10px 16px;
  /* transition: background 0.2s ease; */
}

.dropdown li+li {
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.dropdown li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 18px;
  display: block;
}

.dropdown li:hover {
  background: rgba(255, 255, 255, 0.7);
}

.danger-btn {
  background-color: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #fff !important;
}

.result-card {
  background: #dcdcdc;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(100px);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}

.home-link {
  background: #8b5cf6;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease, text-decoration 0.3s ease;
}

.home-link:hover {
  color: #1e1b4b;
  text-decoration: underline;
}

.results-action {
  text-align: center;
}

.results-action.top-menu-items {
  display: flex;
  gap: 10px;
}

a {
  text-decoration: none;
}

.result-box {
  background-color: #f1f1f1;
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  border: 1px solid #e2e2e2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.question-title-wrapper {
  display: flex;
  align-items: center;
}

.question-title-wrapper .back-button {
  display: block;
  width: 50px;
  height: 50px;
}

.question-title-wrapper .question-title {
  flex: 1;
}

.no-padding {
  padding: 0;
}

.border-0 {
  border: 0;
}

.p-0 {
  padding: 0;
}

.btn.primary:hover {
  background-image: linear-gradient(45deg,#5614a242, #0000002f);
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* New results page styles start */

.custom-container {
  max-width: 100%;
  padding: 0;
}

.custom-result-box {
  border-radius: 0;
  box-shadow: none;
}

.products_grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: "Outfit", sans-serif;
  margin-bottom: 50px;
}

.products_grid .product_card {
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  position: relative;
  text-align: center;
}

.products_grid .product_card:hover {
  /* transform: scale(1.01); */
  transition: transform 0.3s ease;
  box-shadow: 0 0px 30px -7px #fff;
}

.products_grid .product_card img {
    max-width: 100%;
    object-fit: contain;
    background: #ffffff;
    border-radius: 10px;
    max-height:175px
}

.products_grid .product_brand {
  font-size: 1.2rem;
    color: #ffffff;
    font-weight: 400;
    letter-spacing: 1px;  
}

.products_grid .product_name {
    font-size: 0.9rem;
    line-height: 20px;
    font-weight: 200;
    color: #ffffff;
    /* min-height: 50px; */
    margin: 0;
    letter-spacing: 1px;
}

.products_grid .product_price {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0;
}

.products_grid .old_product_price {
    font-size: 15px;
    text-decoration: line-through;
    color: #ebebeba6;
    margin-left: 5px;
    font-weight: 300;
}

.products_grid .product_rating {
  margin: 10px 0;
  font-size: 16px;
}

.products_grid .product_rating span i {
  margin-right: 3px;
}

.products_grid .bi-star {
  color: gray;
}

.products_grid .bi-star-fill {
  color: #EFBF04;
}

.products_grid .vd_button {
  color: #8B5CF6;
  padding: 10px 20px;
  border: 2px solid #8B5CF6;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  background: none;
  font-family: "Outfit", sans-serif;
  margin: 25px 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.products_grid .vd_button:hover {
  background: #8B5CF6;
  color: #fff;
}

.products_grid .product_badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 8px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  border-radius: 20px;
}

.products_grid .product_badge.offer {
  background: #f56565;
}

.products_grid a {
  text-decoration: none;
}

.product_rating_view .bi-star {
  color: gray;
}

.product_rating_view .bi-star-fill {
  color: #EFBF04;
}

/* New results page styles end */

.header-top .logo h1 {
  margin-bottom: 0;
}

@media (max-width: 968px) {
  .footer-sections-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    margin: 0 auto;
  }
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .dropdown {
    width: 100%;
    right: 0;
  }
}

@media (max-width: 640px) {
  .footer-sections-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-link:hover {
    transform: none;
  }
}

@media (max-width: 600px) {
  .question-title-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 500px) {
  .header-top {
    flex-direction: column;
    margin-right: 0;
  }
}

@media (max-width: 425px) {
  .header-top {
    flex-direction: column;
  }

  .navigation-buttons {
    flex-direction: column;
  }

  .progress-info {
    flex-direction: column;
  }
}

@media (max-width: 320px) {
  .options-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

}


/*  MK STYLE */

  /* Mobile styles */
  @media (max-width: 767px) 
  {
      .progress-info{font-size: 0.8rem !important;}
      .question-title{font-size: 1.5rem !important;}
      .question-description{font-size: 0.8rem !important;}
      #prev-btn{font-size: 0.8rem;}
      #next-btn{font-size: 0.8rem;}
  }

  /* Tablet styles */
  @media (min-width: 768px) and (max-width: 1024px) 
  {
      .progress-info{font-size: 0.8rem !important;}
      .question-title{font-size: 1.5rem !important;}
      .question-description{font-size: 0.8rem !important;}
      #prev-btn{font-size: 0.8rem;}
      #next-btn{font-size: 0.8rem;}
  }

  @media (min-width: 1366px) and (max-width: 1440px) 
  {
      main {min-height: 94vh;}
  }