/* Import Dyson Fonts */
@import url("dysonFonts.css");

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Dyson Futura", "Futura", "Trebuchet MS", Arial, sans-serif;
  font-weight: 300;
  background-color: #f5f5f5;
  line-height: 1.6;
}

/* Main Wrapper */
.salon-wrapper {
  min-height: 100vh;
  background-color: #f5f5f5;
  overflow-x: hidden; /* This will prevent all horizontal scrolling */
}

/* Header Styles - Side by Side on All Devices */
.salon-header {
  background-color: #000000;
  color: #ffffff;
  padding: 15px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.salon-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Note: Logo height is kept in px to prevent distortion. */
.salon-logo-img {
  height: 40px;
  width: auto;
}

.salon-title {
  font-family: "Dyson Futura", sans-serif;
  font-weight: 300;
  font-size: 20px;
  color: #ffffff;
  text-align: right;
}

/* Back Button */
.salon-back-container {
  padding: 15px 5%;
  background-color: #f5f5f5;
}

.salon-back-btn {
  background: none;
  border: none;
  font-family: "Dyson Futura", sans-serif;
  font-size: 16px;
  color: #333333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: underline;
}

.salon-back-btn:hover {
  color: #000000;
}

/* Container */
.salon-container {
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
}

/* Step Management */
.salon-step {
  display: none;
}

.salon-step.active {
  display: block;
}

/* Banner Section - Using vh (viewport height) for responsive height */
.salon-banner {
  margin-bottom: 40px;
  text-align: center;
  width: 100%;
  overflow: hidden;
}

.salon-banner-img {
  width: 100%;
  height: 30vh;
  max-height: 280px;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Question Sections */
.salon-question-section {
  margin-bottom: 40px;
}

.salon-question-section.salon-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
}

.salon-question-title {
  font-family: "Dyson Futura", sans-serif;
  font-weight: 500;
  font-size: 32px;
  color: #333333;
  margin-bottom: 30px;
}

/* Question Container with White Background */
.salon-question-container {
  background: #ffffff;
  padding: 5%;
  margin-bottom: 20px;
}

.salon-question-container .salon-question-section {
  margin-bottom: 20px;
}

.salon-question-container .salon-nav-container {
  margin: 20px 0 0 0;
}

/* City Selection - Sharp Edges */
.salon-city-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.salon-city-radio {
  display: none;
}

.salon-city-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px solid #cccccc;
  background: #ffffff;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  min-height: 80px; /* Note: Height kept in px for consistency across varying text lengths */
  font-family: "Dyson Futura", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #333333;
}

.salon-city-card:hover {
  border-color: #000000;
}

.salon-city-radio:checked + .salon-city-card {
  border-color: #000000;
  border-width: 2px;
}

/* Select Dropdown - Sharp Edges */
.salon-select-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.salon-select {
  font-family: "Dyson Futura", sans-serif;
  width: 100%;
  padding: 15px 40px 15px 15px;
  border: 1px solid #cccccc;
  background: #ffffff;
  font-size: 16px;
  color: #333333;
  appearance: none;
  cursor: pointer;
  min-height: 60px;
  line-height: 1.2;
}

.salon-select:focus {
  outline: none;
  border-color: #000000;
  border-width: 2px;
}

.salon-select option {
  font-family: "Dyson Futura", sans-serif;
  font-size: 16px;
  color: #333333;
  background: #ffffff;
  padding: 4px 8px;
  line-height: 1.2;
  height: auto;
}

.salon-select option:checked {
  background: #f0f0f0;
  color: #000000;
}

.salon-select-arrow {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666666;
  pointer-events: none;
  font-size: 16px;
}

/* Services Container - Sharp Edges */
.salon-services-container {
  width: 100%;
  max-width: 500px;
}

.salon-service-option {
  display: flex;
  align-items: center;
  padding: 3%;
  border: 1px solid #cccccc;
  background: #ffffff;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  position: relative;
}

.salon-service-option:hover {
  border-color: #000000;
}

.salon-service-option.selected {
  border-color: #000000;
  border-width: 2px;
  background-color: #f9f9f9;
}

.salon-service-option.selected::before {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 15px;
  color: #00aa44;
  font-weight: bold;
  font-size: 18px;
}

.salon-service-checkbox {
  display: none;
}

.salon-service-content {
  flex: 1;
}

.salon-service-name {
  font-family: "Dyson Futura", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #333333;
  margin-bottom: 10px;
}

.salon-service-frequency {
  font-family: "Dyson Futura", sans-serif;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cccccc;
  background: #ffffff;
  font-size: 14px;
  color: #666666;
  cursor: pointer;
}

.salon-service-frequency:focus {
  outline: none;
  border-color: #000000;
}

.salon-service-image {
  width: 25%;
  max-width: 80px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-left: 3%;
}

/* Results Section */
.salon-results-section {
  padding: 20px 0;
}

.salon-results-intro {
  font-family: "Dyson Futura", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #333333;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.4;
}

.salon-expense-cards {
  margin-bottom: 30px;
}

.salon-expense-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #cccccc;
  padding: 20px 60px 20px 20px;
  margin-bottom: 15px;
  display: block;
}

.salon-expense-ribbon {
  position: absolute;
  right: 25px;
  top: -7px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-family: "Dyson Futura", sans-serif;
  font-weight: 600;
  font-size: 15px;
  background: url("images/dysonRibbionImg.svg") no-repeat center center;
  background-size: contain;
  color: #ffffff;
  padding-top: 4px;
}

.salon-expense-content {
  flex: 1;
}

.salon-expense-label {
  font-family: "Dyson Futura", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #333333;
  margin-bottom: 8px;
}

.salon-expense-amount {
  font-family: "Dyson Futura", sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #333333;
  margin: 0;
}

.salon-savings-message {
  text-align: center;
  margin-bottom: 30px;
}

.salon-savings-message p {
  font-family: "Dyson Futura", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #333333;
  line-height: 1.4;
}

/* Product Cards - Sharp Edges */
.salon-products-slider {
  margin-bottom: 20px;
  position: relative;
  background: #ffffff;
  border: 1px solid #cccccc;
  padding: 15px;
}

/* Note: Product card width is controlled by the slider's JS. */
.salon-products-slider .salon-product-card {
  margin: 0;
  width: 100%;
  display: inline-block;
  vertical-align: top;
  border: none;
}

/* Override slick default styles */
.slick-prev,
.slick-next {
  z-index: 10;
  width: 40px;
  height: 40px;
}

.slick-prev {
  left: 25px;
}

.slick-next {
  right: 25px;
}

.slick-prev:before,
.slick-next:before {
  font-size: 30px;
  color: #666666;
}

.slick-dots {
  bottom: -25px;
}

.slick-dots li button:before {
  font-size: 12px;
  color: #666666;
}

.slick-dots li.slick-active button:before {
  color: #333333;
}

.salon-products-grid {
  display: block;
}

/* DESKTOP PRODUCT CARD STYLES */
.salon-product-card {
  height: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.slick-list.draggable {
  cursor: grab;
}

.slick-list.draggable:active {
  cursor: grabbing;
}

.salon-product-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.salon-product-badge-blue {
  background: #0066cc;
}

.salon-product-badge-green {
  background: #00aa44;
}

.salon-product-image {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
}

.salon-product-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
}

.salon-product-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.salon-product-name {
  font-family: "Dyson Futura", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #333333;
  margin-bottom: 10px;
  line-height: 1.3;
  min-height: 3.9em;
}

.salon-product-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 10px;
  min-height: 18px; /* Reserve space for rating */
}

.salon-stars {
  color: #ffa500;
  font-size: 14px;
}

.salon-rating-count {
  font-size: 12px;
  color: #666666;
}

.salon-product-pricing {
  margin-bottom: 10px;
  min-height: 36px; /* Reserve space for pricing */
}

.salon-current-price {
  font-family: "Dyson Futura", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #333333;
  display: block;
}

.salon-original-price {
  font-size: 12px;
  color: #999999;
  text-decoration: line-through;
  margin-right: 5px;
}

.salon-savings {
  font-size: 12px;
  color: #00aa44;
  font-weight: 600;
  min-height: 16px; /* Reserve space for savings message */
  display: block;
}

.salon-product-footer {
  margin-top: auto; /* Pushes footer to the bottom */
}

.salon-product-offer {
  font-size: 11px;
  color: #666666;
  margin-bottom: 15px;
  line-height: 1.3;
  min-height: 2.6em;
}

.salon-shop-btn {
  background: #7cb342;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  font-family: "Dyson Futura", sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
}

/* Navigation Buttons - Sharp Edges */
.salon-nav-container {
  text-align: center;
  margin: 40px 0;
}

.salon-next-btn {
  font-family: "Dyson Futura", sans-serif;
  font-weight: 500;
  background-color: #666666;
  color: #ffffff;
  border: none;
  padding: 15px 40px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.salon-next-btn:hover {
  background-color: #333333;
}

.salon-explore-container {
  text-align: center;
}

.salon-explore-btn {
  font-family: "Dyson Futura", sans-serif;
  font-weight: 500;
  background-color: #666666;
  color: #ffffff;
  border: none;
  padding: 15px 40px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.salon-explore-btn:hover {
  background-color: #333333;
}

/* New Finish Button Styles */
.salon-finish-container {
  text-align: center;
  margin: 40px 0;
}

.salon-finish-btn {
  font-family: "Dyson Futura", sans-serif;
  font-weight: 500;
  background-color: #00aa44;
  color: #ffffff;
  border: none;
  padding: 15px 40px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.salon-finish-btn:hover {
  background-color: #008833;
}

/* Utility class for hiding elements */
.hidden {
  display: none !important;
}

.is-hidden {
  visibility: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
  .salon-question-title {
    font-size: 24px;
  }

  .salon-city-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .salon-products-grid {
    grid-template-columns: 1fr;
  }

  .salon-container {
    width: 95%;
  }

  .salon-banner-img {
    height: 25vh;
  }

  /* COMPACT MOBILE STYLES */
  .salon-results-intro,
  .salon-expense-cards,
  .salon-savings-message {
    margin-bottom: 15px;
  }

  .salon-products-slider {
    padding: 10px;
    margin-bottom: 15px;
  }

  .salon-product-card {
    padding: 10px;
    text-align: left;
    position: relative;
    overflow: hidden;
    border: none;
    flex-direction: column;
  }

  .salon-product-main {
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }

  .salon-product-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    margin-bottom: 0;
  }

  .salon-product-img {
    width: 100%;
    height: 100%;
  }

  .salon-product-details {
    flex-grow: 1;
    text-align: left;
  }

  .salon-product-badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 2px 8px;
    font-size: 10px;
    margin-bottom: 0;
    z-index: 1;
  }

  .salon-product-name {
    font-size: 13px;
    margin-bottom: 5px;
    min-height: 0;
  }

  .salon-product-rating {
    justify-content: flex-start;
    margin-bottom: 5px;
    min-height: 0;
  }

  .salon-stars {
    font-size: 12px;
  }

  .salon-rating-count {
    font-size: 11px;
  }

  .salon-product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 5px;
    min-height: 0;
  }

  .salon-current-price {
    font-size: 15px;
    display: inline;
  }

  .salon-savings {
    display: inline;
    min-height: 0;
  }

  .salon-product-footer {
    margin-top: 10px;
  }

  .salon-product-offer {
    font-size: 11px;
    margin-bottom: 10px;
    min-height: 0;
  }

  .salon-shop-btn {
    padding: 10px 20px;
  }

  .salon-nav-container,
  .salon-finish-container {
    margin: 20px 0;
  }
}

@media (max-width: 480px) {
  .salon-header {
    padding: 12px 5%;
  }

  .salon-title {
    font-size: 16px;
  }

  .salon-logo-img {
    height: 35px;
  }

  .salon-question-title {
    font-size: 20px;
  }

  .salon-banner-img {
    height: 20vh;
  }

  .salon-question-container {
    padding: 5%;
  }

  .salon-select option {
    padding: 2px 4px;
    line-height: 1.1;
    font-size: 14px;
  }

  .salon-service-option {
    align-items: center;
  }
}

@media (max-width: 320px) {
  .salon-header {
    padding: 10px 4%;
  }

  .salon-title {
    font-size: 14px;
  }

  .salon-logo-img {
    height: 30px;
  }

  .salon-banner-img {
    height: 18vh;
  }

  .salon-select option {
    padding: 1px 2px;
    line-height: 1.0;
    font-size: 13px;
  }
}
