/* Стили для модального окна */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  opacity: 0;
  z-index: 1000;
}

.dialog-overlay.active {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  opacity: 1;
  visibility: visible;
}

.dialog-overlay--video {
  background: rgba(0, 0, 0, 0.7);
}

.dialog-content {
  width: 100%;
  background: white;
  padding: 30px;
  border-radius: 10px;
  position: relative;
  opacity: 0;
  border: none;
  display: -ms-grid;
  display: grid;
  gap: 24px;
}

.dialog-content h2,
.dialog-content h3,
.dialog-content h4 {
  font-weight: 600;
  margin: 0;
}

.dialog-content h3 {
  line-height: 33px;
}
.dialog-header > p {
  margin: 0;
  color: #474747;
}

.dialog-overlay.active .dialog-content {
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
  opacity: 1;
}

.close-dialog {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 20px;
  cursor: pointer;
  background-image: url("../img/icons/close.d554c04c249b.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 20px;
  height: 20px;
  border: none;
}

.dialog-header {
  display: -ms-grid;
  display: grid;
  gap: 8px;
}

.dialog--sm {
  max-width: 360px;
}
.dialog--md {
  max-width: 660px;
}
.dialog--video {
  background-color: transparent;
  padding: 0;
  overflow: hidden;
  width: auto;
}
.dialog-overlay--video .close-dialog {
  z-index: 10;
  -webkit-filter: brightness(2);
  filter: brightness(2);
  right: 0;
  top: 0;
  width: 32px;
  height: 32px;
  padding: 32px;
  background-size: 32px;
  position: fixed;
}

html.dialog-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .dialog-content {
    gap: 32px;
  }
  .dialog-overlay--video .close-dialog {
    right: 40px;
  }
}
@media (min-width: 992px) {
}
@media (min-width: 1200px) {
}

/* NEW FORMS */

.form {
}

.form *::-webkit-input-placeholder {
  color: #969694;
}

.form *::-moz-placeholder {
  color: #969694;
}

.form *:-ms-input-placeholder {
  color: #969694;
}

.form *::-ms-input-placeholder {
  color: #969694;
}

.form *::placeholder {
  color: #969694;
}

.input-field {
  position: relative;
  width: 100%;
}

.input-field input {
  width: inherit;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background-color: #f4f4f4;
  border: none;
}
.input-field input:focus {
  outline: 1px solid var(--primary-color);
}

.input-field:has(input[required])::after {
  content: "*";
  position: absolute;
  top: 0;
  right: 8px;
  color: red;
  font-size: 16px;
}

.textarea-field {
  position: relative;
  width: 100%;
}

.textarea-field textarea {
  width: inherit;
  min-height: 140px;
  padding: 16px;
  border-radius: 10px;
  background-color: #f4f4f4;
  border: none;
  resize: none;
}

.textarea-field textarea:focus {
  outline: 1px solid var(--primary-color);
}

.textarea-field:has(textarea[required])::after {
  content: "*";
  position: absolute;
  top: 0;
  right: 8px;
  color: red;
  font-size: 16px;
}

.form-layout--default {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  gap: 12px;
}
.form-layout--rows {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  gap: 12px;
}

.form-layout--default .text-field {
  margin: 4px 0;
}

.form__policy {
  color: #959593;
  font-size: 12px;
}
.form__policy a {
  font-size: inherit;
  color: var(--primary-color);
  text-decoration: underline !important;
}

@media (min-width: 768px) {
  .form-layout--default {
    -ms-grid-columns: 1fr 12px 1fr;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .form-layout--default .input-field:nth-child(3),
  .form-layout--default .textarea-field:nth-child(3) {
    -ms-grid-column-span: 2;
    grid-column: span 2;
  }

  .form-layout--default .directions-form__privacy,
  .form-layout--default .smart-captcha,
  .form-layout--default .has-error,
  .form-layout--default .captcha-error{
      -ms-grid-column-span: 2;
      grid-column: span 2;
  }

  .form-layout--default .text-field {
    -ms-grid-column-span: 2;
    grid-column: span 2;
    margin: 12px 0;
  }
}
@media (min-width: 992px) {
}
@media (min-width: 1200px) {
}

/* Замена bootstrap modal  */
.modal {
  background: rgba(0, 0, 0, 0.01);
}

.modal-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 32px;
  border: none;
  border-radius: 12px;
  padding: 30px;
  -webkit-box-shadow: none;
  box-shadow: none;
}
.modal-header {
  padding: unset;
  border: unset;
}
.modal-header h3 {
  line-height: 33px;
  font-weight: 600;
}
.modal-body {
  padding: unset;
}

.modal-header .close {
  position: absolute;
  top: 16px;
  right: 16px;
}

@media screen and (max-width: 1200px) {
  #makeAppointmentModal .modal-lg {
    width: 100% !important;
  }
  #makeAppointmentModal .modal-dialog {
    margin: 0;
    height: 100%;
    width: 100%;
  }
  #makeAppointmentModal .modal-content {
    height: 100%;
    border-radius: 0px;
    padding: 16px;
  }
}
@media screen and (min-width: 1200px) {
  #makeAppointmentModal .modal-lg {
    width: 1000px !important;
  }
}

.smart-captcha{
    margin-bottom: 20px;
}
