:root {
  --e-global-color-primary: #ec6234;
  --e-global-color-secondary: #000000;
  --e-global-color-text: #2c2c2c;
  --e-global-color-accent: #a7a7a7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background-color: #f8f9fa;
  color: var(--e-global-color-text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: #2c2c2c;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  position: relative;
}


.logo {
  transition: opacity 0.3s ease;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo:hover {
  opacity: 0.8;
}

/* Main Content */
main {
  padding: 40px 0;
  min-height: calc(100vh - 160px);
}

.quiz-container {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.quiz-header {
  text-align: center;
  margin-bottom: 40px;
}

.quiz-header h1 {
  color: var(--e-global-color-secondary);
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.quiz-header h1 .highlight {
  color: var(--e-global-color-primary);
}

.quiz-header p {
  color: var(--e-global-color-secondary);
  font-size: 1.2rem;
}
.step {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.step.active {
  display: block;
}

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

.step-title {
  font-size: 1.8rem;
  color: var(--e-global-color-secondary);
  margin-bottom: 30px;
  text-align: center;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.vehicle-card {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vehicle-card:hover {
  border-color: var(--e-global-color-primary);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(236, 98, 52, 0.15);
}

.vehicle-card.selected {
  border-color: var(--e-global-color-primary);
  box-shadow: 0 8px 25px rgba(236, 98, 52, 0.2);
}

.vehicle-image {
  width: 100%;
  height: 220px;
  background-color: #f8f9fa;
  overflow: hidden;
  position: relative;
}

.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.vehicle-card:hover .vehicle-image img {
  transform: scale(1.1);
}

.vehicle-info {
  padding: 20px;
  text-align: center;
}

.vehicle-info h3 {
  color: var(--e-global-color-secondary);
  margin-bottom: 12px;
  font-size: 1.4rem;
  font-weight: 600;
}

.vehicle-price {
  color: var(--e-global-color-primary);
  font-size: 1.3rem;
  font-weight: bold;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--e-global-color-secondary);
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--e-global-color-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.styled-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: white;
  color: var(--e-global-color-text);
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  font-family: "Arial", sans-serif;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.styled-input:focus {
  outline: none;
  border-color: var(--e-global-color-primary);
}

.location-info {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.location-info h3 {
  color: var(--e-global-color-secondary);
  margin-bottom: 10px;
}

.location-info p {
  color: var(--e-global-color-accent);
}

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: #e0e0e0;
  border-radius: 3px;
  margin-bottom: 30px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--e-global-color-primary);
  transition: width 0.3s ease;
}

.button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: var(--e-global-color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: #d4532a;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--e-global-color-accent);
  color: white;
}

.btn-secondary:hover {
  background-color: #8a8a8a;
}

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

.summary {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.summary h3 {
  color: var(--e-global-color-secondary);
  margin-bottom: 15px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 5px 0;
  border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-child {
  border-bottom: none;
  font-weight: bold;
  color: var(--e-global-color-primary);
}

/* Footer */
footer {
  background-color: #2c2c2c;
  color: white;
  padding: 40px 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.footer-logo {
  margin: 0 auto;
}

.footer-logo img {
  width: 80px;
}

.footer-info h4 {
  margin-bottom: 15px;
  color: var(--e-global-color-primary);
}

.footer-info a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-info a:hover {
  color: var(--e-global-color-primary);
}

.footer-social-inner-wrap {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.footer-social-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social-item:hover {
  transform: translateY(-3px);
}

.footer-social-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Оновлені медіазапити для мобільних пристроїв */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0px;
  }

  .quiz-container {
    padding: 20px;
  }

  /* Два елементи в ряд на планшетах */
  .vehicle-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .vehicle-image {
    height: 160px;
  }

  .vehicle-info {
    padding: 15px;
  }

  .vehicle-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .vehicle-price {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .quiz-header h1 {
    font-size: 2rem;
  }

  .quiz-container {
    padding: 15px;
  }

  /* Два елементи в ряд навіть на дуже малих екранах */
  .vehicle-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .vehicle-image {
    height: 140px;
  }

  .vehicle-info {
    padding: 10px;
  }

  .vehicle-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
  }

  .vehicle-price {
    font-size: 1rem;
  }
}

/* Для дуже малих екранів (менше 360px) */
@media (max-width: 360px) {
  .vehicle-grid {
    gap: 8px;
  }

  .vehicle-image {
    height: 120px;
  }

  .vehicle-info {
    padding: 8px;
  }

  .vehicle-info h3 {
    font-size: 1rem;
  }

  .vehicle-price {
    font-size: 0.9rem;
  }
}

/* Language Switcher */
.language-switcher {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.language-current {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.language-current:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.language-current::after {
  content: "▼";
  font-size: 10px;
  transition: transform 0.3s ease;
}

.language-switcher.open .language-current::after {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.language-switcher.open .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--e-global-color-text);
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-size: 14px;
}

.language-dropdown a:hover {
  background-color: #f5f5f5;
}

.language-dropdown a:first-child {
  border-radius: 4px 4px 0 0;
}

.language-dropdown a:last-child {
  border-radius: 0 0 4px 4px;
}


 

.flag-icon {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  display: inline-block;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.flag-en {
  background-image: url('https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/6.6.6/flags/4x3/gb.svg');
}

.flag-es {
  background-image: url('https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/6.6.6/flags/4x3/es.svg');
}

@media (max-width: 768px) {
  .language-current {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .language-dropdown a {
    padding: 8px 10px;
    font-size: 12px;
  }
  
  .flag-icon {
    width: 16px;
    height: 12px;
  }
    .language-switcher {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
}
