/* ============================
   GLOBAL STYLES
============================= */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f8fa;
  color: #0f172a;
  height: 100%;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

.container {
  max-width: 600px;
  margin: 2rem auto 4rem;
  padding: 1.5rem 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  display: block;
  margin: 0 auto 1rem;
  max-width: 140px;
  height: auto;
}

h2 {
  text-align: center;
  color: #004080;
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

#step-indicator {
  text-align: center;
  font-weight: 600;
  color: #007acc;
  margin-bottom: 1.5rem;
}

/* ============================
   PROGRESS BAR
============================= */
.progress-bar-wrapper {
  background-color: #e0e0e0;
  border-radius: 10px;
  height: 12px;
  width: 100%;
  margin-bottom: 2rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #004080, #007acc);
  width: 0;
  border-radius: 10px;
  transition: width 0.5s ease-in-out;
}

/* ============================
   FORM FIELDS
============================= */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border: 1.8px solid #cbd5e1;
  border-radius: 8px;
  background-color: #fff;
  color: #0f172a;
  transition: border-color 0.3s ease;
  font-family: inherit;
  resize: vertical;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  border-color: #007acc;
  outline: none;
  box-shadow: 0 0 6px rgba(0, 122, 204, 0.4);
}

textarea {
  min-height: 100px;
}

/* ============================
   FILE INPUT
============================= */
label[for="photo"],
label[for="vehicle_photo"] {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: #004080;
  cursor: pointer;
}

input[type="file"] {
  display: block;
  margin-top: 0.25rem;
}

/* Image preview */
.image-preview {
  margin-top: 0.5rem;
  max-width: 140px;
  width: 100%;
  border-radius: 8px;
  display: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ============================
   BUTTONS
============================= */
button[type="submit"],
button[type="button"] {
  background-color: #004080;
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  user-select: none;
}

button[type="submit"]:hover,
button[type="button"]:hover {
  background-color: #003366;
}

/* ============================
   ERROR MESSAGES
============================= */
.error {
  background-color: #ffe6e6;
  border: 1px solid #cc0000;
  padding: 1rem;
  border-radius: 8px;
  color: #cc0000;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}
/* Form fields */
.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border: 1.8px solid #cbd5e1;
  border-radius: 8px;
  background-color: #fff;
  color: #0f172a;
  transition: border-color 0.3s ease;
  font-family: inherit;
  box-sizing: border-box;
  margin-bottom: 1rem;
  display: block;
}

.form-control:focus {
  border-color: #007acc;
  outline: none;
  box-shadow: 0 0 6px rgba(0, 122, 204, 0.4);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* File input */
.form-control-file {
  display: block;
  margin-top: 0.3rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.file-label {
  font-weight: 600;
  color: #004080;
  cursor: pointer;
  display: block;
  margin-top: 0.5rem;
  margin-bottom: 0.2rem;
}

/* Image preview */
.image-preview {
  max-height: 140px;
  display: none;
  margin-top: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: auto;
}

/* Buttons */
button[type="submit"],
button[name="next"],
button[name="back"],
button[name="submit_final"] {
  background-color: #254080;
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  margin-left: 0.5rem;
}

button[type="submit"]:hover,
button[name="next"]:hover,
button[name="back"]:hover,
button[name="submit_final"]:hover {
  background-color: #1d2f66;
}

/* Back button styling */
button[name="back"] {
  background-color: #ccc;
  color: #000;
  margin-left: 0;
}

button[name="back"]:hover {
  background-color: #aaa;
}

/* Navigation container */
.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

/* Responsive container padding */
.container {
  max-width: 600px;
  margin: 2rem auto 4rem;
  padding: 1.5rem 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #0f172a;
}

/* ============================
   RESPONSIVE
============================= */
@media (max-width: 480px) {
  .container {
    margin: 1rem;
    padding: 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  #step-indicator {
    font-size: 1rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  select,
  textarea {
    font-size: 0.95rem;
    padding: 0.7rem 0.85rem;
  }

  button[type="submit"],
  button[type="button"] {
    font-size: 1rem;
    padding: 0.75rem 0;
  }
}
