/* =========================================
   CALLBACK MODAL
========================================= */

#callback-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
}

#callback-modal[hidden] {
  display: none;
}

/* overlay */
.callback-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

/* modal box */
.callback-box {
  position: relative;
  max-width: 360px;
  margin: 10vh auto;
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  z-index: 1;
}

/* title */
.callback-box h3 {
  margin: 0 0 16px;
  text-align: center;
}

/* inputs */
.callback-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* submit */
.callback-box button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* close button */
.callback-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* success message */
.callback-success {
  text-align: center;
  font-size: 16px;
}
/* =========================================
   CENTER SUBMIT BUTTON IN CALLBACK MODAL
========================================= */

#callback-modal .callback-box form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#callback-modal .callback-box button[type="submit"] {
  display: block;
  width: 100%;
  max-width: 260px;   /* ⬅️ щоб не розлазилась */
  margin: 12px auto 0;
  text-align: center;
}
