* {
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #e56b25 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 1200px;
  width: 100%;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 15px;
}

@media screen and (min-width: 768px) {
  body.success-mode .container {
    width: 30%;
  }
}

.header-with-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

@media screen and (max-width: 767px) {
  body.success-mode .header-with-logo {
    gap: 10px;
  }
}

.logo {
  width: 130px;
  height: 40px;
  object-fit: contain;
}

.logo-left,
.logo-right {
  flex-shrink: 0;
}

h1 {
  text-align: center;
  color: #333;
  font-size: 2em;
  margin: 0;
}

.bikes-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.bike-card {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  background: #f8f9fa;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.media-container {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  background: #ddd;
  border-radius: 13px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 15px;
}

.media-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border: 3px solid transparent;
  transition: border 0.3s;
}

.media-el {
  border-radius: 13px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.media-el.active {
  display: block;
}

.selected-bike-card {
  margin-top: 20px;
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dots-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 5px;
  margin-bottom: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #e56b25;
}

.bike-title {
  font-weight: bold;
  font-size: 1.2em;
  margin: 10px 0;
  color: #333;
}

.price-table {
  margin-top: 15px;
  background: white;
  border-radius: 8px;
  padding: 10px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

.price-row:last-child {
  border-bottom: none;
}

.btn-order {
  background: #e56b25;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
  font-weight: bold;
  margin-top: 15px;
}

.btn-order:hover {
  background: #764ba2;
}

.btn-change-model {
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
  font-weight: bold;
  margin-top: 15px;
}

.btn-change-model:hover {
  background: #5a6268;
}

.form-section {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 25px;
  margin-top: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #555;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.consent-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 20px;
  line-height: 1.4;
  cursor: pointer;
  font-weight: 600;
  color: #555;
}

.consent-checkbox input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  margin: 0;
}

.consent-checkbox input:hover {
  border-color: #e56b25;
  box-shadow: 0 0 0 4px rgba(229, 107, 37, 0.12);
}

.consent-checkbox input:checked {
  background: #e56b25;
  border-color: #e56b25;
}

.consent-checkbox input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent-checkbox input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(229, 107, 37, 0.18);
}

input[type="checkbox"].invalid {
  border: 2px solid #dc3545;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.12);
}

.btn {
  background: #e56b25;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
  font-weight: bold;
}

.btn:hover {
  background: #764ba2;
}

.btn-secondary {
  background: #6c757d;
  margin-top: 10px;
}

.btn-secondary:hover {
  background: #5a6268;
}

.success-message {
  text-align: center;
  padding: 12px;
  background: #d4edda;
  border-radius: 10px;
  color: #155724;
}

.success-message p {
  font-size: 1em;
  margin: 20px 0;
}

.hidden {
  display: none;
}

.error-message {
  color: #dc3545;
  text-align: center;
  margin: 10px 0;
}

#bike_model {
  font-weight: bold;
  background: #e9ecef;
}

.selected-bike-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.selected-bike-card {
  flex: 0 1 400px;
  background: #f8f9fa;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.details-box {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  text-align: left;
}

.details-title {
  color: #333;
  margin-top: 0;
}

.error-message {
  color: red;
  text-align: center;
  margin: 10px 0;
}
.btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}
