html, body {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
    overflow: hidden !important;
}


body {
  font-family: 'Segoe UI', sans-serif;
  background: #f5f8fb;
  margin-bottom: 0 !important;
  padding: 20px;
  display: flex;
  justify-content: center;
    min-height: 100vh;
}



.form-wrapper {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  padding: 30px;
  width: 100%;
  max-width: 800px; /* ← was 450px */
  animation: fadeIn 0.4s ease;
    padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.form-wrapper {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.step:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}




.step-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.tab-toggle {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tab-toggle button {
  flex: 1;
  padding: 10px;
  font-weight: bold;
  background: #eee;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.tab-toggle button.active {
  background: #4CAF50;
  color: white;
}

input {
  width: 100%;
  margin: 10px 0 15px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

button#decode-btn,
button#next-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #2196F3;
  color: white;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease;
}

button#next-btn[disabled] {
  background: #bbb;
  cursor: not-allowed;
}

#vin-info {
  margin-top: 10px;
  background: #e3f2fd;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.95rem;
  animation: fadeIn 0.3s ease;
}

.vin-confirm {
  color: #1a237e;
  font-weight: bold;
}

.vin-error {
  color: #b71c1c;
  font-weight: bold;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}


.step {
  display: none;
}
.step.active {
  display: block;
}

.form-tab {
  display: none;
}
.form-tab.active {
  display: block;
}

.tab-toggle {
  display: flex;
  border-bottom: 2px solid #ddd;
  margin-bottom: 0;
}

.tab-toggle button {
  flex: 1;
  padding: 12px;
  border: none;
  background: #eee;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: background 0.3s ease;
}

.tab-toggle button.active {
  background: #4CAF50;
  color: white;
}

.tab-section {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0 0 12px 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.form-card {
  display: flex;
  flex-direction: column;
}

html, body {
  margin: 0;
  padding: 0;
  background: transparent;
}

input:invalid {
  border-color: #e53935;
}

.input-warning {
  color: #b71c1c;
  font-size: 0.9rem;
  margin-top: -10px;
  margin-bottom: 10px;
}

.button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.button-group button {
  flex: 1;
  padding: 12px;
  margin: 0 5px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  background: #2196F3;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

.button-group button[disabled] {
  background: #bbb;
  cursor: not-allowed;
}

/* Button Group Styling */
.button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.button-group button {
  flex: 1;
  padding: 12px;
  margin: 0 5px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  background: #2196F3;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 1rem;
}

.button-group button:hover:not([disabled]) {
  background: #1976D2;
}

.button-group button[disabled] {
  background: #bbb;
  cursor: not-allowed;
}

#back-to-1 {
  background: #e0e0e0;
  color: #333;
}

#back-to-1:hover:not([disabled]) {
  background: #bdbdbd;
}

.fancy-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  color: #333;
  margin-bottom: 25px;
}

.fancy-title span {
  color: #2196F3;
  font-weight: bold;
}

/* Group styling for radio and checkbox fields */
.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 16px;
}

/* Label styling for clarity */
.form-card label {
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.form-card small {
  color: #555;
  margin-top: -8px;
  display: block;
  font-size: 0.85em;
}

/* Highlight radio and checkbox labels */
.radio-group label,
.checkbox-group label {
  background: #f7f7f7;
  padding: 8px 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-group label:hover,
.checkbox-group label:hover {
  background: #e9f3ff;
  border-color: #007bff;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 8px;
}

/* --- General Step Styling --- */
.step[data-step="3"] {
  padding: 2rem;
  background: linear-gradient(135deg, #f0f4ff, #fdfdff);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 0.5s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Title --- */
.step-title {
  font-size: 28px;
  font-weight: 700;
  color: #2b2b2b;
  text-align: center;
  margin-bottom: 2rem;
}

/* --- Form Card --- */
.form-card {
  background: #fff;
  border: 1px solid #e5e9f2;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
}

.form-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.form-card label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #333;
}

/* --- Inputs --- */
.form-card input[type="number"],
.form-card input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 16px;
  border: 1px solid #d5dce4;
  border-radius: 10px;
  background: #fafbfc;
  transition: border-color 0.2s ease;
}

.form-card input[type="number"]:focus,
.form-card input[type="text"]:focus {
  border-color: #667eea;
  outline: none;
}

/* --- Radio & Checkbox --- */
.form-card input[type="radio"],
.form-card input[type="checkbox"] {
  accent-color: #0077ff;
  transform: scale(1.2);
  margin-right: 0.5rem;
}

.form-card div label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 15px;
  font-weight: 500;
  color: #444;
}

/* --- Warning --- */
#mileage-warning {
  color: #e74c3c;
  font-weight: 500;
  margin-top: 0.5rem;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0% { transform: translateX(-2px); }
  25% { transform: translateX(4px); }
  50% { transform: translateX(-4px); }
  75% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

/* --- Buttons --- */
.button-group {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.button-group button {
  flex: 1;
  padding: 0.85rem 1.25rem;
  font-size: 17px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: white;
  box-shadow: 0 4px 14px rgba(0, 123, 255, 0.3);
  transition: all 0.25s ease;
}

.button-group button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 123, 255, 0.4);
}

.button-group button:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

.form-step {
  padding: 20px;
}

.form-group {
  margin-bottom: 30px;
}

.option-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-option {
  background: #f1f5f9;
  border: 2px solid transparent;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-option:hover {
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.15);
}

.card-option.selected {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.wheel-checkboxes {
  margin-top: 15px;
  padding-left: 10px;
}

.wheel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.hidden {
  display: none;
}


.question-step.active {
  display: block;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutLeft {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-100%); opacity: 0; }
}

.slide-in { animation: slideInRight 0.3s ease forwards; }
.slide-out { animation: slideOutLeft 0.3s ease forwards; }

.option-group {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.back-btn {
  background-color: #e0e0e0;
  color: #333;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

.back-btn:hover:not(:disabled) {
  background-color: #bdbdbd;
}

.back-btn:disabled {
  background-color: #ccc;
  color: #888;
  cursor: not-allowed;
}

.answer-btn {
  background: #f9fafe;
  border: 1px solid #dbe5f1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  padding: 16px;
  border-radius: 12px;
  text-align: left;
  transition: all 0.2s ease;
  font-size: 16px;
  cursor: pointer;
}

.answer-btn:hover {
  background-color: #eef4fd;
  border-color: #007bff;
}

.back-btn, .button-row {
  margin-top: 20px;
}

.hidden {
  display: none !important;
}

.button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 10px;
}

.button-group .back-btn,
.button-group .next-btn,
#next-to-step-4 {
  background-color: #007bff;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

.button-group .back-btn:hover,
.button-group .next-btn:hover,
#next-to-step-4:hover {
  background-color: #0056b3;
}

.button-group .back-btn:disabled,
.button-group .next-btn:disabled,
#next-to-step-4:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.answer-btn.selected {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}
.step {
  display: none;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.step.active {
  display: block !important;
}

.time-btn {
  padding: 10px 16px;
  margin: 6px 8px 0 0;
  border: 2px solid #ccc;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  transition: 0.2s;
}

.time-btn:hover {
  background: #eef6ff;
  border-color: #007bff;
}

.time-btn.selected {
  background: #007bff;
  color: white;
  border-color: #007bff;
}
.autocomplete-dropdown {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  z-index: 9999;
  max-height: 160px;
  overflow-y: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  border-radius: 6px;
}

.input-error {
  border-color: red;
}
.error-message {
  color: red;
  font-size: 0.9em;
  margin-top: 4px;
}
.input-error {
  border-color: red;
}
.error-message {
  color: red;
  font-size: 0.9em;
}
