html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

#app {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Base reset (optional) */
body {
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', Arial, Helvetica, sans-serif;
  background-color: #f3f4f6;
  position: relative;
}

/* Quiz title styling */
.quiz-title {
  text-align: center;
  padding: 1rem;
  margin-top: 10px;
  margin-bottom: 0;
  position: relative;
  z-index: 10;
}

.quiz-title h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 10px;
}

/* Center everything */
.quiz-wrapper {
  position: relative;
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1rem;
  margin-top: 20px;
}

/* The card itself */
.quiz-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  width: 600px;
  padding: 2rem;
  text-align: center;
  height: 550px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Quiz Logic */
.quiz-step {
  display: none;
  height: 100%;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4rem 2rem 2rem;
  background: white;
}

.quiz-step {
  z-index: 1;
}

.progress-wrapper {
  z-index: 2;
  position: relative;
}

.quiz-step.active {
  display: flex;
}

/* Quiz step top section */
.quiz-step-top {
  flex: 0 0 auto;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Quiz step bottom section */
.quiz-step-bottom {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
}

/* Scrollbar styling */
.quiz-step-bottom::-webkit-scrollbar {
  width: 6px;
}

.quiz-step-bottom::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.quiz-step-bottom::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.quiz-step-bottom::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.quiz-step[data-step="6"] .quiz-options {
  display: grid; /* Use CSS Grid */
  grid-template-columns: 1fr 1fr; /* Create two equal-width columns */
  gap: 10px; /* Add some space between the buttons (adjust as needed) */
  max-width: 400px; /* Optional: Limit the max width of the grid */
  margin: 0 auto; /* Optional: Center the grid if max-width is set */
}

/* Progress bar */
.progress-wrapper {
  position: absolute;
  top: 1rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* The actual bar background */
.progress-container {
  background-color: #e5e7eb;
  height: 6px;
  border-radius: 4px;
  flex-grow: 1;
  overflow: hidden;
}

.progress-bar {
  background-color: red;
  height: 100%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 14px;
  color: #6b7280;
  white-space: nowrap;
}

/* Car icon */
.quiz-icon {
  width: 70px;
  margin-bottom: 1rem;
}

/* Question */
.quiz-question {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0;
}

/* Options */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  max-height: 380px;
  overflow-y: auto;
}

.quiz-options button {
  display: block;
  width: 100%;
  padding: 1.5rem;
  border: 1px solid #000000;
  border-radius: 1px;
  background: white;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  transition: background 0.2s ease;
}

.quiz-options button:hover {
  background-color: #f3f4f6;
}

.offer-wall-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.offer-card {
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 20px;
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  gap: 20px;
  position: relative;
  margin-bottom: 10px;
  min-height: 160px;
}

.offer-content-row {
  display: contents;
  width: 100%;
}

.offer-logo-wrapper {
  grid-column: 1 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offer-info {
  grid-column: 2 / 3;
  flex: 1;
  min-width: 0;
}

.offer-cta {
  grid-column: 3 / 4;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}

@media (max-width: 600px) {
  .offer-card {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .offer-logo-wrapper {
    grid-column: auto;
    margin-top: 30px;
  }

  .offer-info {
    grid-column: auto;
  }

  .offer-cta {
    grid-column: auto;
  }
}

.hidden {
  display: none;
}

/* Zip Code Card Styling */

.zip-field {
  padding: 1.5rem;
  margin-bottom: 1rem;
  font-size: 16px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input:focus {
  outline: none;
  border-color: #0f3d2e;
  box-shadow: 0 0 0 2px rgba(15, 61, 46, 0.2);
}

button:hover {
  background-color: #0c3327;
}

.input-error {
  border: 2px solid #dc2626; /* Tailwind's red-600 */
  outline: none;
}

.zip-error-message {
  color: #dc2626; /* red-600 */
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Offer card styling */

#results-container {
  padding: 20px;
  max-width: 1150px;
  margin: 0 auto;
}

.offer-rank {
  font-size: 20px;
  font-weight: bold;
  color: #dc2626;
  margin-right: 10px;
}

.offer-logo {
  width: 150px;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offer-button {
  background: #3b91fa;
  color: white;
  padding: 10px 18px;
  border-radius: 1px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background 0.2s ease;
  text-align: center;
}

.offer-button:hover {
  background: #3b91fa;
}

.offer-visits {
  display: block;
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 10px;
}

.loading {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  color: #4b5563;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* Loading spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #3b91fa;
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto;
}

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

.offer-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.offer-description {
  padding-left: 0;
  margin: 0;
  min-height: 80px;
}

.offer-description li {
  list-style: none;
  margin-bottom: 0.5rem;
}

li svg {
  padding-right: 5px
}

.offer-rank-header {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  top: 0px;
  left: 0px;
  background: white;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
}

.rank-number {
  background-color: black;
  padding: 4px 8px;
  color: white;
}

.top-choice-badge {
  background-color: yellow;
  padding: 4px 8px;
}


/* Shimmer effect for buttons */
.shimmer-button {
  position: relative;
  overflow: hidden;
  background-color: #3b91fa;
  color: white;
  padding: 10px 18px;
  border-radius: 1px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background 0.2s ease;
  text-align: center;
}

.shimmer-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-55deg);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

/* Click wall content styling */

.nav-bar {
  display: flex;
  justify-content: center;
  background-color: white;
  color: rgb(196, 196, 196);
  font-size: 9px;
  text-align: center;
  border-bottom: solid rgb(239, 238, 238) 1px;


}

nav {
  padding: 1rem;
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
}

.slash-logo {
  height: 50px;
}

.nav-bar a {
  color: rgb(196, 196, 196);
}

.last-updated {
  font-size: 18px;
  margin: 0;
  margin-bottom: 8px;
}

.listing-headline {
  margin: 0;
  margin-bottom: 16px
}

.sub-head {
  margin: 0
}

.headline-section {
  
  text-align: left;
  padding: 1rem;
  background-color: rgb(243, 244, 246);
}

.listing-headline {
  font-size: 32px;
}


.click-wall-container {
  background-color: white;
  position: relative;
  z-index: 1;
}
.headline-subhead-container {
  max-width: 1152px;
  margin-left: auto;
margin-right: auto;
}

.body-container {
    text-align: left;
    padding: 1rem;
    max-width: 1152px;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
    line-height: 1.7;
    
}


blockquote {
	background: #c0d7eb;
	border-left: 4px solid #006699;
	font-size: 24px;
  padding: 40px 20px;
  font-weight: 600;
}

@media(max-width: 991px) {
  blockquote {
    font-size: 18px;
  }

}

@media (max-width: 600px) {
  .nav-bar {
    display: none;
    }

  .slash-logo {
    height: 25px;
  }

  nav {
    padding: 0.5rem 1rem ;
  }

  .headline-section {
    padding: 1rem;
  }

  .last-updated {
    font-size: 11px;
  }

  .listing-headline {
    font-size: 20px;
  }

  .sub-head {
    font-size: 11px;
  }

  #results-container {
    padding: 10px;
  }
  



}

/* Make the example savings responsive */

/* Hide mobile image by default */
.visible-xs {
  display: none;
  justify-content: center;
  align-items: center;
}

.hidden-xs {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Show desktop image by default */
.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}

/* When screen width is 768px or less (mobile) */
@media(max-width: 991px) {
  .visible-xs {
    display: block;
  }

  .hidden-xs {
    display: none;
  }
}


footer {
  text-align: center;
  padding: 1rem;
  background-color: rgb(244, 244, 244);
  color: rgb(196, 196, 196);
  font-size: 11px;
  margin-top: auto;
}

footer a {
  color: rgb(196, 196, 196);
}

/* Add to CSS */
.quiz-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  }


  .loading-screen {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    width: 600px;
  }
  
  .loading-screen.hidden {
    display: none;
  }

/* Mobile responsiveness for quiz */
@media (max-width: 640px) {
  .quiz-card {
    width: 95%;
    max-width: 600px;
    margin: 0 auto;
    height: auto;
    min-height: 500px;
  }
  
  .quiz-options {
    width: 100%;
  }
}

/* Optional: Smooth scrollbar styling for quiz options */
.quiz-options::-webkit-scrollbar {
  width: 6px;
}

.quiz-options::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.quiz-options::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.quiz-options::-webkit-scrollbar-thumb:hover {
  background: #555;
}

