.request-callback-nav-trigger {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.request-callback-nav-button {
  white-space: nowrap;
}

.request-callback-modal[hidden] {
  display: none;
}

.request-callback-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 1000;
}

.request-callback-modal__backdrop {
  background: rgba(22, 18, 30, 0.42);
  inset: 0;
  position: absolute;
}

.request-callback-modal__dialog {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(32, 24, 48, 0.25);
  max-height: calc(100vh - 36px);
  max-width: 1160px;
  overflow: auto;
  position: relative;
  width: min(100%, 1160px);
}

.request-callback-modal__content {
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(390px, 1fr) minmax(340px, 0.92fr);
  padding: 14px;
}

.request-callback-modal__form-panel {
  color: #39264f;
  padding: 24px 14px 16px 16px;
  position: relative;
}

.request-callback-modal__title {
  margin: 0 0 24px;
}

.request-callback-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.request-callback-form__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.request-callback-form__field {
border: 1.5px solid #6b4a8f;
    border-radius: 999px;
    color: #4b3b73;
    display: block;
    position: relative;
    padding: 6px 0px;
}

.request-callback-form__field:focus-within {
  border-color: #39264f;
  box-shadow: 0 0 0 3px rgba(92, 66, 133, 0.12);
}

.request-callback-form__label {
  color: #4b3b73;
  font-size: 15px;
  inset-inline-start: 18px;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.16s ease;
}

.request-callback-form__field:focus-within .request-callback-form__label,
.request-callback-form__field:has(input:not(:placeholder-shown)) .request-callback-form__label,
.request-callback-form__field:has(textarea:not(:placeholder-shown)) .request-callback-form__label,
.request-callback-form__field:has(select:valid) .request-callback-form__label {
  opacity: 0;
}

.request-callback-form input,
.request-callback-form select,
.request-callback-form textarea {
  background: transparent;
  border: 0;
  color: #39264f;
  font: inherit;
  font-size: 15px;
  height: 30px;
  outline: 0;
  padding: 0 18px;
  width: 100%;
  margin: 0;
}

.request-callback-form input::placeholder,
.request-callback-form textarea::placeholder {
  color: transparent;
}

.request-callback-form__phone input {
  direction: ltr;
  padding-left: 95px !important;
  text-align: left !important;
  unicode-bidi: isolate;
}

.request-callback-form__phone .request-callback-form__label {
  left: 142px;
  right: auto;
}

.request-callback-form__phone-code {
  direction: ltr;
  display: inline-block;
  unicode-bidi: isolate;
}

.request-callback-form__phone-prefix {
  align-items: center;
  color: #4b3b73;
  display: flex;
  font-size: 15px;
  gap: 10px;
  height: 100%;
  left: 18px;
  right: auto;
  position: absolute;
  top: 0;
  direction: ltr;
  z-index: 1;
}

.request-callback-form__flag {
  background: linear-gradient(to bottom, #00732f 0 33%, #fff 33% 66%, #000 66% 100%);
  display: block;
  height: 14px;
  position: relative;
  width: 28px;
}

.request-callback-form__flag::before {
  background: #e11b1b;
  content: "";
  display: block;
  height: 100%;
  width: 8px;
}

.request-callback-form__select::after {
  border-bottom: 2px solid #4b3b73;
  border-right: 2px solid #4b3b73;
  content: "";
  height: 10px;
  inset-inline-end: 22px;
  pointer-events: none;
  position: absolute;
  top: 15px;
  transform: rotate(45deg);
  width: 10px;
}

.request-callback-form select {
  appearance: none;
  cursor: pointer;
  padding-inline-end: 46px;
}

.request-callback-form__textarea {
  border-radius: 16px;
  min-height: 104px;
}

.request-callback-form__textarea .request-callback-form__label {
  top: 22px;
}

.request-callback-form textarea {
  height: 100px;
  padding-top: 14px;
  resize: vertical;
}

.request-callback-form__submit {
  background: linear-gradient(90deg, #39264f, #6d62cc);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  min-height: 48px;
  padding: 0 20px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.request-callback-form__submit:hover {
  box-shadow: 0 12px 24px rgba(57, 38, 79, 0.18);
  transform: translateY(-1px);
}

.request-callback-form__submit[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.request-callback-form__message {
  border-radius: 12px;
  display: none;
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 14px;
}

.request-callback-form__message.is-visible {
  display: block;
}

.request-callback-form__message--success,
.request-callback-form__message.is-success {
  background: rgba(23, 142, 117, 0.1);
  color: #117260;
}

.request-callback-form__message--error,
.request-callback-form__message.is-error {
  background: rgba(173, 41, 41, 0.1);
  color: #9f2626;
}

.request-callback-modal__locations {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.request-callback-modal__location {
  color: #39264f;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  gap: 3px;
  text-decoration: none;
}

.request-callback-modal__location strong {
  font-weight: 700;
}

.request-callback-modal__location-icon {
  align-items: center;
  display: flex;
  height: 44px;
  justify-content: center;
  margin-bottom: 7px;
  width: 44px;
}

.request-callback-modal__location-icon img {
  display: block;
  height: 44px;
  max-height: 44px;
  max-width: 44px;
  width: 44px;
}

.request-callback-modal__image-panel {
  border-radius: 14px;
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

.request-callback-modal__image-panel img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  width: 100%;
}

.request-callback-modal__close {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 44px;
  position: absolute;
  right: 26px;
  top: 26px;
  width: 44px;
}

html[lang="ar"] .request-callback-modal__close {
  left: 26px;
  right: auto;
}

.request-callback-modal__close span {
  background: #fff;
  border-radius: 999px;
  display: block;
  height: 2px;
  left: 6px;
  position: absolute;
  top: 21px;
  width: 32px;
}

.request-callback-modal__close span:first-child {
  transform: rotate(45deg);
}

.request-callback-modal__close span:last-child {
  transform: rotate(-45deg);
}

.request-callback-modal__close--mobile {
  display: none;
}

body.request-callback-modal-is-open {
  overflow: hidden;
}

@media (max-width: 1200px) {
  .request-callback-modal__content {
    gap: 18px;
    grid-template-columns: minmax(0, 1fr);
  }

  .request-callback-modal__image-panel {
    display: none;
  }

  .request-callback-modal__dialog {
    max-width: 720px;
  }

  .request-callback-modal__form-panel {
    padding: 42px 16px 18px;
  }

  .request-callback-modal__close--mobile {
    display: block;
    right: 10px;
    top: 8px;
  }

  .request-callback-modal__close--mobile span {
    background: #39264f;
  }
}

@media (max-width: 820px) {
  .request-callback-form__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .request-callback-modal {
    padding: 10px;
  }

  .request-callback-modal__dialog {
    border-radius: 16px;
    max-height: calc(100vh - 20px);
  }

  .request-callback-modal__content {
    padding: 10px;
  }

  .request-callback-modal__title {
    font-size: 28px;
    margin-bottom: 18px;
  }

  .request-callback-modal__locations {
    grid-template-columns: 1fr;
  }

  .request-callback-form__label,
  .request-callback-form input,
  .request-callback-form select,
  .request-callback-form textarea,
  .request-callback-form__phone-prefix,
  .request-callback-form__submit,
  .request-callback-modal__location {
    font-size: 15px;
  }

  .request-callback-form__phone input {
    padding-left: 134px;
  }

  .request-callback-form__phone .request-callback-form__label {
    left: 90px;
    right: auto;
  }
}
