/* KeywordStat keyword search CTA */
.keywordstat-search-cta {
  box-sizing: border-box;
  width: 100%;
  margin: 24px 0;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

/* Heading and description */
.keywordstat-search-heading {
  margin-bottom: 20px;
}

.keywordstat-search-heading h3 {
  margin: 0 0 8px;
  color: #334155;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
}

.keywordstat-search-heading p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

/* Search input and button */
.keywordstat-search-form {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  margin: 0 0 20px;
}

.keywordstat-search-form input {
  flex: 1;
  min-width: 0;
  height: 56px;
  box-sizing: border-box;
  padding: 0 20px;
  border: 1px solid #d8e0ea;
  border-radius: 12px;
  background: #ffffff;
  color: #334155;
  font-family: inherit;
  font-size: 17px;
  outline: none;
  box-shadow: none;
}

.keywordstat-search-form input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.keywordstat-search-form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Primary action button */
.keywordstat-search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.keywordstat-search-form button:hover {
  background: #1d4ed8;
}

/* Four equally sized feature tags */
.keywordstat-search-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.keywordstat-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 40px;
  padding: 8px 6px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f5f9ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

/* Responsive layout */
@media (max-width: 640px) {
  .keywordstat-search-cta {
    padding: 18px;
  }

  .keywordstat-search-heading h3 {
    font-size: 18px;
  }

  .keywordstat-search-form {
    flex-direction: column;
  }

  .keywordstat-search-form input,
  .keywordstat-search-form button {
    width: 100%;
  }

  .keywordstat-search-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}



/* KeywordStat — mobile search field fix */
@media (max-width: 640px) {
  .keywordstat-search-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .keywordstat-search-form input {
    display: block;
    width: 100% !important;
    min-width: 0;
    height: 56px !important;
    min-height: 56px;
    box-sizing: border-box;
    padding: 0 16px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    line-height: normal;
  }

  .keywordstat-search-form input::placeholder {
    font-size: 16px;
  }

  .keywordstat-search-form button {
    width: 100% !important;
    min-height: 56px;
    height: 56px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 16px;
  }
}
