.contact-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  background-color: #1a1a1a;
  border-radius: 15px 15px 0 0;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: 1001;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  box-sizing: border-box;
}

.contact-modal.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.contact-modal-content {
  display: flex;
  flex-direction: column;
  height: 80vh;
  max-height: 650px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background-color: #4d8cf6;
  color: white;
  border-radius: 15px 15px 0 0;
}

.contact-title {
  font-weight: bold;
  font-size: 18px;
  font-family: 'IBM Plex Mono', monospace;
}

.contact-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.contact-close:active {
  transform: scale(0.95);
}

.contact-body {
  flex: 1;
  padding: 20px;
  background-color: #232323;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
}

.required {
  color: #4d8cf6;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #444;
  border-radius: 8px;
  background-color: #333;
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  border-color: #4d8cf6;
  box-shadow: 0 0 0 2px rgba(77, 140, 246, 0.2);
  outline: none;
}

.form-control::placeholder {
  color: #777;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  background-color: #4d8cf6;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  display: block;
  width: 100%;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: #396fd2;
}

.submit-button:active {
  transform: scale(0.98);
}

.submission-message {
  text-align: center;
  padding: 30px 20px;
}

.success-icon {
  margin-bottom: 20px;
}

.success-message {
  color: #fff;
  font-size: 18px;
  line-height: 1.6;
  font-family: 'IBM Plex Mono', monospace;
}

@media screen and (min-width: 768px) {
  .contact-modal {
    left: auto;
    right: 20px;
    width: 450px;
    border-radius: 15px 15px 0 0;
  }

  .contact-modal-content {
    height: 700px;
  }
}


.social-contacts-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 1002;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.social-contacts-modal.open {
  opacity: 1;
  visibility: visible;
}

.social-contacts-modal-content {
  width: 90%;
  max-width: 480px;
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.social-contacts-modal.open .social-contacts-modal-content {
  transform: scale(1);
}

.social-contacts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: #4d8cf6;
  color: white;
}

.social-contacts-title {
  font-weight: bold;
  font-size: 18px;
  font-family: 'IBM Plex Mono', monospace;
}

.social-contacts-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.social-contacts-close:active {
  transform: scale(0.95);
}

.social-contacts-body {
  padding: 20px;
}

.social-contacts-subtitle {
  font-size: 16px;
  color: #aaa;
  margin: 0 0 15px 0;
  font-weight: normal;
  font-family: 'IBM Plex Mono', monospace;
}

.social-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-contact-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background-color: #232323;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s;
}

.social-contact-item:hover,
.social-contact-item:active {
  background-color: #333;
}

.social-contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-right: 15px;
}

.social-contact-icon svg {
  width: 24px;
  height: 24px;
}

.social-contact-name {
  flex: 1;
  font-size: 16px;
  font-family: 'IBM Plex Mono', monospace;
}

.social-contact-arrow {
  color: #666;
}



.social-contacts-footer {
  margin-top: 20px;
  text-align: center;
}

.contact-form-button {
  background-color: transparent;
  color: #4d8cf6;
  border: 1px solid #4d8cf6;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  transition: background-color 0.3s, color 0.3s;
  width: 100%;
}

.contact-form-button:hover {
  background-color: rgba(77, 140, 246, 0.1);
}

.contact-form-button:active {
  transform: scale(0.98);
}

@media screen and (min-width: 1024px),
screen and (min-width: 768px) and (max-width: 1023px) {
  .contact-modal {
    width: 600px;
    height: 80vh;
  }

  .social-contact-item-mobile {
    display: none;
  }

  .contact-modal-content {
    width: 100%;
    height: 100% !important;
    max-height: 100%;
  }

  .contact-body {
    min-height: 100%;
  }

  .submit-button {
    margin-bottom: 30px;
  }

  .form-group {
    flex-grow: 1;
  }

  #contactForm {
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .social-contact-item-desktop {
    display: none;
  }
}