/* ================= General Styles ================= */
body {
  font-family: Arial, sans-serif;
  background: #f8f9fa;
  padding: 30px;
}
.inline-container {
  max-width: 600px;
  margin: 3rem auto;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
div.heading-calc {
  text-align: center;
  margin-top: 2rem;
}
h1 {
  text-align: center;
  margin-bottom: 30px;
}
label {
  font-weight: bold;
}
input,
select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
}
button {
  background: #007bff;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  width: 100%;
  font-size: 16px;
  cursor: pointer;
}
button:hover {
  background: #0056b3;
}
.results {
  background: #dff0d8;
  color: #3c763d;
  padding: 20px;
  margin-top: 20px;
  border-radius: 8px;
  font-size: 1.1rem;
}
.warning-message {
  background: #ffe88b;
  color: #000000;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

/* ================= Modal Styles ================= */
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  padding-top: 60px;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 700px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-align: center;
}

.modal-content input[type="password"],
.modal-content input[type="text"],
.modal-content input[type="number"] {
  width: calc(100% - 20px);
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.modal-content button {
  background-color: #0073aa;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.modal-content button:hover {
  opacity: 0.85;
}

/* Loader Overlay */
#loaderOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 18px;
}

.spinner {
  border: 4px solid #ddd;
  border-top: 4px solid #0073aa;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Developer Debug JSON */
.dev-json {
  background: #f7f7f7;
  border: 1px solid #ddd;
  padding: 10px;
  margin-top: 20px;
  overflow-x: auto;
}
.dev-json pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 12px;
  color: #333;
}
.error {
  color: #b00;
  font-weight: bold;
  margin-top: 20px;
}

/* ================= Multi-Step Modal Options ================= */
.step-content {
  display: none;
  padding-top: 15px;
  max-height: 400px;
  overflow-y: auto;
}

.step-content.active {
  display: block;
}

.option-group label {
  display: block;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.option-group label:hover {
  background-color: #f7f7f7;
  border-color: #aaa;
}

.radio-btn, .checkbox-btn {
  margin-right: 10px;
}

.not-sure-label {
  background-color: #eee;
  font-style: italic;
}

/* Next/Prev Buttons in Modal */
.navigation-btns button {
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin-top: 15px;
}
#prevBtn {
  background-color: #6c757d;
  color: white;
}
#prevBtn:hover {
  background-color: #5a6268;
}
#nextBtn {
  background-color: #0073aa;
  color: white;
}
#nextBtn:hover {
  background-color: #005177;
}
#submitBtn {
  background-color: #28a745;
  color: white;
}
#submitBtn:hover {
  background-color: #218838;
}

/* ================= Radio / Checkbox Styles ================= */
.vehicle-radio {
  display: block;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.vehicle-radio:hover {
  background-color: #f7f7f7;
  border-color: #aaa;
}
.vehicle-radio input {
  margin-right: 10px;
}

/* ================= Form Layout / Desktop ================= */
@media (min-width: 768px) {
  .inline-container {
    max-width: 95%;
  }
  .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: end;
  }
  .form-col-item {
    flex: 1;
    min-width: 0;
  }
  .form-col-item label {
    display: block;
    margin-bottom: 5px;
  }
  .form-col-item input,
  .form-col-item select {
    margin-bottom: 0;
  }
  .form-col-item.hybrid-checkbox {
    display: flex;
    align-items: flex-end;
  }
  .form-col-item.hybrid-checkbox label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: normal;
  }
  .form-col-item.hybrid-checkbox input[type="checkbox"] {
    width: auto;
    height: auto;
    margin-right: 5px;
    margin-bottom: 0;
  }
}
