/* General Reset and Body Styling */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f8f9fa;
}

/* Section untuk input form */
#inputform {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30vh;
  background-color: #f8f9fa;
}

#inputform img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Form container styling */
.form-container {
  background: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-top: 20px;
}

.form-group label {
  font-weight: bold;
}

.form-group button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.form-group button:hover {
  background-color: #0056b3;
}

.form-group {
  margin-bottom: 15px;
}

.left-column,
.right-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Input icons styling */
.input-icons {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icons input[type="text"] {
  flex: 1;
  padding-right: 100px;
}

.input-icons .get-location-button,
.input-icons .clear-button {
  position: absolute;
  border: none;
  background: none;
  padding: 6px 10px;
  cursor: pointer;
}

.input-icons .get-location-button {
  right: 30px;
  background-color: #28a745;
  color: white;
}

.input-icons .clear-button {
  right: 0;
  background-color: #6c757d;
  color: white;
}

/* Flexbox for form layout */
.flex-half {
  flex: 1;
  min-width: 48%;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
}

/* Sidebar Styling */
.sidebar {
  width: 250px;
  background-color: #f8f9fa;
  padding: 20px;
  color: #333;
  display: flex;
  flex-direction: column;
}

.progress-container {
  position: relative;
  background-color: #e0e0e0;
  border-radius: 25px;
  height: 30px;
  margin-bottom: 20px;
}

.progress-bar {
  background-color: #00bfff;
  width: 50%; /* Adjust with JavaScript */
  height: 100%;
  border-radius: 25px;
  z-index: 1;
  position: relative;
}

.progress-percentage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  color: white;
  z-index: 2; /* Harus lebih tinggi dari progress-bar */
}

/* Main content steps */
.main-content {
  flex: 1;
  max-width: calc(100% - 270px); /* Mengurangi lebar sidebar */
  padding: 20px;
  display: none; /* Hide by default */
}

.main-content.active {
  display: block;
}

.step-title {
  font-size: 24px;
  margin-bottom: 20px;
}

.form-check {
  position: relative;
  z-index: 1000;
  pointer-events: auto;
  margin-bottom: 20px;
}

.form-check-input {
  margin-right: 10px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.form-check-label {
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  z-index: 1001;
  pointer-events: auto;
}

.option-icon {
  margin-right: 10px;
  font-size: 18px;
  position: relative;
  z-index: 1000;
}

.question-block {
  padding: 20px;
  margin-bottom: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Navigation styling for steps */
.nav {
  padding-left: 0;
  list-style: none;
}

.nav-item {
  margin-bottom: 10px;
}

.nav-link {
  color: #333;
  font-size: 16px;
  text-decoration: none;
}

.nav-link.completed {
  color: #28a745;
}

.nav-link.completed i {
  color: #28a745;
}

.nav-item.active .nav-link {
  font-weight: bold;
  color: #007bff;
}

.small-text {
  font-size: 14px;
  color: #6c757d;
}

.mt-4 {
  margin-top: 1.5rem;
}

.btn-primary {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.sub-nav {
  padding-left: 20px;
}

.d-none {
  display: none;
}

/* Input wrapper for dynamic search */
.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper input {
  padding-right: 40px;
  z-index: 1;
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  z-index: 0;
  pointer-events: none;
}

.autocomplete-suggestions {
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  background-color: #fff;
  position: absolute;
  width: 100%;
  z-index: 1000;
  margin-top: 5px;
  border-radius: 4px;
}

.suggestion-item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
}

.suggestion-item:hover {
  background-color: #f0f0f0;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 25px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-float img {
  width: 40%;
  height: 40%;
}

/* Media Queries */
@media (max-width: 600px) {
  .photo-item img,
  .add-more {
    width: 60px;
    height: 60px;
  }

  .sidebar {
    width: 100%;
    background-color: #f8f9fa;
    padding: 20px;
    margin-right: 20px;
  }

  .main-content {
    padding: 10px;
  }

  .whatsapp-float {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .whatsapp-float img {
    width: 30%;
    height: 30%;
  }
}

@media (min-width: 768px) {
  .main-content {
    max-width: 70%;
    margin: 0 auto;
  }
}

.container-fluid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
