/* ===========================
   RESET & BASE STYLES
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  overflow: hidden;
  height: 100%;
}

body {
  font-family: "Lato", sans-serif;
  background-image: url("../images/Next space-image-02.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  height: 100vh;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Dark Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

/* ===========================
   PROGRESS BAR
   =========================== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1000;
}

.progress-fill {
  height: 100%;
  background: #ffffff;
  width: 11.11%;
  /* 1/9 questions */
  transition: width 0.3s ease;
}

/* ===========================
   MAIN CONTAINER
   =========================== */
.questionnaire-container {
  position: relative;
  z-index: 10;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 140px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .questionnaire-container.scrollable {
    overflow-y: auto;
    overflow-x: hidden;
    justify-content: flex-start;
    padding-top: 110px;
    padding-bottom: 150px;
  }

  .questionnaire-container.scrollable::-webkit-scrollbar {
    width: 8px;
  }

  .questionnaire-container.scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }

  .questionnaire-container.scrollable::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
  }

  .questionnaire-container.scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
  }

  .scrollable .question-slide[data-question="8"] {
    margin-top: 0;
  }
}

/* ===========================
   LOGO
   =========================== */
.logo {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 20;
}

.logo img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: height 0.3s ease;
}

/* ===========================
   QUESTION SLIDE
   =========================== */
.question-slide {
  display: none;
  text-align: center;
  width: 100%;
  animation: fadeIn 0.5s ease;
  margin-top: 5vh;
}

.question-slide.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   QUESTION TITLE
   =========================== */
.question-title {
  font-family: "Lato", sans-serif;
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 30px;
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.6);
  line-height: 1.3;
  padding: 0 10px;
}

/* ===========================
   OPTIONS CONTAINER
   =========================== */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 60px;
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   OPTION BUTTONS
   =========================== */
.option-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #000000;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 16px 20px;
  font-family: "Lato", sans-serif;
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 100%;
  min-height: 50px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-word;
  line-height: 1.4;
}

.option-btn strong {
  font-weight: 700;
  color: inherit;
}

.option-btn:hover {
  background: #ffffff;
  border-color: #baa170;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(186, 161, 112, 0.4);
}

.option-btn.selected {
  background: #693c26;
  color: #ffffff;
  border-color: #ffffff;
  font-weight: 600;
}

/* =========================== */
/*     QUESTION 8 - TASTE CARDS    */
/* =========================== */

.taste-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 60px;
}

.taste-card {
  width: 100%;
  max-width: 300px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #d9d9d9;
  cursor: pointer;
  transition: 0.3s;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 250px;
}

.taste-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  border-color: #d1b46c;
}

.taste-card.selected {
  border-color: #693c26;
  background: #fdfbf7;
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(105, 60, 38, 0.25);
}

.taste-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

/* White transparent gradient overlay at bottom */
.taste-img-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.85), transparent);
  pointer-events: none;
}

.taste-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

/* Heading inside bottom of image - BLACK text */
.taste-title-overlay {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  z-index: 2;
}

.taste-title-overlay h3 {
  color: #000000;
  font-family: "Lato", sans-serif;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-shadow: none;
  margin: 0;
  padding: 0 10px;
}

.taste-line {
  width: 100%;
  height: 2px;
  background: #d5b170;
  flex-shrink: 0;
}

.taste-box {
  padding: 16px 14px;
  text-align: center;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

/* Description text - Regular weight */
.taste-box .sub {
  color: #000000;
  font-family: "Lato", sans-serif;
  font-size: clamp(12px, 1.5vw, 13px);
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 0;
  display: block;
}

/* "Starting from" text - Bold */
.taste-box .sub.starting-from {
  color: #000000;
  font-family: "Lato", sans-serif;
  font-size: clamp(13px, 1.5vw, 14px);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
}

/* Price - Bold */
.taste-box .price {
  color: #000000;
  font-family: "Lato", sans-serif;
  font-size: clamp(14px, 1.5vw, 15px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  display: block;
  margin-top: 0;
}

/* ===========================
   NAVIGATION BUTTONS
   =========================== */
.nav-buttons {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  gap: 15px;
  justify-content: center;
  z-index: 100;
  padding: 0 20px;
  flex-wrap: wrap;
}

.nav-btn {
  width: 100%;
  max-width: 200px;
  min-width: 140px;
  height: 50px;
  border-radius: 50px;
  font-family: "Lato", sans-serif;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  flex: 1;
}

.prev-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #000000;
  border: 1px solid #ffffff;
}

.prev-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.prev-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.next-btn {
  background: #baa170;
  color: #000000;
  border: 1px solid #ffffff;
}

.next-btn:hover {
  background: #c9af7f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(186, 161, 112, 0.5);
}

.next-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===========================
   SERVICE LEVEL OPTION STYLE (Q4)
   =========================== */

[data-question="4"] .option-btn {
  display: block;
  text-align: center;
  padding: 14px 16px;
  line-height: 1.3;
}

/* Title */
[data-question="4"] .service-title {
  font-weight: 700;
  font-size: clamp(15px, 2vw, 16px);
  margin-bottom: 4px;
  line-height: 1.2;
}

/* Subtext */
[data-question="4"] .service-sub {
  font-weight: 400;
  font-size: clamp(12px, 1.5vw, 13px);
  color: #444;
  margin-top: 0;
  line-height: 1.3;
}

/* Selected state colors */
[data-question="4"] .option-btn.selected {
  background: #693c26;
  border-color: #fff;
}

[data-question="4"] .option-btn.selected .service-title,
[data-question="4"] .option-btn.selected .service-sub {
  color: #fff !important;
}

/* ===========================
   RESPONSIVE BREAKPOINTS
   =========================== */

/* Large Desktop */
@media (min-width: 1400px) {
  .questionnaire-container {
    max-width: 1400px;
  }

  .taste-card {
    max-width: 350px;
  }

  .taste-img-wrap {
    height: 280px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .logo img {
    height: 80px;
  }

  .taste-row {
    gap: 25px;
  }

  .taste-card {
    max-width: 280px;
  }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
  .questionnaire-container {
    padding: 90px 15px 130px;
  }

  .logo {
    top: 15px;
    left: 15px;
  }

  .logo img {
    height: 50px;
  }

  .question-title {
    margin-bottom: 25px;
  }

  .taste-row {
    gap: 15px;
  }

  .taste-card {
    max-width: 260px;
  }

  .taste-img-wrap {
    height: 200px;
  }
}

/* Tablet Portrait */
@media (max-width: 768px) {
  .questionnaire-container {
    padding: 80px 15px 120px;
  }

  .logo {
    top: 12px;
    left: 12px;
  }

  .logo img {
    height: 45px;
  }

  .question-title {
    margin-bottom: 20px;
    padding: 0 5px;
  }

  .options-container {
    max-width: 600px;
    gap: 12px;
    margin-bottom: 40px;
  }

  .option-btn {
    padding: 14px 16px;
  }

  .taste-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .taste-card {
    max-width: 350px;
    width: 100%;
  }

  .taste-img-wrap {
    height: 220px;
  }

  .nav-buttons {
    gap: 10px;
    padding: 0 15px;
    bottom: 15px;
  }

  .nav-btn {
    max-width: 180px;
    height: 48px;
  }
}

/* Mobile Landscape */
@media (max-width: 667px) and (orientation: landscape) {
  .questionnaire-container {
    padding: 70px 10px 110px;
    display: flex;
    justify-content: center;
  }

  .question-title {
    font-size: clamp(18px, 4vw, 22px);
    margin-bottom: 15px;
  }

  .options-container {
    margin-bottom: 30px;
  }

  .option-btn {
    padding: 12px 14px;
    min-height: 44px;
  }

  .nav-buttons {
    bottom: 10px;
  }

  .nav-btn {
    height: 44px;
    font-size: 15px;
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  .questionnaire-container {
    padding: 70px 12px 100px;
    justify-content: center;
  }

  body {
    background-attachment: scroll;
  }

  .logo {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
  }

  .logo img {
    height: 70px;
  }

  .question-title {
    font-size: 20px;
    margin-bottom: 25px;
    line-height: 1.2;
    padding: 0;
  }

  .options-container {
    gap: 10px;
    margin-bottom: 40px;
  }

  .option-btn {
    padding: 14px 12px;
    font-size: 14px;
    min-height: 48px;
    border-radius: 6px;
  }

  .taste-card {
    min-width: auto;
    max-width: 192px;
  }

  .taste-img-wrap {
    height: 200px;
  }

  .taste-img-wrap::after {
    height: 50px;
  }

  .taste-title-overlay h3 {
    font-size: 16px;
  }

  .taste-box {
    padding: 14px 12px;
    min-height: 100px;
  }

  .nav-buttons {
    flex-direction: row;
    gap: 8px;
    padding: 0 12px;
    bottom: 15px;
  }

  .nav-btn {
    max-width: calc(50% - 4px);
    min-width: auto;
    height: 46px;
    font-size: 15px;
  }

  [data-question="4"] .option-btn {
    padding: 12px 10px;
  }

  [data-question="4"] .service-title {
    font-size: 14px;
  }

  [data-question="4"] .service-sub {
    font-size: 12px;
  }
}

/* Small Mobile */
@media (max-width: 360px) {
  .questionnaire-container {
    padding: 60px 10px 90px;
  }

  .logo img {
    height: 35px;
  }

  .question-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .option-btn {
    padding: 12px 10px;
    font-size: 13px;
  }

  .taste-img-wrap {
    height: 180px;
  }

  .taste-title-overlay h3 {
    font-size: 15px;
  }

  .nav-btn {
    height: 44px;
    font-size: 14px;
  }
}

/* Extra Small Mobile */
@media (max-width: 320px) {
  .questionnaire-container {
    padding: 50px 8px 80px;
  }

  .question-title {
    font-size: 17px;
  }

  .option-btn {
    padding: 10px 8px;
    font-size: 12px;
  }

  .nav-btn {
    height: 42px;
    font-size: 13px;
    max-width: calc(50% - 6px);
  }

  .taste-card {
    max-width: 280px;
  }

  .taste-img-wrap {
    height: 160px;
  }
}

/* High-DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

  .option-btn,
  .nav-btn,
  .taste-card {
    border-width: 1.5px;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }

  body::before {
    display: none;
  }

  .nav-buttons,
  .progress-bar,
  .logo {
    display: none;
  }

  .questionnaire-container {
    padding: 20px;
    min-height: auto;
  }

  .question-slide {
    display: block !important;
    page-break-inside: avoid;
    margin-bottom: 30px;
  }
}

/* ===========================
   COUNTRY SEARCH STYLES
   =========================== */
#countrySearchWrapper {
  width: 100%;
  position: relative;
}

.country-search-input {
  width: 100%;
  padding: 16px 20px;
  font-family: "Lato", sans-serif;
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 400;
  background: rgba(255, 255, 255, 0.95);
  color: #000000;
  border: 2px solid #baa170;
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  min-height: 50px;
  display: block;
}

.country-search-input:focus {
  background: #ffffff;
  border-color: #693c26;
  box-shadow: 0 6px 20px rgba(186, 161, 112, 0.4);
}

.country-search-input::placeholder {
  color: #666;
  opacity: 0.7;
}

.country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: #ffffff;
  border: 2px solid #baa170;
  border-radius: 8px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: none;
}

.country-dropdown::-webkit-scrollbar {
  width: 8px;
}

.country-dropdown::-webkit-scrollbar-track {
  background: rgba(186, 161, 112, 0.1);
  border-radius: 4px;
}

.country-dropdown::-webkit-scrollbar-thumb {
  background: rgba(186, 161, 112, 0.5);
  border-radius: 4px;
}

.country-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(186, 161, 112, 0.7);
}

.country-option {
  padding: 12px 20px;
  font-family: "Lato", sans-serif;
  font-size: clamp(14px, 2.5vw, 16px);
  color: #000000;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(186, 161, 112, 0.2);
  text-align: left;
}

.country-option:last-child {
  border-bottom: none;
}

.country-option:hover {
  background: rgba(186, 161, 112, 0.15);
  padding-left: 25px;
}

.country-option.no-results {
  color: #999;
  cursor: default;
  text-align: center;
  font-style: italic;
}

.country-option.no-results:hover {
  background: transparent;
  padding-left: 20px;
}

/* Mobile adjustments for country search */
@media (max-width: 480px) {
  .country-search-input {
    padding: 14px 16px;
    font-size: 14px;
  }

  .country-dropdown {
    max-height: 250px;
  }

  .country-option {
    padding: 10px 16px;
    font-size: 14px;
  }

  .country-option:hover {
    padding-left: 20px;
  }
}