#multistep-form {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  #multistep-form {
    height: 100%;
    width: 100%;
  }
}

.vehicle-selector {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.selector-group {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.selector-item {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0; /* Prevent flex items from overflowing */
}

.select-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.custom-select {
  width: 100%;
  position: relative;
}

select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background: none !important;
  display: none !important;
}

.select-header {
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  transition: border-color 0.2s;
  position: relative;
  padding-right: 40px;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.08);
  background-image: none !important;
}

.select-header:hover {
  border-color: #ccc;
}

.select-header:focus {
  outline: none;
  border-color: #0066cc;
}

.select-header img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.select-header svg {
  width: 20px;
  height: 15px;
  border-radius: 3px;
}

.color-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.select-header:after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  opacity: 0.7;
  background: url('https://cdn.prod.website-files.com/675364fc6bb8d63cafd2bf42/6849e7af293d354de9bcc2c9_Unfold%20More%20Icon.svg') center no-repeat;
  background-size: contain;
  pointer-events: none;
}

.disabled .select-header {
  background-color: #fafafa;
  cursor: not-allowed;
}

.disabled .select-header:after {
  opacity: 0.3;
}

.select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  max-height: 300px;
  overflow: hidden;
  z-index: 1000;
  display: none;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.select-options.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.select-options.active ~ .select-header:after {
  transform: translateY(-50%) rotate(180deg);
}

.search-container {
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
  border-bottom: 1px solid #e0e0e0;
}

.search-input {
  width: 100%;
  padding: 8px 8px 8px 40px;
  border: none;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background: white
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg>')
    14px center no-repeat;
  background-size: 16px;
}

.search-input:focus {
  outline: none;
}

.search-input::placeholder {
  color: #999;
}

.options-container {
  max-height: 250px;
  overflow-y: auto;
  padding: 5px 5px;
  gap: 5px;
  display: flex;
  flex-direction: column;
}

.option-item {
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  position: relative;
  padding-right: 32px;
}

.option-item:hover,
.option-item.keyboard-focused {
  background-color: #f5f5f5;
}

.option-item.selected {
  background-color: #f0f0f0;
}

.option-item.selected:after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  opacity: 0.7;
  background: url('https://cdn.prod.website-files.com/675364fc6bb8d63cafd2bf42/686144477977ffbeb358388d_Tick%2003%20Icon.svg') center no-repeat;
  background-size: contain;
}

.option-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.option-item svg {
  width: 20px;
  height: 15px;
  border-radius: 3px;
}

.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.no-results {
  padding: 12px 16px;
  color: #666;
  font-size: 14px;
  text-align: center;
}

/* Custom select styling */
.selector-dropdown {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f8f9fa;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.selector-dropdown:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.7;
}

.selector-dropdown:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

/* Custom option styling */
.option-with-image {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 12px;
}

.option-image {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.option-text {
  display: flex;
  flex-direction: column;
}

.option-name {
  font-weight: 500;
  color: #333;
}

.option-details {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

/* Remove Firefox dotted outline */
.select-header::-moz-focus-inner {
  border: 0;
}

/* Remove IE arrow */
.select-header::-ms-expand {
  display: none;
}

/* Remove default arrow in Safari */
@supports (-webkit-appearance: none) {
  .select-header {
    background-image: none;
  }
}

/* Form Styles */
.form-step {
  position: relative;
  display: none;
  flex: 1;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding-bottom: 0;
  overflow-x: hidden; /* Prevent horizontal overflow */
}

.form-step.active {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.form-content-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 30px 16px 400px 16px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

/* Removed form-buttons-wrapper */

.form-group {
  margin-bottom: 16px;
  width: 100%;
}

.form-label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: white;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  transition: border-color 0.2s;
  box-sizing: border-box;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.08);
}

.phone-input-container {
  display: flex;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.phone-country-select {
  width: 140px !important;
  min-width: 140px !important;
  max-width: 140px !important;
  flex-shrink: 0 !important;
}

.phone-country-select .select-options {
  min-width: 425px;
}

.phone-number-input {
  flex: 1;
  min-width: 0;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.country-flag {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.country-flag svg {
  width: 20px;
  height: 15px;
  border-radius: 3px;
}

.country-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-dial-code {
  color: #666;
  flex-shrink: 0;
}

.form-input:hover {
  border-color: #ccc;
}

.form-input:focus {
  outline: none;
  border-color: #333;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 12px;
  background: white;
  flex-shrink: 0;
  position: absolute;
  bottom: 0;
  z-index: 100;
}

/* Blur effect moved to form-buttons-wrapper */

.form-button {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  position: relative;
  z-index: 1;
  background-color: #333333;
  color: white;
}

.form-button:hover {
  background-color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.form-button:active {
  transform: translateY(1px);
}

/* Form Header Styles */
.form-header {
  gap: 6px;
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-bottom: 30px;
}

.form-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin: 0;
}

.form-description {
  font-size: 16px;
  color: #a9a9a9;
  margin: 0;
  line-height: 1.5;
}

/* Wheel Tooltip and Label Styles */
.wheel-tooltip {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: #333;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  z-index: 100;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  pointer-events: none;
  text-transform: uppercase;
}

.wheel-tooltip:after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #333;
}

.wheel-slide:hover:not(.clicked) .wheel-tooltip {
  opacity: 1;
}

.wheel-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  background: white;
  color: #333;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  z-index: 10;
}

/* Remove the pointer styles */
.wheel-label:after {
  display: none;
}

/* Show label on hover for non-active slides */
.swiper-slide:not(.swiper-slide-active):hover .wheel-label {
  opacity: 1;
}

/* Always hide label on active slide */
.swiper-slide-active .wheel-label {
  display: none;
}

/* Remove any hover transforms that might affect the label */
.wheel-slide:hover .wheel-label {
  transform: translate(-50%, -50%) !important;
}

/* Wheel Slider Styles */
.wheel-slider-container {
  overflow: visible;
  position: relative;
}

.wheel-slider {
  width: 100%;
  position: relative;
  overflow: visible;
}

.swiper-wrapper {
  align-items: center;
}

.swiper-slide {
  transition: opacity 0.3s ease;
  opacity: 0.5;
  height: auto;
}

.wheel-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 30px 10px;
  cursor: pointer;
}

.wheel-image {
  width: 100%;
  height: auto;
  max-width: 140px;
  transition: all 0.3s ease;
  opacity: 0.3;
  transform: scale(0.7);
}

/* .wheel-slide:hover .wheel-label {
  opacity: 1;
  transform: translate(-50%, -120%);
}

/* .swiper-slide:hover {
  opacity: 1 !important;
  transition: opacity 0.3s ease;
}
.swiper-slide:hover .wheel-image {
  opacity: 1 !important;
  transition: opacity 0.3s ease;
} */

.swiper-slide-active {
  opacity: 1;
  z-index: 2;
}

.swiper-slide-active .wheel-slide {
  transform: scale(1.2);
}

.swiper-slide-active .wheel-image {
  opacity: 1;
  transform: scale(1);
}

.swiper-slide-prev,
.swiper-slide-next {
  opacity: 0.7;
  z-index: 1;
}

.swiper-slide-prev .wheel-image,
.swiper-slide-next .wheel-image {
  opacity: 0.7;
  transform: scale(0.85);
}

/* Active Wheel Tooltip */
.active-tooltip {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  z-index: 100;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-transform: uppercase;
}

.active-tooltip:after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #333;
}

.active-tooltip.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

/* Active Title Styles */
.active-wheel-title {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  color: #333;
  text-align: center;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 10;
}

/* Success Message Styles */
.success-message {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  padding: 30px 16px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.success-message.active {
  display: flex;
  opacity: 1;
}

.success-message .form-title {
  margin-bottom: 16px;
}

.success-message .form-description {
  max-width: 400px;
}

/* Dropdown Styles */
.selector-group {
  position: relative;
  z-index: 1;
}

/* Top selector group (inch size and wheel color) gets highest z-index */
.selector-group:nth-child(1) {
  position: relative;
  z-index: 10;
}

/* Car selector group gets lower z-index */
.selector-group:nth-child(3) {
  position: relative;
  z-index: 5;
}

.selector-group .selector-item {
  position: relative;
}

.select-options.extra-width {
  width: 150% !important;
}

/* First dropdown highest z-index */
.selector-group .selector-item:nth-child(1) {
  z-index: 4;
}

/* Second dropdown lower z-index */
.selector-group .selector-item:nth-child(2) {
  z-index: 3;
}

/* Last dropdown lowest z-index */
.selector-group .selector-item:last-child {
  z-index: 2;
}

.select-options.extra-width {
  width: 150% !important;
}

.validation-message {
  color: #000;
  font-size: 14px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 4px;
}

.validation-icon {
  background-color: #ff9500; /* Changed from #ff3b30 to orange */
  color: white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* Add a subtle shake animation when validation messages appear */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.validation-message {
  animation: shake 0.2s ease-in-out;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .form-content-wrapper {
    padding: 20px 12px 500px 12px;
  }

  .form-buttons {
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  }

  .selector-group {
    flex-direction: column;
    gap: 16px;
  }

  .form-header {
    margin-bottom: 20px;
  }

  .wheel-slider-container {
    margin-bottom: 20px;
  }

  .form-button {
    padding: 14px 20px;
  }

  .select-options {
    max-height: 250px;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }

  .select-options.extra-width {
    width: 100% !important;
  }

  .swiper-slide-active .wheel-slide {
    transform: scale(1.1);
  }

  .phone-country-select {
    width: 130px !important;
    min-width: 130px !important;
    max-width: 130px !important;
    flex-shrink: 0 !important;
  }

  .phone-country-select .select-options {
    min-width: 400px;
  }
}
