.infrabyte-form-section {
  margin: 0 auto;
}

.infrabyte-form-section input[type="text"],
.infrabyte-form-section input[type="email"],
.infrabyte-form-section input[type="tel"],
.infrabyte-form-section textarea,
.infrabyte-form-section select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.infrabyte-form .infrabyte-form-section span {
  display: block;
}

.infrabyte-form .hidden {
  display: none;
}

.infrabyte-form .option-buttons {
  display: flex;
  justify-content: stretch;
}

.infrabyte-form .sn-option-content {
  border: solid 1px #c7c7c7;
  padding: 10px;
  margin-bottom: 10px;
}

.infrabyte-form .option-button {
  background-color: #f2f2f2;
  border: 1px solid #c7c7c7;
  color: #000000;
  border-bottom: none;
  border-radius: 0;
  cursor: pointer;
  padding: 6px 10px;
  transition: background-color 0.3s ease;
  width: calc(100% / 3);
  border-left: 0;
  display: inline-block;
  font-size: 11px;
  line-height: 1.3;
}

.infrabyte-form .option-button:first-child {
  border-left: 1px solid #c7c7c7;
}

.infrabyte-form .option-button.active {
  background-color: #727272;
  border-bottom: 1px solid #fff;
  color: #fff;
}

.infrabyte-form .option-button:hover {
  background-color: #727272;
  color: #fff;
}

.d-none {
  display: none;
}

.infrabyte-form br {
  display: none;
}

.infrabyte-form button {
  border-radius: 0;
  background: #727272;
  border: 0;
  width: 100%;
  padding: 10px;
}

.infrabyte-form .find-vehicle-button {
  background-color: #f2f2f2;
  color: #000000;
  border: none;
  padding: 6px 10px;
  width: 100%;
}

.infrabyte-form .find-vehicle-button:hover {
  background-color: #ddd;
  cursor: pointer;
}

.sn-spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.sn-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #ff8d00;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: sn-spin 1s linear infinite;
}

@keyframes sn-spin {
  to {
    transform: rotate(360deg);
  }
}

.sn-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  min-width: 250px;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10000;
  /* Ensure the toast is on top */
  opacity: 0;
  transform: translateY(20px);
  animation: sn-toast-in 0.3s forwards;
}

.sn-toast-success {
  background-color: #4caf50;
  color: white;
}

.sn-toast-error {
  background-color: #f44336;
  color: white;
}

.sn-toast-message {
  flex-grow: 1;
}

.sn-toast-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 10px;
}

@keyframes sn-toast-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sn-toast-out {
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* for horizontal */
.infrabyte-form-section.sn-horizontal {
  max-width: 100%;
}

.infrabyte-form-section.sn-horizontal .infrabyte-form {
  display: flex;
  flex-wrap: wrap;
}

.infrabyte-form-section.sn-horizontal input,
.infrabyte-form-section.sn-horizontal select,
.infrabyte-form-section.sn-horizontal button {
  width: 25%;
}

.infrabyte-form-section.sn-horizontal .infrabyte-form div.option-buttons {
  width: 100%;
  display: flex;
  justify-content: stretch;
}


/* for autocomplete */
/* Add this to your plugin or theme's CSS file */
.sn-autocomplete-dropdown {
  position: absolute;
  border: 1px solid #ccc;
  background: #fff;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  width: 100%;
}

.sn-autocomplete-dropdown li {
  padding: 8px;
  cursor: pointer;
}

.sn-autocomplete-dropdown li:hover {
  background-color: #eee;
}