.dropdown-toggle {
  background: none;
  border: none;
  color: #d68c03;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

.answer-card {
  cursor: pointer;
}

.answer-card:focus-visible {
  outline: 3px solid #000;
  outline-offset: 4px;
}

/* KEEP hover behavior */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* ADD keyboard behavior */
.dropdown:focus-within .dropdown-menu {
  display: block;
}

    a:focus-visible,
button:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

    .skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 10000;
}

.skip-link:focus {
  left: 10px;
}

footer a {
  text-decoration: underline;
  color: #1a4fa3; /* unvisited link color */
}

footer a:visited {
  color: #6b2fa3; /* visited link color */
}

footer a:hover,
footer a:focus {
  color: #0d2f66;
  text-decoration-thickness: 2px;
}

footer a:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}
    footer {
      background: #fff3e6;
      text-align: center;
      padding: 20px 0;
      border-top: 2px solid #ffd966;
      line-height: .8;
    }

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: #d68c03;
  position: relative;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffd88b;
  min-width: 180px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 10px 0;
  z-index: 1000;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: #333;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: #f5f5f5;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

    .request-btn {
  display: block;
  margin: 20px auto; /* center button */
  padding: 12px 25px;
  background-color: #ffb347;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

header {
      background: #fff3e6;
      padding: 20px 0;
      text-align: center;
      border-bottom: 2px solid #ffd966;
    }
    header img {
      max-width: 150px;
      margin-bottom: 10px;
    }
    header h1 {
      font-family: 'Brush Script MT', cursive;
      font-size: 2em;
      color: #ff9900;
      text-align: center;
    }
    nav {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin-top: 10px;
    }
    nav a {
      text-decoration: none;
      color: #ff6600;
      font-weight: bold;
      transition: color 0.3s;
    }
    nav a:hover {
      color: #ff9900;
    }

        /* On-brand HR styling */
    .brand-hr {
      border: 0;
      height: 4px; /* thickness */
      width: 80px; /* shorter line */
      margin: 15px auto; /* centered */
      border-radius: 2px;
      background: linear-gradient(to right, #ffcc66, #ff9900); /* warm gradient */
    }


        /* Social icons above header */
    .social-links-header {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin-bottom: 10px;
    }
    .social-links-header a img {
      width: 30px;   /* icon size */
      height: 30px;
      transition: transform 0.3s;
    }
    .social-links-header a img:hover {
      transform: scale(1.2);
    }

/* General body styling */
body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(to right, #fdf6f0, #f9e8e0);
  color: #333;
  margin: 0;
  padding: 0;
}

/* Quiz container */
.quiz-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Arial', sans-serif;
  color: #333;
}

/* Quiz title */
.quiz-title {
  text-align: center;
  margin-bottom: 30px;
}

/* Question heading */
h2 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

/* Answer grid */
.answer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 10px;

}

/* Answer card */
.answer-card {
  background: #fff;
  border: 2px solid #ffd6c2;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  max-width: 500px;
}

.answer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-color: #ff6f61;
}

/* Answer image */
.answer-card img {
  width: 100%;
  max-width: 280px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Answer label */
.answer-card span {
  font-size: 14px;
  display: block;
  color: #555;
}

/* Results */
.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
  justify-items: center; /* center the product cards */
}

/* Other items section */
.other-items-container {
  display: flex;             /* use flex for alignment */
  flex-wrap: wrap;           /* allow wrapping on smaller screens */
  justify-content: center;   /* center the group horizontally */
  gap: 15px;                 /* smaller gap between cards */
  margin-top: 15px;
}

/* Keep individual product cards same */
.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  width: 300px;
  max-width: 300px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-card img {
  width: 100% !important;
  max-width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.product-card strong {
  display: block;
  margin-bottom: 5px;
  color: #ff6f61;
}

.product-card a {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background-color: #ff6f61;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.product-card a:hover {
  background-color: #e65a4f;
}

.product-card .request-btn {
  display: block;
  margin: 10px auto 0; /* center button */
  padding: 10px 20px;
  background-color: #ffd6c2;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 14px;
}

.product-card .request-btn:hover {
  background-color: #ffbfa1;
}

/* Other items heading */
h3 {
  text-align: center;
  margin-top: 30px;
  color: #ff6f61;
}

/* Request button styling (outside product cards) */
.request-btn {
  display: block;
  margin: 20px auto; /* center button */
  padding: 12px 25px;
  background-color: #ffb347;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.request-btn:hover {
  background-color: #ff8c42;
}

/* Promo Modal */
.modal {
  display: none;
  position: absolute; /* overlay above results */
  top: 10px;          /* near top of quiz */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 90%;
  max-width: 400px;
  background-color: #fffdf7;
  border: 2px solid #ffb347;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-content input[type="email"] {
  width: 80%;
  padding: 8px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.modal-content button {
  padding: 10px 20px;
  background-color: #ff6f61;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #e65a4f;
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}
