body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: hsl(0, 0%, 96%);
}

.hero {
  background: #ffffff;
  padding: 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  color: #002556;
}

.hero p {
  color: #555;
  margin-top: 10px;
}

/* Disclaimer Note */
.disclaimer-note {
  background-color: #ffffff;
  padding-top: 2rem;
}
.disclaimer-note p{
  background-color: #e3ecf0;
  color: #002556;
  padding: 1rem 2rem;
  margin: auto;
  /* border: 1px solid #ffe082; */
  border-radius: 8px;
  max-width: 800px;
  font-size: 0.95rem;
}

/* Dropdown container */
.search-bar form {
  display: flex;         /* keep input + button on one line */
  max-width: 600px;
  width: 100%;
  position: relative;
}

.search-wrapper {
  position: relative;
  flex: 1;               /* take all available space except button */
  width: auto;             /* override width 100% to prevent doubling */
}

.search-bar {
  padding-top: 30px;
  padding-bottom: 30px; 
  background: #ffffff;
  /* border-bottom: 1px solid #ddd; */
  display: flex;
  justify-content: center; 
}

.search-bar input {
  width: 100%;           /* fill the search-wrapper */
  padding: 0.6rem 1rem;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 4px 0 0 4px;
}

.search-bar button {
  padding: 0.6rem 1.2rem;
  border: 1px solid #ccc;
  background-color: #002556;
  color: #fff;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

/* Results box */
.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Each result item */
.autocomplete-results li {
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 0.88rem;
  border-bottom: 1px solid #eee;
}

.autocomplete-results li:hover {
  background-color: #f1f1f1;
}


.results-section {
  background-color: #ffffff;
  /* max-width: 1100px; */
  margin: 0 auto;
  padding: 2rem;
}

.competitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.competitor-card {
  background-color: #eceff0;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.competitor-card:hover {
  transform: scale(1.07); /* ✅ makes it slightly bigger */
  box-shadow: 0 4px 16px rgba(0,0,0,0.1); /* optional: enhance hover effect */
}

.company-logo {
  max-height: 60px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.company-info h3 a {
  margin: 0;
  font-size: 1.1rem;
  color: #002556;
  text-decoration: none;
}

.company-info p {
  margin: 4px 0;
  font-size: 0.8rem;
  color: #444;
}

.company-info p a {
  color: rgb(140, 138, 138);
  text-decoration: none;
  font-size: 0.9rem;
}

.company-info a:hover {
  text-decoration: underline;
}

.error {
  text-align: center;
  color: red;
  font-weight: bold;
}

/* Tool Info Section */
.tool-info {
  background-color: #eceff0;
  border-top: 1px solid #ddd;
  padding: 2rem 3rem;
  text-align: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.tool-info h2 {
  color: #002556;
  margin-bottom: 2rem;
  font-size: 1.6rem;
}

.tool-info p {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .tool-info{
    margin-top: 0;
    margin-bottom: 2rem;
  }

  .tool-info h2 {
    font-size: 1.5rem;
  }

  .tool-info p {
    font-size: 0.9rem;
  }
}

/* Make it vertical on small screens */
@media (max-width: 768px) {

  .hero h1 {
    font-size: 1.5rem;
}

  .hero p {
    font-size: 0.8rem;
  }

  .disclaimer-note p {
    font-size: 0.75rem;
    width: 80%;
  }

  .search-bar form{
    width: 80%;
}

.search-bar{
    font-size: 0.8rem;
  }

.company-info h3 a {
    font-size: 1rem;
}

.company-info p {
    font-size: 0.7rem;
}
}
