

.cmobile-nbn-search {
/*  max-width: 600px;
  margin: 0 auto;
*/
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.nbn-search-container {
  position: relative;
  margin-bottom: 2rem;
}

.search-input-wrapper {
  position: relative;
}


.nbn-search-input {
  width: 100%;
  padding: 20px 40px 20px 16px;
  height: 56px;
  font-size: 16px;
  line-height: 1.5;
  border: 2px solid #ddd;
  border-radius: 12px;
  transition: border-color 0.2s ease;
    color: rgb(54, 54, 54);
    outline-color: rgb(54, 54, 54);
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

::placeholder {
color: #646464;
}

.nbn-search-input:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
}

/* Loading spinner */
.search-spinner {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.nbn-search-input.loading + .search-spinner {
  opacity: 1;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path fill="none" stroke="%23999" stroke-width="2" d="M12,1 a11,11 0 1,0 11,11" stroke-linecap="round"><animateTransform attributeName="transform" type="rotate" from="0 12 12" to="360 12 12" dur="1s" repeatCount="indefinite"/></path></svg>') no-repeat center;
}

/* Results dropdown */
.nbn-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
  display: none;
}

.nbn-search-input[aria-expanded="true"] + .search-spinner + .nbn-search-results {
  display: block;
}

.result-item {
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.result-item:hover,
.result-item.active {
  background: #f0f7ff;
}

.no-results,
.search-error {
  padding: 12px 16px;
  color: #666;
  font-style: italic;
}

.search-error {
  color: #d63638;
}

/* Serviceable messages */
.nbn-search-messages {
  margin-top: 1.5rem;
}

.nbn-serviceable-message,
.nbn-not-serviceable-message {
  padding: 16px 20px;
  border-radius: 4px;
  animation: fadeIn 0.3s ease;
}

.nbn-serviceable-message {
  background: #edfaef;
  border-left: 4px solid #00a32a;
}

.nbn-not-serviceable-message {
  background: #fcf0f1;
  border-left: 4px solid #d63638;
}

.nbn-search-messages h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.nbn-search-messages p {
  margin: 0;
  font-size: 15px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .nbn-search-input {
    /*font-size: 15px;
    padding: 10px 36px 10px 12px;*/
  }
  
  .nbn-search-messages h3 {
    font-size: 16px;
  }
  
  .nbn-search-messages p {
    font-size: 14px;
  }
}
