.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.modal-close-btn-responsiv{
  display:none;
}

.contact-modal-overlay.open {
  display: flex;
}

.add-contact-modal {
  display: flex;
  height: 592px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  font-family: "Inter", sans-serif;
  animation: slideInModal 0.3s ease-out;
}

@keyframes slideInModal {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.add-contact-modal-left {
  background-color: #2a3647;
  padding: 66px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  border-top-left-radius: 20px;
  border-bottom-left-radius:20px;
}

.add-contact-modal-left .modal-logo {
  width: 55px;
  height: auto;
  margin-bottom: 12px;
}

.add-contact-modal-left h2 {
  font-size: 47px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: white;
}

.add-contact-modal-left .modal-subtitle {
  font-size: 20px;
  font-weight: 400;
  margin: 0;
  color: white;
}

.modal-title-divider {
  width: 90px;
  height: 3px;
  background-color: #29abe2;
  margin-top: 16px;
}

.add-contact-modal-right {
  background-color: white;
  padding: 137px 38px 135px 83px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  position: relative;
  border-top-right-radius: 20px;
  border-bottom-right-radius:20px;
}

.modal-content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.modal-buttons-wrapper {
  display: flex;
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #24303a;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.125s ease;
}

.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}
.modal-close-btn-responsive:hover {
  background: rgba(0, 0, 0, 0.08);
}

.modal-badge-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-contact-badge {
  width: 120px;
  height: 120px;
}

.modal-inputs-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.add-contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 360px;
}

.contact-input-group {
  position: relative;
  display:flex;
  align-items: center;
  padding:12px 21px;
  border: 1px solid #d1d1d1;
  border-radius: 10px;
}

.contact-input-group input {
  width: 422px;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  color: #2a3647;
  border-style:none;
  flex:1;
}

.contact-input-group input::placeholder {
  color: #d1d1d1;
}

.contact-input-group input:focus {
  border-color: #2a3647;
}

.contact-input-group .input-icon {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.modal-form-buttons {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

.btn-cancel-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  background: white;
  color: #2a3647;
  border: 1px solid #2a3647;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  transition: all 0.125s ease;
}

.btn-cancel-contact:hover {
  border-color: #29abe2;
  color: #29abe2;
}

.btn-cancel-contact .cancel-x {
  font-size: 20px;
  font-weight: 400;
}

.btn-create-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 10px;
  background: #2a3647;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.125s ease;
}

.btn-create-contact:hover {
  background: #091931;
}

.edit-contact-badge {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 47px;
  font-weight: 500;
  color: white;
  border: 3px solid white;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.btn-delete-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  background: white;
  color: #2a3647;
  border: 1px solid #2a3647;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  transition: all 0.125s ease;
}

.btn-delete-contact:hover {
  border-color: #29abe2;
  color: #29abe2;
}

.btn-save-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 10px;
  background: #2a3647;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.125s ease;
}

.btn-save-contact:hover {
  background: #091931;
}

.btn-save-contact img {
  width: 16px;
  height: 12px;
  filter: brightness(0) invert(1);
}

input:focus {
  outline: none;
  box-shadow: none;
  border-color: inherit;
}
.contact-error-message {
  color: #e60026;
  font-size: 14px;
  margin-top: 4px;
  font-family: "Inter", sans-serif;
  visibility: hidden;
}
