#perplexity-search-widget {
  max-width: 80%;
  margin: 50px auto;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#perplexity-search-widget h3 {
  margin-bottom: 20px;
  font-size: 1.5em;
  text-align: center;
  color: #333;
}

#perplexity-search-widget form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

#perplexity-search-widget input[type="text"] {
  flex: 1;
  padding: 12px 15px;
  font-size: 1em;
  border: 1px solid #ccc;
}

#perplexity-search-widget button {
  padding: 12px 20px;
  background-color: #803426;
  border: none;
  color: white;
  font-size: 1em;
  cursor: pointer;
border-radius:3px;
  transition: background-color 0.3s;
}

#perplexity-search-widget button:hover {
  background-color: #ec932c;
}

#perplexity-answer {
  margin-top: 25px;
  padding: 15px;
  background: #fff;
  border-left: 4px solid #ec932c;
  border-radius: 8px;
  display: none; /* Hidden by default */
  overflow: hidden; /* No scrollbars */
}
#perplexity-answer.error {
  color: red;
  border-left-color: red;
}
#perplexity-answer .result-item {
  margin-bottom: 15px;
}
#perplexity-answer .result-item a {
  color: #803426;
  text-decoration: none;
}
#perplexity-answer .result-item p {
  margin: 5px 0 0;
}


@media (max-width: 768px) {
#perplexity-search-widget{max-width:100%;}
  .g-recaptcha {
    margin: 0px auto;
    transform: scale(0.88);
  }

  #perplexity-search-widget button {
    width: 100%;
  }
}