[multiple]:focus, [type="date"]:focus, [type="datetime-local"]:focus, [type="email"]:focus, [type="month"]:focus, [type="number"]:focus, [type="password"]:focus, [type="search"]:focus, [type="tel"]:focus, [type="text"]:focus, [type="time"]:focus, [type="url"]:focus, [type="week"]:focus, select:focus, textarea:focus {
    --tw-ring-color: rgb(55, 63, 81) !important;
    border-color: rgb(55, 63, 81) !important;
}

/* Postcode Autocomplete Styles */
.postcode-autocomplete {
    position: relative;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-height: 250px;
    overflow-y: auto;
    display: none;
    width: 100%;
}

.postcode-autocomplete.show,
.postcode-autocomplete:not(:empty) {
    display: block;
}

.postcode-suggestions {
    list-style: none;
    margin: 0;
    padding: 0;
}

.postcode-suggestion {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    color: #333;
    background: #fff;
}

.postcode-suggestion:hover,
.postcode-suggestion.active {
    background-color: rgba(55, 63, 81, 0.2) !important;
    color: rgb(55, 63, 81) !important;
}

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

/* Ensure the lookup field container has relative positioning */
.lookup_field {
    position: relative;
}

/* Make sure the input field has proper positioning */
#idpc_input {
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

/* Style adjustments for the input field when autocomplete is active */
#idpc_input:focus + .postcode-autocomplete {
    display: block;
}

/* Hide the dropdown when the button is present */
.lookup_field .postcode-autocomplete {
    left: 0;
    right: auto;
    width: 100% /* Adjust based on button width */
}

/* If button is after the autocomplete, adjust positioning */
.lookup_field .postcode-autocomplete + .btn-lookup {
	position: relative;
	z-index: 1;
	display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .postcode-autocomplete {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .postcode-suggestion {
        padding: 12px 15px;
        font-size: 16px;
    }
}
@media (min-width: 600px) {
  #lookup_field input {
    max-width: 100%;
  }
}