body {
  height: 100vh;
  box-sizing: border-box;
  background: linear-gradient(120deg, #6b4423 0%, #b3a05d 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0px;
}

.left-content {
  position: absolute;
  top: 20%;
  left: 5%;
  color: #fffbe9;
  display: flex;
  flex-direction: column;
  row-gap: 25vh;
}

.top-text {
  font-size: 2rem;
}

.bottom-text {
  font-size: 2rem;
}

.brown {
  color: #b3a05d;
  display: inline-block;
  transition: opacity 0.3s;
  opacity: 1;
  font-weight: bold;
}

.brown.fading {
  opacity: 0;
}

.right-content {
  position: absolute;
  top: 35%;
  right: 10%;
  font-size: 2.5rem;
  color: #fffbe9;
  font-weight: 500;
  transform: translateY(-50%);
}

/* Email Section Layout */
.email-section {
  position: absolute;
  bottom: 10vh;
  left: 37vw;
  width: 39vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cta-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-left: -82%;
  gap: 24vw;
}

.email-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 500px;
  margin-right: 32px;
}

.email-label {
  color: #fffbe9;
  margin-bottom: 0.3rem;
  font-size: 1rem;
  margin-left: .7rem;
  text-align: left;
  width: 100%;
}

.email-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  width: 100%;
  margin-top: 0;
}

#email-message {
  color: #fffbe9;
  margin-top: 0.5rem;
  font-size: 1rem;
  margin-left: -18rem;
  text-align: left;
}

.email-input {
  border: none;
  border-radius: 2rem;
  padding: 0.7rem 2rem;
  font-size: 1.3rem;
  background: #d1c7b0;
  color: #fff;
  outline: none;
  width: 25vw;
  height: 44px;
  box-sizing: border-box;
}

#submit-email {
  background: #fffbe9;
  color: #b3a05d;
  border: none;
  border-radius: 2rem;
  height: 44px;
  font-size: 1.3rem;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

#open-quiz-btn {
  width: 25vw;
  text-align: center;
  justify-content: center;
}

#submit-email:hover, #open-quiz-btn:hover {
  background: #d1c7b0;
  color: #b3a05d;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

/* Quiz Styles */
#quiz-app {
  max-width: 420px;
  margin: 60px auto;
  border-radius: 18px;
  padding: 32px 24px 24px 24px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.quiz-progress {
  margin-bottom: 18px;
  font-size: 1rem;
  color: #b3a05d;
  font-weight: 500;
}
.quiz-question {
  font-size: 1.2rem;
  margin-bottom: 18px;
  color: #6b4423;
  font-weight: 600;
}
.quiz-options {
  margin-bottom: 18px;
}
.quiz-option {
  display: block;
  background: #d1c7b0;
  color: #6b4423;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 10px;
  font-size: 1rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.quiz-option.selected, .quiz-option:active {
  background: #b3a05d;
  color: #fffbe9;
}
.quiz-scale {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}
.quiz-scale label {
  flex: 1;
  text-align: center;
  cursor: pointer;
}
.quiz-scale input[type="radio"] {
  display: none;
}
.quiz-scale .scale-btn {
  display: inline-block;
  background: #d1c7b0;
  color: #6b4423;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  line-height: 36px;
  font-size: 1rem;
  margin: 0 2px;
  transition: background 0.2s, color 0.2s;
}
.quiz-scale input[type="radio"]:checked + .scale-btn {
  background: #b3a05d;
  color: #fffbe9;
}
.quiz-nav {
  display: flex;
  justify-content: space-around;
  gap: 24px; /* Increased from 10px for more space between buttons */
  margin-top: 2rem; /* Add space above the button row */
}
.quiz-btn {
  background: #b3a05d;
  color: #fffbe9;
  border: none;
  border-radius: 2rem;
  padding: 10px 28px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
  margin: 0 8px; /* Add horizontal margin to each button for more breathing room */
}
.quiz-btn:disabled {
  background: #d1c7b0;
  color: #fffbe9;
  cursor: not-allowed;
}
.quiz-summary {
  text-align: center;
  color: #6b4423;
  font-size: 1.1rem;
  margin-top: 24px;
}

#quiz-overlay {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: linear-gradient(120deg, #6b4423 0%, #b3a05d 100%);
  justify-content: center;
  align-items: center;
}
#quiz-overlay.active {
  display: flex;
}
#quiz-app {
  background: transparent;
  margin: 0;
}
.quiz-options, .quiz-nav {
  background: transparent !important;
}
.quiz-question {
  color: #fffbe9;
  font-size: 1.2rem;
  margin-bottom: 18px;
  font-weight: 600;
}
.quiz-progress {
  color: #fffbe9;
}
.quiz-summary {
  color: #fffbe9;
}

#quiz-app {
  margin: 0;
  max-width: 40%;
  width: 95vw;
  min-height: 320px;
  border-radius: 18px;
  padding: 32px 24px 24px 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  position: relative;
  z-index: 2;
}
#close-quiz-btn {
  background: transparent !important;
  color: #b3a05d !important;
  border: none;
  font-size: 3rem !important;
  font-weight: bold;
  cursor: pointer;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  transition: color 0.2s;
  box-shadow: none;
}
#close-quiz-btn:hover {
  color: #6b4423 !important;
  background: transparent !important;
}
@media (max-width: 600px) {

  body, html {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    font-size: 16px !important;
    line-height: 1.5 !important;
  }
  h1, .top-text {
    font-size: 2rem !important; /* 32px */
    line-height: 1.3 !important;
  }
  h2, .right-content {
    font-size: 1.5rem !important; /* 24px */
    line-height: 1.4 !important;
  }
  h3, .bottom-text {
    font-size: 1.2rem !important; /* 19px */
    line-height: 1.5 !important;
  }
  .quiz-question, .quiz-option, .quiz-summary, .quiz-progress, .email-label, .quiz-scale label, .quiz-scale + div span {
    font-size: 1rem !important; /* 16px */
    line-height: 1.5 !important;
  }
  .quiz-btn, #open-quiz-btn, #close-quiz-btn, #submit-email {
    font-size: 1rem !important; /* 16px */
    min-height: 44px !important;
  }
  .quiz-progress, .quiz-summary, .email-label {
    font-size: 0.85rem !important; /* 13-14px for captions/notes */
    line-height: 1.3 !important;
  }
  .landing-container {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 0 1rem;
  }

  .right-content {
    order: 0;
    position: static;
    width: 100%;
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-size: 2rem;
    font-weight: bold;
  }

  .top-text {
    order: 1;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-align: center;
  }

  .bottom-text {
    order: 2;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .left-content {
    order: 1;
    position: static;
    width: 100%;
    left: unset;
    right: unset;
    top: unset;
    bottom: unset;
    transform: none;
    text-align: center;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 16vh !important;
  }

  .email-section {
    order: 3;
    position: static;
    width: 100%;
    align-items: center;
    margin-bottom: 2.5rem;
    margin-top: 0;
  }

  #email-message {
    margin-left: 0;
    text-align: center;
  }

  .email-row {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .email-input,
  #submit-email,
  #open-quiz-btn {
    max-width: 340px;
    width: 90vw;
    margin-left: auto;
    margin-right: auto;
  }
  #quiz-app {
    max-width: 98vw;
    padding: 16px 4vw 16px 4vw;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  #open-quiz-btn {
    bottom: 16px;
    right: 16px;
    padding: 12px 18px;
    font-size: 1rem;
  }
  #quiz-app {
    padding: 12px 2vw 12px 2vw;
    min-height: 180px;
  }
  #close-quiz-btn {
    font-size: 2rem !important;
    width: 48px !important;
    height: 48px !important;
    top: 8px !important;
    right: 8px !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .quiz-options, .quiz-nav {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.7rem !important;
  }
  .quiz-btn, #open-quiz-btn, #close-quiz-btn, #submit-email {
    margin: 0 0 0.7rem 0 !important;
    justify-content: center;
  }
  .quiz-input {
    width: 100% !important;
    margin-bottom: 0.7rem;
  }
  .cta-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-direction: column;
    margin-left: 0;
    gap: 0;
  }
  .email-group {
    margin: 0;
  }
  .email-label {
    margin-left: 6rem;
  }
  .cta-row {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    gap: 0.7rem !important;
    width: 100%;
  }
  #open-quiz-btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0.7rem !important;
    align-self: center !important;
    display: block;
  }
  .quiz-options {
    max-height: 38vh;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 1rem !important;
    padding-bottom: 0;
    flex: unset;
    min-height: unset;
  }
  .quiz-option {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    white-space: normal;
    word-break: break-word;
    font-size: 1rem !important;
    padding: 0.7rem 1rem !important;
    margin-bottom: 0.5rem !important;
    width: 100% !important;
    box-sizing: border-box;
    display: flex !important;
    align-items: flex-start !important;
  }
  .quiz-nav {
    position: sticky;
    bottom: 0;
    background: transparent;
    z-index: 2;
  }
}

.quiz-input {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
}

.quiz-btn, #open-quiz-btn, #close-quiz-btn, #submit-email {
  background: #fffbe9;
  color: #b3a05d;
  border: none;
  border-radius: 2rem;
  height: 44px;
  font-size: 1.3rem;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.quiz-btn:hover, #open-quiz-btn:hover, #close-quiz-btn:hover, #submit-email:hover {
  background: #d1c7b0;
  color: #b3a05d;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}
.quiz-scale + div span {
  color: #fffbe9 !important;
}

.quiz-options {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}