.divo-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.divo-modal.active {
  display: block;
}

.divo-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.divo-modal-content {
  position: relative;
  max-width: 450px;
  margin: 5vh auto;
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  z-index: 2;
}

.divo-modal-close {
  position: absolute;
  right: 15px;
  top: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
.divo-modal-contact-title {
  display: flex;
  justify-self: center;
}

.divo-contacts {
  text-align: center;
  margin-bottom: 20px;
  font-size: 18px;
}
.divo-contact-phone {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
}

.divo-contacts a {
  display: block;
  color: #f57840;
  font-weight: 500;
  margin-bottom: 6px;
}
.divo-contacts a,
.divo-contacts a:hover,
.divo-contacts a:focus,
.divo-contacts a:active,
.divo-contacts a:visited {
  text-decoration: none !important;
}
.rotated-phone {
  color: #f57840; /* оранжевый цвет */
  transform: scaleX(-1); /* зеркально по горизонтали, «разворачивает» трубку */
}
.divo-contact-phone-icon {
  display: flex;
  align-items: center;
  gap: 5px;
}
.divo-contact-email-icon {
  display: flex;
  justify-self: center;
  align-items: center;
}
.email-icon {
  color: #f57840; /* можно такой же цвет, как у телефона */
}
.divo-modal-title {
  display: flex;
  justify-self: center;
  text-align: center;
  font-weight: 700;
  font-size: 26px;
  width: 350px;
  line-height: 1;
  margin-top: 10px;
}
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
.social-circle {
  width: 44px;
  height: 44px;
  border: 1.5px solid #f57840;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 6px;
  color: #f57840;
  text-decoration: none;
}

.social-circle i {
  font-size: 18px;
  color: #f57840;
}

.divo-form {
  margin-top: 15px;
}

.divo-form input,
.divo-form textarea {
  margin-bottom: 10px;
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
}
.modal-contact-input {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-contact-label {
  margin-left: 15px;
}

.divo-form button {
  width: 100%;
  background: #f57840;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
}

.divo-open-modal {
  background: #f57840;
  color: #fff;
  padding: 10px 22px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
}
@media (max-width: 768px) {
  .divo-modal-content {
    max-width: 90%;
    padding: 24px;
    margin: 4vh auto;
  }

  .divo-modal-title {
    display: flex;
    justify-self: center;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    margin-top: 10px;
  }

  .divo-contact-phone {
    display: flex;
    justify-content: space-around;
    text-decoration: none;
  }
}
@media (max-width: 480px) {
  .divo-modal-content {
    max-width: 94%;
    padding: 18px;
    margin: 3vh auto;
  }

  .divo-modal-close {
    right: 12px;
    top: 8px;
    font-size: 22px;
  }

  .divo-modal-contact-title {
    font-size: 20px;
    text-align: center;
  }

  .divo-modal-title {
    font-size: 20px;
    margin-top: 15px;
  }

  .divo-contacts {
    font-size: 16px;
  }

  .social-icons {
    gap: 14px;
    margin-top: 16px;
  }

  .social-circle {
    width: 40px;
    height: 40px;
  }

  .social-circle i {
    font-size: 16px;
  }

  .divo-form input,
  .divo-form textarea {
    padding: 10px;
    font-size: 15px;
  }

  .divo-form button {
    padding: 12px;
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .divo-modal-content {
    max-width: 100%;
    height: 100vh;
    border-radius: 0;
    padding: 18px;
  }
}
