.preference-step {
  animation: fadeIn 0.3s ease-in;
  padding-bottom: 100px;
  padding-top: 20px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.input-container {
  background-color: #F6F6F8;
  border-radius: 12px;
  padding: 24px 20px;
  margin-bottom: 20px;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.input-container.error {
  border-color: var(--color-red);
}

.step-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-black);
  text-align: center;
  margin-bottom: 12px;
}

.step-subtitle {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-black);
  text-align: center;
  margin-bottom: 20px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 0;
  margin-bottom: 0;
}

.mattress-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.option-card {
  background-color: white;
  border: 1px solid #C6C6C6;
  border-radius: 12px;
  padding: 20px 15px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  text-align: center;
  outline: none;
}

.option-card:hover {
  background-color: rgba(155, 234, 162, 0.2);
  border-color: var(--color-secondary);
  transform: translateY(-2px);
}

.option-card.selected {
  background-color: #026474;
  border-color: #026474;
  box-shadow: 0 4px 8px rgba(2, 100, 116, 0.2);
}

.option-icon {
  margin-bottom: 10px;
  color: var(--color-primary);
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.position-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.mattress-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.option-card.selected .option-icon {
  color: white;
}

.mattress-option {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  min-height: auto;
  padding: 15px 20px;
}

.mattress-option .option-icon {
  margin-bottom: 0;
  margin-right: 15px;
  flex-shrink: 0;
}

.option-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mattress-option .option-label {
  text-align: left;
}

.mattress-option .option-description {
  text-align: left;
  margin-top: 4px;
}

.option-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-black);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.option-card.selected .option-label {
  color: white;
}

.option-description {
  font-weight: 400;
  font-size: 14px;
  color: var(--color-gray);
  margin-top: 4px;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
}

.option-card.selected .option-description {
  color: rgba(255, 255, 255, 0.9);
}

.height-container {
  background-color: white;
  border-radius: 12px;
  padding: 30px 20px;
  margin-top: 0;
}

.height-slider-wrapper {
  position: relative;
  margin-block: 25px;
}

.height-slider {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #026474;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.height-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.height-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.height-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.height-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.height-slider::-moz-range-track {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #026474;
}

.height-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--color-gray);
  font-weight: 500;
}

.height-display {
  text-align: center;
  margin-top: 20px;
}

.height-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 10px;
  background-color: white;
  border-radius: 8px;
  display: inline-block;
  min-width: 150px;
}

.error-message {
  margin-top: 10px;
  margin-bottom: 10px;
}

.info-box {
  background-color: #E6EFF1;
  border-radius: 12px;
  padding: 15px 20px;
  margin-top: 20px;
}

@media (max-width: 576px) {
  .options-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .mattress-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .option-card {
    min-height: 100px;
    padding: 12px 8px;
  }

  .mattress-grid .option-card {
    min-height: auto;
    padding: 12px 15px;
  }

  .mattress-icon {
    width: 40px;
    height: 40px;
  }

  .mattress-option .option-icon {
    margin-right: 12px;
  }

  .option-icon {
    font-size: 2rem;
    margin-bottom: 6px;
  }

  .position-icon {
    width: 40px;
    height: 40px;
  }

  .option-label {
    font-size: 11px;
  }

  .height-value {
    font-size: 1.5rem;
    min-width: 120px;
  }
}
