/* Стили конфигуратора автомобилей ALX */

.alx-configurator-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

.configurator-progress-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
}

.configurator-progress-bar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #e0e0e0;
  z-index: 1;
  transform: translateY(-50%);
}

.configurator-progress-bar .progress-line {
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  background-color: #007cba;
  z-index: 2;
  transform: translateY(-50%);
  transition: width 0.3s ease;
}

.configurator-progress-steps {
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 3;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
}

.progress-step.active {
  color: #007cba;
}

.progress-step.completed {
  color: #28a745;
}

.progress-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  font-weight: bold;
}

.progress-step.active .progress-step-number {
  background-color: #007cba;
  color: white;
}

.progress-step.completed .progress-step-number {
  background-color: #28a745;
  color: white;
}

.progress-step-label {
  font-size: 12px;
  margin-top: 5px;
  text-align: center;
}

.configurator-step {
  display: none;
}

.configurator-step.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.step-header {
  text-align: center;
  margin-bottom: 30px;
}

.step-title {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
}

.step-description {
  color: #666;
  font-size: 16px;
}

.brands-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.brand-card {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.brand-card:hover {
  border-color: #007cba;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.brand-card.selected {
  border-color: #007cba;
  background-color: #f0f8ff;
}

.brand-logo {
  max-width: 150px;
  max-height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
}

.models-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.model-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.model-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.model-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.model-info {
  padding: 15px;
}

.model-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.model-price {
  color: #007cba;
  font-weight: bold;
  margin-bottom: 10px;
}

.model-excerpt {
  color: #666;
  font-size: 14px;
}

.options-container {
  margin-top: 20px;
}

.option-group {
  margin-bottom: 25px;
}

.option-group-title {
  font-size: 18px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.option-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option-item:hover {
  border-color: #007cba;
}

.option-item.selected {
  border-color: #007cba;
  background-color: #f0f8ff;
}

.option-image {
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
}

.option-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.option-price {
  color: #007cba;
  font-size: 14px;
}

.trim-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.trim-option {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.trim-option:hover {
  border-color: #007cba;
}

.trim-option.selected {
  border-color: #007cba;
  background-color: #f0f8ff;
}

.trim-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.trim-price {
  color: #007cba;
  font-weight: bold;
  margin-bottom: 10px;
}

.trim-features {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.trim-show-all {
  color: #007cba;
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.color-swatch {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.1);
}

.color-swatch.selected {
  border-color: #000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.color-swatch .color-name {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  text-align: center;
  width: 100%;
}

.interior-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.interior-option {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.interior-option:hover {
  border-color: #007cba;
}

.interior-option.selected {
  border-color: #007cba;
  background-color: #f0f8ff;
}

.interior-image {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 10px;
}

.interior-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.interior-material {
  font-size: 14px;
  color: #666;
}

.final-summary {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.summary-label {
  font-weight: bold;
}

.summary-value {
  text-align: right;
}

.total-price {
  font-size: 24px;
  font-weight: bold;
  color: #007cba;
  text-align: right;
  padding-top: 15px;
  border-top: 2px solid #ddd;
  margin-top: 15px;
}

.contact-form {
  background-color: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #007cba;
}

.form-checkbox {
  margin-right: 10px;
}

.form-error {
  color: red;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #007cba;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #005a87;
}

.btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #545b62;
}

.navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.configurator-loader {
  display: none;
  text-align: center;
  padding: 20px;
}

.configurator-loader.show {
  display: block;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid #007cba;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .brands-container,
  .models-container,
  .options-grid,
  .trim-options,
  .interior-options {
    grid-template-columns: 1fr;
  }

  .configurator-progress-bar {
    flex-direction: column;
  }

  .configurator-progress-steps {
    flex-direction: column;
    align-items: center;
  }

  .navigation-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
  }
}
