.modal {
  max-width: 1196px;
  max-height: 550px;
  display: block;
  background: #fff;
  width: 100%;
  height: 100%;
  margin: 25px;
  position: relative;
}

.modal--little{
  max-width: 460px;
  max-height: 685px;
  display: block;
  background: #fff;
  width: 100%;
  height: 100%;
  margin: 25px;
  position: relative;
  padding: 41px;
}
.modal--little.madal--sendmail{
  max-height: 260px;
}

@media screen and (max-width: 768px) {
  .modal {
    max-height: 100%;
    padding: 15px;
  }
}

@media screen and (max-width: 600px) {
  .modal {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
}

.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 17, 17, 0.6);
  z-index: 999;
  opacity: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  visibility: hidden;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
}

.modal-wrapper--active {
  visibility: visible;
  -webkit-animation: 0.3s linear showModal forwards;
          animation: 0.3s linear showModal forwards;
}

@media screen and (max-width: 768px) {
  .modal-wrapper {
    max-width: 100vw;
    max-height: 100vh;
  }
}

.modal__close {
  position: absolute;
  width: 25px;
  height: 25px;
  background: url(../../assets/image/icons/close/close.svg);
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 1;
}

.display-flex {
  display: flex;
}

.align-items {
  align-items: center;
}

.padding-none {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.column{
  flex-direction: column;
  margin-right: 17px;
}

.modal--little-row{
  margin-bottom: 17px;
}



@-webkit-keyframes showModal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes showModal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-custom {
  position: fixed;
  inset: 0;
  scroll-behavior: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  container-type: inline-size;
  z-index: 10;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s linear, visibility 0.3s linear;
}
.modal-custom--show {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;

}
.modal-custom__backdrop {
  background-color: #18181B1A;
  position: fixed;
  inset: 0;
}
.modal-custom__container {
  width: 100%;
  max-width: 624px;
  padding-inline: 16px;
  position: relative;
  z-index: 1;
}
.modal-custom__container-inner {
  background-color: white;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}
.modal-custom__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-custom__title {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: #18181B;
}
.modal-custom__subtitle {
  font-size: 16px;
  line-height: 24px;
  color: #71717B;
}
.modal-custom__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-custom__input {
  padding 8px 12px;
  font-size: 16px;
  line-height: 24px;
  outline: 1px solid #D4D4D8;
  outline-offset: -1px;
  width:100%;
}
.modal-custom__input::placeholder {
  color: #71717B;
}
.modal-custom__submit {
  background-color: #EE021D;
  padding: 8px 12px;
  color: white;
  width: fit-content;
  border: none;
}

.modal-custom__close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  transform: translateX(-50%);
  z-index: 1;
  background-color: transparent;
  border: none;
  padding: 8px;
  width: 40px;
  height:40px;
  color: #18181B;
  cursor:pointer;
}

.modal-custom__close-icon {
  width: 24px;
  height: 24px;
}

@media(max-width: 768px) {
  .modal-custom__close-btn {
    top: 4px;
    right: 4px;
  }
}

@media (hover: hover) {
  .modal-custom__close-btn:hover {
    color: #ee021d
  }
}

html.overflow-hidden {
  overflow: hidden;
}
