/* ============================================
   Callback Modal
   ============================================ */

.callback-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.callback-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.callback-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.callback-modal__content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 40px 40px 40px;
  padding-top: 100px;
  max-width: 420px;
  width: 85%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  z-index: 3;
  overflow: visible;
}

.callback-modal.active .callback-modal__content {
  transform: translateY(0);
}

/* Image */
.callback-modal__image {
  position: absolute;
  top: -201px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.callback-modal__image img {
  width: 100%;
  height: auto;
  display: block;
}

.callback-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.callback-modal__close:hover {
  background-color: #f5f5f5;
  color: #333;
}

.callback-modal__content h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px 0;
}

.callback-modal__subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 24px 0;
}

/* Form Styles */
.callback-form__group {
  margin-bottom: 20px;
}

.callback-form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.callback-form__input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.callback-form__input:focus {
  outline: none;
  border-color: #007bff;
}

.callback-form__input::placeholder {
  color: #aaa;
}

.callback-form__submit {
  width: 100%;
  padding: 14px;
  background: #007bff;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.callback-form__submit:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 123, 255, 0.4);
}

.callback-form__submit:active {
  transform: translateY(0);
}

.callback-form__privacy {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin: 16px 0 0 0;
  line-height: 1.4;
}

/* Success Message */
.callback-form__success {
  text-align: center;
  padding: 20px 0;
  display: none;
}

.callback-form__success svg {
  width: 64px;
  height: 64px;
  stroke: #28a745;
  margin-bottom: 16px;
}

.callback-form__success h4 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px 0;
}

.callback-form__success p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* Responsive — Tablets */
@media (max-width: 768px) {
  .callback-modal__content {
    max-width: 360px;
    width: 88%;
    padding: 28px 24px;
    padding-top: 100px;
  }

  .callback-modal__content h3 {
    font-size: 22px;
  }

  .callback-modal__close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 24px;
  }
}

/* Responsive — Smartphones */
@media (max-width: 480px) {
  .callback-modal__content {
    max-width: 320px;
    width: 90%;
    padding: 24px 20px;
    padding-top: 100px;
  }

  .callback-modal__content h3 {
    font-size: 20px;
  }

  .callback-modal__subtitle {
    font-size: 13px;
  }

  .callback-form__group {
    margin-bottom: 16px;
  }

  .callback-form__input {
    padding: 12px 14px;
    font-size: 14px;
  }

  .callback-form__submit {
    padding: 12px;
    font-size: 15px;
  }

  .callback-modal__close {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    font-size: 22px;
  }
}
