.modal-form {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--gray-500);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s var(--move);
  pointer-events: none;
  z-index: 20;
}

.modal-form .btn-outline:hover {
  border-color: var(--secondary);
}

.modal-form[data-visible="false"] {
  opacity: 1;
  pointer-events: all;
}

.modal-form__content {
  background-color: white;
  padding: 40px 24px 0;
  border-radius: 8px;
  max-width: 1164px;
  height: 97%;
  width: 97%;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: scale(0.8);
  opacity: 0; 
  transition: transform, opacity, 0.3s var(--move);
  overflow: hidden;
}

@media screen and (min-width: 770px) {
  .modal-form__content {
    height: 90vh;
    max-height: 773px;
  }
}

@media screen and (min-width: 1026px) {
  .modal-form__content {
    padding: 24px 40px 0;
  }
}

.modal-form[data-visible="false"] .modal-form__content {
  transform: scale(1);
  opacity: 1; 
}

.modal-form__top {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

@media screen and (min-width: 770px) {
  .modal-form__top {
    align-items: center;
  }
}

.modal-form__header {
  flex-wrap: wrap;
  display: flex;
}

.modal-form__divider {
  margin: 0 24px;
  border-right: 1px solid var(--gray-200);
}

.modal-form__title {
  font-weight: 700;
  color: var(--primary);
}

.modal-form__subtitle {
  font-weight: 600;
  color: var(--gray-500);
}

@media screen and (max-width: 770px) {
  .modal-form__subtitle {
    margin-top: 8px;
    width: 100%;
  }
}

.modal-form__main {
  padding-top: 16px;
  padding-right: 20px;
  overflow-y: auto;
  height: 90%;
}

@media screen and (min-width: 770px) {
  .modal-form__main {
    height: 96%;
    padding-right: 35px;
  }
}

@media screen and (max-width: 1026px) {
  .modal-form__main {
    padding-bottom: 60px;
  }
}

.modal-form__main::-webkit-scrollbar {
  width: 4px;
}
 
.modal-form__main::-webkit-scrollbar-track {
  background: var(--gray-200);
  border-radius: 100px;
}
 
.modal-form__main::-webkit-scrollbar-thumb {
  border-radius: 100px;
  background-color: var(--primary);
}

@media screen and (max-width: 770px) {
  .modal-form__close svg {
    transform: translateY(-100%);
  }
}

.modal-form__main-text {
  margin-top: 24px;
}

.modal-form__main-info {
  margin-top: 24px;
  font-size: 14px;
  text-align: end;
}

.modal-form__main-divider {
  margin: 24px 0;
  border-top: 1px solid var(--gray-200);
}

.modal-form__main-fields {
  display: grid;
  gap: 24px;
}

@media screen and (min-width: 770px) {
  .modal-form__main-fields .c-field:first-of-type {
    grid-column: span 1;
  }
  
  .modal-form__main-fields .c-field:nth-of-type(2) {
    grid-column: span 1;
  }
  
  .modal-form__main-fields .c-field:nth-of-type(3) {
    grid-column: span 2;
  }
  
  .modal-form__main-fields .c-field:last-of-type {
    grid-column: span 2;
  }
}

.modal-form__main-form-actions {
  gap: 12px;
  display: grid;
  margin-top: 24px;
}

@media screen and (min-width: 1026px) {
  .modal-form__main-form-actions {
    display: flex;
    justify-content: end;
    gap: 0;
  }
}
