/*
 * Component: Sidebar
 * This is the single source of truth for the sidebar,
 * including the contact form, search, and social icons.
*/

.contactCollection {
  display: flex;
  gap: 20px;
  flex-direction: column;
  position: sticky;
  top: 100px;
}

.sidebar {
  width: 320px;
  background: var(--color-white);
  border-radius: 15px;
  padding: 20px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- Search box --- */
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-gray-border-light);
  padding: 8px;
  border-radius: 6px;
}

.search-box input {
  background-color: var(--color-gray-light);
  border: none;
  outline: none;
  flex: 1;
}

/* --- Contact form --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form h3 {
  margin: 0 0 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-gray-border-light);
  border-radius: 6px;
}

.contact-form button {
  background: var(--color-brand-dark);
  color: var(--color-white);
  border: none;
  padding: 10px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.contact-form button:hover {
  background: var(--color-brand-yellow-dark);
  color: var(--color-black);
}

/* --- Social icons --- */
.social-icons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-icons a {
  text-decoration: none;
  font-size: 20px;
  padding: 10px;
  border-radius: 15px;
}

.social-icons a img {
  width: 25px;
}

.social-icons .call { /* 'call' class was used here */
  background-color: var(--color-brand-yellow-dark);
}

.social-icons .whats {
  background-color: var(--color-whatsapp);
}

.social-icons .linkedin {
  background-color: var(--color-social-linkedin);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .sidebar {
    width: 100%;
    position: relative;
    top: auto;
  }
  
  .contactCollection {
    position: relative;
    top: auto;
    width: 100%;
  }
}