.contactPage {
  display: flex;
  height: 100vh;
  max-width: 1920px;
  padding: 96px 20px 0px 241px;
  transition: padding 0.3s;
}

.contactList {
  position: relative;
  background: var(--white);
  box-shadow: 4px 0 6px 0 rgba(0, 0, 0, 0.08);
  overflow-y: auto;
  padding: 0 24px 32px 24px;
  flex: 0 0 450px;
  overflow-x: hidden;
}

.newContactBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 352px;
  height: 56px;
  align-self: center;
  margin: 12px;
  padding: 12px;
  border-radius: 10px;
  font-size: 21px;
  font-weight: 700;
  border: 1px solid var(--main-color);
  background: var(--main-color);
  color: var(--white);
  transition: background-color 0.15s ease;
}

.newContactBtn:hover {
  background: var(--light-blue);
  border-color: var(--light-blue);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.newContactBtnContainer {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding-top: 20px;
  background: white;
}

.newContactBtn img {
  width: 29px;
  margin: 0;
}

.contactDetails {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.contactDetailsHeader {
  width: 100%;
  align-items: center;
  display: flex;
  height: 20%;
  padding: 32px;
}

.contactDetailsHeader img {
  width: 100%;
  max-width: 700px;
}

.contactDetailsBody {
  display: flex;
  padding: 32px 40px;
  flex-direction: column;
  gap: 21px;
  opacity: 0;
  transform: translateX(220%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.showDetails {
  transform: translateX(0);
  opacity: 1;
}

.contactListItems {
  padding: 0 24px;
}

.alphaHeader {
  padding: 17px 36px;
}

.alphaDivider {
  width: 352px;
  border: 1px solid var(--color-placeholder);
  border-radius: 1px;
  margin: 4px 0 8px;
}

.contactItem {
  display: flex;
  align-items: center;
  gap: 35px;
  padding: 15px 24px;
  border-radius: 10px;
  cursor: pointer;
  width: 352px;
  min-width: 0;
  overflow-wrap: break-word;
  text-overflow: ellipsis;
}

.contactItem.is-selected {
  background: var(--main-color) !important;
  color: var(--white) !important;
}

.contactItem:hover {
  background: bottom linear-gradient(#f9f9f9, #f0f0f0);
}

.contactAvatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex: 0 0 42px;
  border: #fff 2px solid;
}

.contactText {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contactText .contactEmail {
  color: var(--color-link);
  overflow-wrap: anywhere;
}

.detailsTop {
  display: flex;
  align-items: center;
  gap: 54px;
}

.detailsAvatar {
  width: 120px;
  min-width: 120px;
  height: 120px;
  min-height: 120px;
  border-radius: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 500;
  font-size: 47px;
  border: #fff 3px solid;
  box-shadow: 0px 0px 4px 0 rgba(0, 0, 0, 0.1);
}

.detailsName {
  font-size: 47px;
  font-weight: 500;
}

.detailsActions {
  display: flex;
  gap: 32px;
  margin-top: 8px;
  color: var(--color-icon);
}

.detailsAction {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--main-color);
  transition: color 0.15s ease;
  flex: 0 0 auto;
  width: 57.5px;
}

.detailsAction:hover {
  color: var(--light-blue);
  font-weight: 700;
}

.detailsIcon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
}

.detailsAction .detailsIcon * {
  fill: currentColor !important;
}

.detailsSection {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sectionTitle {
  font-weight: 500;
  margin-top: 8px;
  margin-bottom: 24px;
}

.infoRow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.label {
  color: #000000;
  font-weight: 700;
}

.link {
  color: var(--color-link);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 5000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 6002;
}

.overlay-panel {
  position: relative;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-columns: 42% 58%;
  height: 594px;
  max-height: 594px;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}

.overlay.open .overlay-panel {
  transform: translateY(0);
}

.overlay-left {
  background: #2a3647;
}

.overlay-left > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#addContactMobileOverlay {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.overlay-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 16px;
  overflow-x: hidden;
  width: 745px;
}

.overlay-title {
  font-size: 32px;
  font-weight: 700;
}

.overlay-close {
  align-self: flex-end;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transform: translateX(-80px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
}

.overlay-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.overlay-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 4px solid #fff;
  transform: translateY(-40px);
}

.avatar img {
  width: 120px;
  height: 120px;
  opacity: 0.8;
}

#avatar-mobile {
  display: none;
}

#openAddContact {
  cursor: pointer;
}

.add-contact-overlay-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  transform: translateX(-80px);
  gap: 32px;
  width: fit-content;
  margin: auto;
}

.add-contact-overlay-form {
  width: 320px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
