/* ======================================================
   CALLBACK MODAL — 7422.by
====================================================== */

body.callback-modal-open {
  overflow: hidden;
}

.callback-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.callback-modal.show,
body.callback-modal-open .callback-modal {
  display: flex;
}

.callback-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.callback-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  background: #0f1219;
  border: 1px solid rgba(122, 196, 255, 0.28);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  padding: 28px;
  color: #ffffff;
  overflow-y: auto;
}

.callback-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(122, 196, 255, 0.22);
  border-radius: 50%;
  background: #151b26;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.callback-modal-close:hover {
  border-color: rgba(122, 196, 255, 0.65);
  background: rgba(30, 136, 229, 0.16);
}

.callback-modal-head {
  padding-right: 44px;
  margin-bottom: 22px;
}

.callback-modal-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(30, 136, 229, 0.14);
  border: 1px solid rgba(122, 196, 255, 0.26);
  color: #7ac4ff;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

.callback-modal-head h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 900;
}

.callback-modal-head p {
  margin: 0;
  color: #aeb6c4;
  font-size: 15px;
  line-height: 1.55;
}

.callback-modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.callback-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.callback-field span {
  color: #cbd5e6;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
}

.callback-field input,
.callback-field textarea,
.callback-field select,
.callback-select {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border-radius: 15px;
  border: 1px solid rgba(122, 196, 255, 0.22);
  background: #151b26;
  color: #ffffff;
  padding: 0 15px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  outline: none;
  transition: 0.2s ease;
}

.callback-field textarea {
  min-height: 92px;
  padding-top: 13px;
  padding-bottom: 13px;
  resize: vertical;
}

.callback-field select,
.callback-select {
  appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-color: #151b26;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237ac4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.callback-field input::placeholder,
.callback-field textarea::placeholder {
  color: #697385;
}

.callback-field input:focus,
.callback-field textarea:focus,
.callback-field select:focus,
.callback-select:focus {
  border-color: rgba(122, 196, 255, 0.72);
  background-color: #101827;
}

.callback-modal-status {
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}

.callback-modal-status.success,
.callback-modal-status.error {
  display: block;
}

.callback-modal-status.success {
  color: #ffffff;
  background: rgba(46, 204, 113, 0.14);
  border: 1px solid rgba(46, 204, 113, 0.34);
}

.callback-modal-status.error {
  color: #ffffff;
  background: rgba(178, 34, 34, 0.18);
  border: 1px solid rgba(178, 34, 34, 0.42);
}

.callback-modal-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.callback-submit-btn,
.callback-cancel-btn {
  min-height: 50px;
  border-radius: 999px;
  padding: 0 22px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.callback-submit-btn {
  border: 1px solid #2ecc71;
  background: #2ecc71;
  color: #05070c;
}

.callback-submit-btn:hover {
  background: #35e47f;
  border-color: #35e47f;
  transform: translateY(-1px);
}

.callback-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.callback-cancel-btn {
  border: 1px solid rgba(122, 196, 255, 0.24);
  background: #151b26;
  color: #ffffff;
}

.callback-cancel-btn:hover {
  border-color: rgba(122, 196, 255, 0.62);
  background: rgba(30, 136, 229, 0.14);
}

/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 600px) {
  .callback-modal {
    padding: 14px;
    align-items: center;
  }

  .callback-modal-dialog {
    max-width: 100%;
    max-height: calc(100vh - 28px);
    border-radius: 24px;
    padding: 24px 18px 18px;
  }

  .callback-modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .callback-modal-head {
    padding-right: 42px;
    margin-bottom: 18px;
  }

  .callback-modal-label {
    min-height: 26px;
    margin-bottom: 10px;
    font-size: 11px;
  }

  .callback-modal-head h2 {
    font-size: 25px;
  }

  .callback-modal-head p {
    font-size: 14px;
  }

  .callback-modal-form {
    gap: 12px;
  }

  .callback-field input,
  .callback-field textarea,
  .callback-field select,
  .callback-select {
    min-height: 46px;
    border-radius: 14px;
    font-size: 14px;
  }

  .callback-field textarea {
    min-height: 84px;
  }

  .callback-modal-actions {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 2px;
  }

  .callback-submit-btn,
  .callback-cancel-btn {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 380px) {
  .callback-modal {
    padding: 10px;
  }

  .callback-modal-dialog {
    max-height: calc(100vh - 20px);
    padding: 22px 16px 16px;
  }

  .callback-modal-head h2 {
    font-size: 23px;
  }
}