body {
  font-family: 'Poppins', sans-serif;
  padding: 1.25rem;
  margin: 0 auto;
  overflow-x: hidden;
  max-width: 700px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  background-image: url('https://i.imgur.com/sdB0M2p.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
}


.hero-section {
  text-align: center;
  padding: 0.25rem 1rem 2rem;
  color: green;
  border-radius: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease-out;
}


.hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.hero-subtitle {
  font-size: 0.8rem;
  font-weight: 400;
  font-style: italic;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.4;
}


p {
  text-align: center;
  font-size: 1rem;
}


h1 {
  text-align: center;
  font-size: 1rem;
}

h2 {
  text-align: left;
  font-size: 1rem;
}


.app-header {
  position: relative;
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.tutorial-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: green;
  text-decoration: none;
}

.logo-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.app-logo {
  height: 100px;
  object-fit: contain;
}



.hidden {
  display: none;
}

.card-wrapper {
  background: rgba(255, 255, 255, 0.7); /* subtle white glow */
  border-radius: 1.5rem;
  padding: 1.2rem;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* 👇 This hides content when collapsed */
.card-wrapper.collapsed .card-inner {
  display: none;
}

/* 👇 Pointer style resets when expanded */
.card-wrapper.expanded {
  cursor: default;
}


.card-emoji {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  margin-left: 0.4rem;
  display: inline-block;
  color: green;
}

/*the below step css is for showing progress of form completion */
.step-label {
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.4rem;
  font-weight: 500;
  color: #333;
}

.progress-bar {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
  gap: 0.4rem;
}

.step-block {
  width: 16px;
  height: 6px;
  background-color: #ccc;
  border-radius: 3px;
  display: inline-block;
  transition: background-color 0.8s ease-in-out, transform 0.6s ease-in-out;
}

.step-block.active {
  background-color: rgba(197, 46, 177, 0.6); /* purple when active */
  transform: scaleY(1.3);
}


/*Container CSS for search and create pillbox */
.input-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.input-container input {
  width: 100%;
  padding: 1rem 3.2rem; /* allow room for circular buttons */
  font-size: 1.1rem;
  border-radius: 2rem;
  border: none;
  outline: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  box-sizing: border-box;

}

.select-dropdown {
  width: 100%;
  padding: 1rem 3.5rem 1rem 2.5rem; /* right padding adjusted to leave space for arrow + nav button */
  font-size: 1.1rem;
  border-radius: 2rem;
  border: none;
  color: gray;
  outline: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align-last: center; /* Chrome/Firefox */
  -moz-text-align-last: center;
  -ms-text-align-last: center;
  box-sizing: border-box;

  /* Make dropdown arrow obvious */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23d4008e' height='14' viewBox='0 0 24 24' width='14' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 3rem center; /* shifted left to avoid nav icon */
  background-size: 1rem;
  cursor: pointer;
}

.select-dropdown:focus {
  outline: 2px solid #d4008e;
}


.select-dropdown option {
  direction: rtl;  /* Force trick to shift text to the right... */
  text-align: left; /* ...but combined it results in centered effect */
}


.nav-icon,.nav-icon2 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: green;
  cursor: pointer;
  user-select: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border: none;
  z-index: 1;
}

.nav-icon.back,
.nav-icon2.back {
  left: 0.5rem;
}

.nav-icon.next,
.nav-icon2.next {
  right: 0.5rem;
}

.glow-button {
  box-shadow: 0 0 8px 8px rgba(197, 46, 177, 0.6);
  animation: glowPulse 1.5s infinite ease-in-out ;
  transition: box-shadow 0.3s ease;
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 6px 3px rgba(197, 46, 177, 0.4);
  }

  50% {
    box-shadow: 0 0 10px 6px rgba(197, 46, 177, 0.8);
  }

  100% {
    box-shadow: 0 0 6px 3px rgba(197, 46, 177, 0.4);
  }
}


/*RESULTS SECTION - All of the below relates to displaying search results*/
.container {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.result-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  max-width: 500px;
  margin-inline: auto;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.result-title strong {
  font-size: 1.1rem;
  color: #2e7d32;
}

.result-title span {
  font-size: 0.85rem;
  color: #555;
}

.result-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  row-gap: 0.4rem;
  column-gap: 0.5rem;
  font-size: 0.95rem;
}

.result-body .label {
  font-weight: bold;
  color: #333;
}

.result-body .label2 {
  font-style: italic;
  color: red;
}


.result-body .value a {
  color: #2e7d32;
  text-decoration: none;
}

.result-body .value a:hover {
  text-decoration: underline;
}
/*RESULTS SECTION - END*/

/*buddy found*/

.mark-found-toggle {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.95rem;
  color: green;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
}

#markBuddyFoundSection {
  margin-top: 1rem;
  text-align: center;
}

.pill-input {
  margin-top: 0.5rem;
  padding: 1rem;
  border-radius: 2rem;
  border: none;
  font-size: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}


.clean-button {
  margin-top: 0.7rem;
  width: 100%;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  background-color: green;
  color: white;
  border: none;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
}

.clean-button:hover {
  background-color: #b0006f;
}

.hidden {
  display: none;
}

/* the below 2 css hide the system-rendered dropdown arrows for the autocomplete*/
input:not([list])::-webkit-calendar-picker-indicator {
  display: none !important;
  -webkit-appearance: none;
}

input:not([list])::-moz-list-dropdown {
  display: none !important;
}


.autocomplete-suggestions {
  position: absolute;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-top: 0.3rem;
  z-index: 999;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  font-family: 'Poppins', sans-serif;
}

.autocomplete-suggestions div {
  padding: 0.8rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f1;
}

.autocomplete-suggestions div:last-child {
  border-bottom: none;
}

.autocomplete-suggestions div:hover {
  background: #f9f9f9;
}

/* Modal container */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}


.modal-content {
  background-color: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  overflow: hidden;
}


/* Ensure close button appears ABOVE the iframe */
.modal .close {
  position: absolute;
  top: 10px;
  right: 15px;
  z-index: 10;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 0 10px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  line-height: 30px;
}

.modal .close:hover {
  background: rgba(0,0,0,0.8);
  color: #fff;
}


/* Responsive iframe container */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  z-index: 10;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 0 10px;
  font-size: 24px;
  font-weight: bold;
  border-radius: 50%;
  cursor: pointer;
  line-height: 30px;
}

/* 📱 Mobile adjustments */
@media (max-width: 600px) {
  .modal-content {
    width: 90%;
    margin: 0 auto;
    border-radius: 8px;
    height: auto;
  }

  .video-container {
    padding-bottom: 177.77%; /* 9:16 aspect ratio */
  }

  .modal .close {
    top: 8px;
    right: 10px;
    font-size: 22px;
  }
}


.hidden {
  display: none;
}

/* Dimming background */
#tutorial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 9998;
  display: none;
}

/* Highlight border */
.highlight-box {
  position: absolute;
  border: 2px solid #fff;
  box-shadow: 0 0 10px #fff;
  z-index: 9999;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Tooltip box */
.tooltip {
  position: absolute;
  padding: 16px 20px;
  border-radius: 12px;
  z-index: 10000;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #e7e4e4;
  max-width: 280px;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 20px;
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent white transparent;
}

/* Modern buttons inside tooltip */
.tooltip button {
  margin-top: 12px;
  margin-right: 10px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tooltip button:first-of-type {
  background-color: #2e7d32;
  color: #fff;
}

.tooltip button:first-of-type:hover {
  background-color: #256428;
}

.tooltip button:last-of-type {
  background-color: #f3f3f3;
  color: #444;
}

.tooltip button:last-of-type:hover {
  background-color: #e0e0e0;
}
