.apicheckcontactformMessage {
  background: #ff000091;
  padding: 10px 20px;
  margin-top: 20px;
  color: #222;
}

.apicheck-search-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  transition: border-color 0.3s ease;
  outline: none;
}

.apicheck-search-input:focus {
  border-color: #6094db;
}

.apicheck-results {
  padding-right: 50px;
  max-height: 300px;
  overflow-y: auto;
  box-sizing: border-box;
  border: 1px solid #e0e0e0;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.group-heading {
  background-color: #f7f7f7;
  color: #333;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 5px 10px;
  border-bottom: 1px solid #e0e0e0;
}

.suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: #e6e6e6;
}

.highlight {
  background-color: #ffeb3b !important;
  font-weight: bold;
}

.apicheck-spinner {
  position: absolute;
  right: 45px;
  top: 38px;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid #6094db;
  animation: spin 1s linear infinite;
  display: none;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}
.select-items li {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.select-items li:last-child {
  border-bottom: none;
}

.select-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
}

.selected-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select-arrow {
  font-size: 12px;
  color: #666;
  flex-shrink: 0;
}

.select-arrow.rotated {
  transform: rotate(180deg);
}

.select-items {
  padding: 0px;
  display: none;
  position: absolute;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
  z-index: 99;
  left: 0;
  margin: 0;
  right: 0;
  max-height: 250px;
}

.select-items.show {
  display: block;
}

.select-items li {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #fff;
}

.select-items li:hover {
  background-color: #ddd;
}

.flag-icon {
  width: 25px;
  height: 15px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

.custom-select .select-items {
  max-height: 250px;
  overflow-y: scroll;
}

.custom-select .select-items::-webkit-scrollbar {
  background: white;
  width: 8px;
}

.custom-select .select-items::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.custom-select .select-items::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.form-group {
  margin-bottom: 15px;
  position: relative;
}

.form-group label {
  display: block;
}

.form-group input[type="text"]:focus {
  border-color: #007bff;
}

.inline-group {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.inline-group > div {
  flex: 1;
}

.inline-group label,
.inline-group input[type="text"] {
  display: block;
  width: 100%;
}

.inline-group input[class*="postalcode"] {
  text-transform: uppercase;
}

.form-container {
  box-sizing: border-box;
  max-width: 600px;
  margin: 0 auto;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  min-height: 400px;
}

.apicheck-clear-button {
  position: absolute;
  top: 34px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 18px;
  color: #aaa;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  line-height: 1;
}

.apicheck-clear-button:hover {
  background-color: #eee;
  color: #555;
}

input[readonly] {
  background-color: #f0f0f0;
  cursor: not-allowed;
}

.apicheckcontactform .apicheckcontactformMessage {
  display: block;
  padding: 10px;
  background-color: #f44336;
  color: white !important;
  font-weight: bold;
  border-radius: 5px;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Responsive Breakpoints */
@media (max-width: 600px) {
  .inline-group {
    flex-direction: column;
  }

  .inline-group > div {
    margin-right: 0;
    width: 100%;
  }

  .form-container {
    padding: 10px;
  }

  .form-group input[type="text"] {
    width: 100%;
    box-sizing: border-box;
  }
}

select[id$="_housenumberAddition_select"] {
  width: 100%;
  font-size: 1em;
  padding: 8px 12px;
  box-sizing: border-box;
  line-height: 1.5;
  height: 42px; /* match input height */
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f5f5f5;
  margin-top: 1px !important;
}

.apicheck-lookup-spinner-wrapper {
  position: relative;
}

.apicheck-lookup-spinner-wrapper input {
  width: 100%;
  padding-right: 36px; /* Increased to fit slightly larger spinner */
  box-sizing: border-box;
}

.apicheck-lookup-spinner-wrapper .apicheck-lookup-spinner {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top: 2px solid #0073aa;
  border-radius: 50%;
  animation: apicheck-spinner-rotate 0.6s linear infinite;
  pointer-events: none;
  display: none; /* Hidden by default */
}

@keyframes apicheck-spinner-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
