/* Legend
    TO BE MODIFIED: Sections that can be modified as per the design requirements
    DO NOT TOUCH: Sections that should not be modified for AR functionality
    MODIFY IF NEEDED: Will be mentioned in designs if any modifications are needed
    NEW: Newly added code
    IGNORE: Code that is not relevant to the current project
*/

/* General Styles */
:root {
  font-size: 16px;
  color: #ffffff;
  font-family: 'Source Sans 3', sans-serif;
  margin: 0;
  --primary-color: #F2CC9D;
  --Gulabi-100: #FFDCE6;
  --Gulabi-200: #FF99CF;
  --Gulabi-300: #FF5CB3;
  --Gulabi-400: #FF1F96;
  --Gulabi-500: #D0006F;
  --Text-Body-White: #FFFFFF;
  --Text-Body-Black: #1F1F1F;
  --Option-Label-Fill: #FFF7ED;
  --Option-Label-Border: #FFDAAD;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--primary-color);
}

/* All the content fits in here and is modified to be versatile between desktop to mobile with any complicated layout changes */
.mainContainer{
  max-width: 700px;
  margin: 0px auto;
  /* padding: 24px 16px; */
}

h2{
  font-family: "Bree Serif", serif;
  font-size: 1.5rem;
  font-weight: 400;
  font-style: normal;
  color: var(--Text-Body-Black);
  margin: 0px;
}

p {
  font-size: 1rem;
  line-height: 1.5rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  color: var(--Text-Body-Black);
  margin: 0px;
}

/* Page top - Map Logo Styles */
#logoContainer{
  display: flex; 
  justify-content: center; 
  align-items: center; 
  margin-top: 24px;
}

#logoContainer img{
  height: 68px; 
  width: auto;
}
@media screen and (min-width: 768px) and (orientation: portrait) {
  #logoContainer{
      display: flex; 
      justify-content: center; 
      align-items: center; 
      padding: 32px 0px;
  }
  #logoContainer img{
      height: 80px; 
      width: auto;
  }
}
@media screen and (min-width: 1024px){
  #logoContainer{
      display: flex; 
      justify-content: center; 
      align-items: center; 
      /* padding: 32px 0px; */
  }
  #logoContainer img{
      height: 80px; 
      width: auto;
  }
}
/* Map Logo Styles END */

/* HERO SECTION STYLES */
#heroSection {
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: center;
  align-items: center;
  height: auto;
  max-width: 512px; /* constrains hero width on all devices */
  margin: 0 auto;   /* centers the hero */
  padding: 0 16px;
}

#heroSection p{
  position: relative;
  font-family: 'bree serif', serif;
  font-size: 20px; 
  font-weight: 400;
  text-align: center; 
}

/* Robust intrinsic-ratio wrapper for the hero animation.
   This technique creates a square container that scales with width
   and forces the dotlottie/CANVAS to fill it regardless of inline sizing. */
.hero-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 aspect ratio */
  overflow: hidden;
}

/* Responsive Lottie used in the hero - replaces the inline fixed sizing */
.hero-lottie {
  display: block;
  /* width: 100%; */
  height: auto; /* let the element keep its intrinsic aspect ratio */
}

.hero-wrapper .hero-lottie,
.hero-wrapper dotlottie-wc {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Force the internal canvas (rendered by the webcomponent) to fill the host.
   Use object-fit to control how the animation scales inside the square. */
.hero-wrapper .hero-lottie canvas,
.hero-wrapper dotlottie-wc canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover; /* use 'contain' if you prefer no cropping */
}

/* HERO SECTION STYLES END */

/* Main CTA Button styles */

/* Alt CTA Button Styles */
#startButton2 {
  position: relative;
  display: flex;
  width: 276px;
  height: auto;
  align-items: center;
  cursor: pointer;

  background: transparent !important;
  border: none;
  padding: 0;
}

#startButton2 svg{
  width: 100%;
  height: auto;
  flex-shrink: 0;
  pointer-events: none;
}

#startButton2 p{
  position: absolute;
  left: 38px;
  bottom: 24.486px;

  font-family: 'Source Sans 3', sans-serif;
  font-size: 24px;
  font-weight: 700;
  font-style: normal;
  line-height: 28px;
  color: var(--Gulabi-200);
  pointer-events: none;
}

.defPaw{
  fill: var(--Gulabi-200);
  stroke: var(--Gulabi-200);
  pointer-events: none;
}

.defButton{
  fill: var(--Text-Body-Black);
  stroke: var(--Gulabi-200);
}

/* Make the SVG fill respond to the wrapper's hover/focus/active for keyboard + pointer users */
#startButton2:hover .defPaw,
#startButton2:focus-visible .defPaw {
  fill: var(--Gulabi-200);
}

#startButton2:active .defPaw, #startButton2:hover .defPaw {
  fill: var(--Text-Body-Black);
  stroke: var(--Text-Body-Black);
}

#startButton2:active .defButton, #startButton2:hover .defButton {
  fill: var(--Gulabi-200);
  stroke: var(--Text-Body-Black);
}

#startButton2:active p, #startButton2:hover p {
  color: var(--Text-Body-Black);
}

/* Main CTA styles END */

/* Spacer Element Styling */
.dividerCat{
  display: flex;
  padding: 0 16px;
  margin-top: 24px;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
}

@media screen and (min-width: 768px) {
  #heroSection {
      max-width: 400px;
  }
  
  .dividerCat svg{
      width: 75%;
      align-self: center; 
  }
}

/* Homepage Content Styling */
#contentContainer {
  display: flex;
  padding: 24px 16px;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  align-self: stretch;
  border-radius: 24px 24px 0 0;
  /* background: #000000; */
}

.instructionSet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.instructionSet p{
  font-family: 'source sans 3', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  text-align: center;
  line-height: 1.5rem;
  color: var(--Text-Body-Black);
  margin: 0px;
}

.instructionCat{
  position: relative;
  width: 80px;
  height: auto;
}

.instructionCat p{
    position: absolute; 
    font-size: 20px;
    right: 36px;
    bottom: 16px;
    font-family: 'bree serif', serif; 
    font-weight: 400;
    color: white;
}

.hashTags {
  font-family: 'bree serif', serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.75rem;
  margin: 0px;
}

/* Learn More Button in Webpage to replace Book Ticket Button */
#learnMore {
  display: flex;
  min-width: 144px;
  padding: 12px 20px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  border: 1px solid #000000;
  background: #ffffff;
  text-decoration: none;
  color: var(--Text-Body-Black);
  font-weight: 600;
  font-family: 'source sans 3', sans-serif;
}

#learnMore:active, #learnMore:hover {
  background: var(--Text-Body-Black);
  border: 1px solid var(--Gulabi-200);
  color: var(--Gulabi-200);
}

/* Homepage Content Styling END */

/* TEXTURE BACKGROUND */
#bgTexture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.5;
  background: url(Tiling_bg.jpg);
  /* background-size: cover; */
  background-repeat: repeat;
  mix-blend-mode: multiply;
}


/* All outbound links are styled here */
.link-button {
    text-decoration: none;
    color: var(--Text-Body-Black);
    font-weight: 600;
}
.link-button:hover,
.link-button:active {
    text-decoration: underline;
}

/* Google Symbols Import */
.material-symbols-outlined {
  font-variation-settings:
      'FILL' 1,
      'wght' 400,
      'GRAD' 0,
      'opsz' 24
}

/* Progress bar at bottom (kept top-level to avoid nesting issues) */
#progressBar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: rgba(0,0,0,0.06);
  z-index: 9999;
}
#progressFill {
  height: 100%;
  width: 0%;
  background: var(--Gulabi-500);
  transition: width 280ms ease;
  /* max-width: 512px; */
  margin: 0 auto;
  border-radius: 4px 4px 0 0;
}

/* PORT OVER FROM SUB-SHEET */

/* back nav button styling */
#navBack, #navBack p{
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  background: none; 
  border: none; 
  cursor: pointer; 
  color: var(--Text-Body-Black); 
  display: flex; 
  align-items: center; 
  gap: 4px;
  padding: 0;
  margin: 0;
}

/* Restart Quiz button removed */
/* #restartQuiz, #restartQuiz p{
  display: none;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  background: none; 
  border: none; 
  cursor: pointer; 
  font-size: 1.25rem; 
  color: var(--Text-Body-Black); 
  align-items: center; 
  gap: 4px;
  padding: 0;
  margin: 0;
}

#restartQuiz p{
  display: block;
} */

#navBack:active p, #navBack:hover p, #restartQuiz:active p, #restartQuiz:hover p{
  text-decoration: underline;
}

/* Page Header Style */
h1 {
  font-family: "Bree Serif", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 2.25rem;
  line-height: 2.5rem;
  color: var(--Text-Body-Black);
  text-align: center;
  margin: 0px;
}

#quizHeader{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 40px 0;
}

#quizHeader p{
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5rem;
  color: var(--Text-Body-Black);
}

.sittingCat{
  width: 80px;
  height: auto;
}

/* --- Quiz Question Styles --- */

/* Question numbering style */
.qNoCat{
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.qNoCat p{
  display: flex;
  width: 22px;
  height: 24px;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  right: 8px;
  bottom: 6px;

  font-size: 20px;
  font-family: 'bree serif', serif;
  text-align: center;
}

/* Container with all the dynamically added questions */
#questionsContainer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* gap: 1.25rem; */
  align-items: center;
  justify-items: center;
}

/* Per question section box styling */
.questionBox {
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-radius: 6px;
}

.questionBox strong {
  font-size: 1.125rem;
  color: var(--Text-Body-Black);
  font-style: normal;
  font-weight: 600;
  line-height: 1.75rem;
  text-align: center;
}

/* --- 2x2 grid layout for options --- */
.optionsGrid {
  /* margin-top: 1rem; */
  display: grid;
  width: 22rem;
  row-gap: 0.75rem;
  column-gap: 0.75rem;
  aspect-ratio: 1.33/1;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.optionsGrid input[type="radio"] {
  display: none;
}

.optionsGrid label {
  border: 2px solid var(--Option-Label-Border);
  background: var(--Option-Label-Fill);
  border-radius: 0.375rem;
  padding: 1rem;

  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.125rem;
  line-height: 1.5rem;
  color: var(--Text-Body-Black);
  font-weight: 600;
  font-style: normal;
  text-align: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;

  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 0 0;
  align-self: stretch;
}

.optionsGrid label:hover {
  transform: scale(1.03);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.optionsGrid input[type="radio"]:checked + label {
  background: var(--Gulabi-100);
  border-color: var(--Gulabi-300);
  transform: scale(1.02);
}

@media screen and (min-width: 768px) {
  .optionsGrid {
    width: 32rem;
    aspect-ratio: 1.75/1;
  }

  #questionsContainer {
    gap: 3rem;
  }

  .questionBox {
    gap: 1.5rem;
  }
  
  .questionBox strong {
    font-size: 1.25rem; /* Increase Question font size for bigger screens */
    line-height: 1.75rem;
  }

  .optionsGrid label{
    font-size: 1.25rem;
  }
}

/* optional image (hidden by default until used) */
.question-image{
  width: auto;
  height: 15rem;
  object-fit: cover;
  margin-bottom: 8px;
}

/* --- Question Quiz Styles End --- */

#resultStep {
  position: relative;
  display: flex;
  padding: 1.25rem 0;
  border-radius: 6px;
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  align-self: stretch;
}

/* Make site hyperlinks use Gulabi 500 by default; hover gets a slightly darker tint */
a .privacyPolicy, a.privacyPolicy:link, a .privacyPolicy:visited {
  color: var(--Gulabi-500);
  outline: none;
}


/* Result Button Styling */
#resultStep p {
  font-family: "Bree Serif", serif;
  font-size: 1.5rem;
  line-height: 2rem;
  margin-bottom: 12px;
}

/* Lead generation section styling */
#leadStep {
  position: relative;
  display: none;
  padding: 0 1rem;
  /* max-width: 376px; */
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  align-self: stretch;
  margin-top: 24px;
}

#leadStep .userInput{
  max-width: 376px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0 auto;
}

#leadStep h2{
  text-align: center;
}

.constentSection{
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  align-self: stretch;
}

.consentRow{
  align-self: stretch;
}

.consentRow label{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
}

.consentRow input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  margin: 2px 0 0 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-appearance: checkbox; /* Safari / iOS */
  appearance: checkbox; /* Standard */
  vertical-align: middle;
  transform: none !important;
}

.consentText {
  flex: 1 0 0;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  color: var(--Text-Body-Black);
  align-self: stretch;
}

input[type="text"], input[type="email"] {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  align-self: stretch;
  padding: 16px 8px;
  border-radius: var(--rounded-base, 0.25rem);
  border: 1px solid var(--Background-Input-Field-Stroke-Default, #ADADAD);
  background: var(--Background-Input-Field-Fill-Default, #F8F8F8);
}

.submitButton {
  background: var(--Gulabi-500);
  color: var(--Text-Body-White);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  min-width: 144px;
  border: none;
  border-radius: 4px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.3s;
}

.submitButton:hover {
  background: var(--Gulabi-400);
}

.errorMsg {
  color: var(--Gulabi-500);
  background:var(--Gulabi-100);
  border: 1px solid var(--Gulabi-300);
  padding: 12px 20px;
  border-radius: 6px;
  display: none;
  text-align: center;
}

/* Success variant re-uses the same container */
.errorMsg.success {
  color: #0B6623; /* dark green */
  background: #E6F7EA; /* light green */
  border: 1px solid #8BD09B;
}

/* Result Card Styling */
#result {
  display: none;
  /* margin-top: 24px; */
  background: var(--Option-Label-Fill);
  border: 1px solid #ffd6e7;
  border-radius: 8px;
  padding: 20px 16px;
  text-align: left;
  animation: fadeIn 0.5s ease forwards;
  max-width: 436px;
  margin-left: auto;
  margin-right: auto;
}

/* Result card layout */
.result-title {
  font-family: "Bree Serif", serif;
  color: var(--Text-Body-Black);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: normal;
  margin: 0;
}

.result-image {
  width: 100%;
  aspect-ratio: 1/1; /* square area for artwork */
  background: #e6e6e6;
  border-radius: 6px;
  overflow: hidden;
  display: block;
  margin-top: 12px;
}

.result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.result-message {
  margin-top: 24px;
  color: var(--Text-Body-Black);
  font-family: 'Source Sans 3', sans-serif;
  text-align: center;
}

.result-message p {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5rem;
    margin-top: 8px;
}

.result-message strong {
  font-weight: 600;
  font-size: 1.125rem;
}

.share-promo {
  font-family: 'Source Sans 3', sans-serif;
  text-align: center;
  font-weight: 600;
  margin-top: 24px;
  font-size: 1.25rem;
  max-width: 376px;
  margin-left: auto;
  margin-right: auto;

}

.shareRow {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.share-button {
  width: 56px;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: var(--Text-Body-Black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.share-button svg{
  width: 28px;
  height: 28px;
  pointer-events: none;
}

.share-button:active, .share-button:hover{
  background: white;
  box-shadow: 0 0 0 2px var(--Text-Body-Black);
}

.WA-share-btn, .X-share-btn, .FB-share-btn {
  fill: white;
}

.share-button:hover .WA-share-btn, .share-button:active .WA-share-btn {
  fill: #25D366;
}

.share-button:hover .X-share-btn, .share-button:active .X-share-btn {
  fill: black;
}

.share-button:hover .FB-share-btn, .share-button:active .FB-share-btn {
  fill: #0866FF;
}

.share-button .label {
  display: none; /* hidden label for visual-only icons; aria-label on anchors provides accessibility */
}

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

/* PORT OVER END */

/* Subtle highlight animation used when auto-scrolling to a question/result */
.questionBox.highlight {
  animation: highlightFlash 760ms ease forwards;
}

@keyframes highlightFlash {
  0% {
    box-shadow: 0 0 0 rgba(208, 0, 111, 0);
    background-color: rgba(208,0,111,0.06);
  }
  40% {
    box-shadow: 0 8px 24px rgba(208,0,111,0.12);
    background-color: rgba(255,230,240,0.7);
  }
  100% {
    box-shadow: 0 0 0 rgba(208,0,111,0);
    background-color: transparent;
  }
}

/* Highlight for the result step as well */
#resultStep.highlight {
  animation: highlightFlash 760ms ease forwards;
}

/* .grecaptcha-badge {
  visibility: hidden !important;
} */