body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: #f7f9fc;
  color: #333;
}

h1 {
  text-align: center;
  margin: 20px 0;
  color: #2c3e50;
  font-size: 2rem;
}

h2 {
  text-align: center;
  margin: 20px 0 10px;
  color: #34495e;
}

.form-section, .search-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 15px;
  flex-wrap: wrap;
}

input[type="text"], input[type="hidden"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 220px;
  outline: none;
  font-size: 14px;
  transition: 0.3s;
}

input[type="text"]:focus {
  border-color: #3498db;
  box-shadow: 0 0 4px rgba(52, 152, 219, 0.4);
}

button {
  padding: 10px 15px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 14px;
}

button:hover {
  background: #2980b9;
}

#contactList {
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  list-style-type: none;
}

#contactList li {
  background: white;
  margin: 8px 0;
  padding: 12px 15px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s ease;
}

#contactList li:hover {
  transform: scale(1.02);
}

#contactList li div {
  display: flex;
  gap: 5px;
}

#contactList li button {
  background: #e74c3c;
}

#contactList li button:hover {
  background: #c0392b;
}

#contactList li button:first-child {
  background: #f39c12;
}

#contactList li button:first-child:hover {
  background: #d68910;
}

.search-section input {
  width: 250px;
}
