
/* === Общие стили формы === */
.container {
  max-width: 1300px;   /* было 1100px → теперь шире */
  width: 750px;          /* почти во всю ширину экрана */
  margin: 60px auto;
  padding: 60px 60px;  /* немного больше воздуха по бокам */
  overflow: hidden;

  /* --- Оформление рамки --- */
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

/* Эффект при наведении — лёгкое “поднятие” */
.container:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}

.step {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

h2 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1E293B;
}

p {
  color: #64748B;
  font-size: 16px;
}

/* === Кнопки выбора (опции) === */
.options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.option {
  width: 200px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  font-weight: 500;
  color: #334155;
  font-size: 15px;

}

.option:hover,
.option.selected {
  border-color: #1E88E5;
  background: #EFF6FF;
  box-shadow: 0 0 12px rgba(30, 136, 229, 0.4);
}

/* === Навигационные кнопки === */
.controls {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.arrow-btn {
  background-color: #1E88E5;
  border: none;
  border-radius: 12px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  color: white;
  font-size: 22px;
  transition: background 0.3s, transform 0.2s;
}

.arrow-btn:hover {
  background-color: #1565C0;
  transform: translateY(-2px);
}

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

/* === Поля ввода === */
input[type="range"] {
  width: 80%;
  margin-top: 20px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  padding: 12px 14px;
  width: 85%;
  margin: 10px 0;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  font-size: 15px;
  color: #1E293B;
  transition: all 0.3s;
  background: white;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #1E88E5;
  box-shadow: 0 0 6px rgba(30, 136, 229, 0.3);
}

textarea {
  height: 120px;
  resize: vertical;
}

button.submit {
  margin-top: 20px;
  background: #1E88E5;
  color: white;
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

button.submit:hover {
  background: #1565C0;
  transform: translateY(-2px);
}

/* === Сетка для адреса === */
.address-form {
  width: 85%;
  max-width: 650px;
  margin: 30px auto;
  background: rgba(255, 255, 255, 0.9);
  padding: 30px 40px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.address-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.address-form .field {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.address-form .field.small {
  max-width: 100px;
}

.address-form .field.medium {
  max-width: 160px;
}

.address-form .field.large {
  flex: 1;
}

.address-form .field.full {
  width: 100%;
}

.address-form label {
  font-weight: 600;
  color: #1E88E5;
  margin-bottom: 6px;
  font-size: 15px;
  text-align: left;
}

/* === Группы радио и чекбоксов === */
.radio-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.checkbox {
  margin-top: 15px;
  font-size: 14px;
  color: #475569;
}

.checkbox a {
  color: #1E88E5;
  text-decoration: none;
}

.checkbox a:hover {
  text-decoration: underline;
}

/* === Адаптив === */
@media (max-width: 768px) {
  .container {
    padding: 25px 15px;
    border-radius: 15px;
  }

  h2 {
    font-size: 22px;
  }

  .option {
    width: 100%;
    max-width: 300px;
  }

  input, textarea {
    width: 100%;
  }
}

/* --- Анимация перехода шагов --- */
.step {
  display: none;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.4s ease;
}

.step.active {
  display: block;
}

.slide-in {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.slide-out {
  opacity: 0 !important;
  transform: translateX(-50px) !important;
}















/* === Адаптивная версия для мобильных устройств === */
@media (max-width: 768px) {
  .container {
    width: 95% !important;
    max-width: none !important;
    padding: 25px 15px !important;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  h2 {
    font-size: 20px;
    line-height: 1.3;
  }

  p {
    font-size: 15px;
    line-height: 1.4;
  }

  .options {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .option {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    padding: 16px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    width: 100% !important;
    font-size: 15px;
  }

  .address-form {
    width: 100%;
    padding: 20px;
    margin: 15px auto;
  }

  .address-row {
    flex-direction: column;
    gap: 10px;
  }

  .arrow-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  button.submit {
    width: 100%;
    font-size: 16px;
    padding: 14px;
  }

  .radio-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}










/* === Стили для выпадающего списка (Anrede) === */
select {
  padding: 12px 14px;
  width: 80%;
  margin: 10px 0;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  font-size: 15px;
  color: #1E293B;
  background-color: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%231E88E5' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  transition: all 0.3s ease;
}

select:focus {
  outline: none;
  border-color: #1E88E5;
  box-shadow: 0 0 6px rgba(30,136,229,0.3);
}

@media (max-width: 768px) {
  select {
    width: 100%;
    font-size: 16px;
  }
}



