/* Callback Form Modal */
.callback-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.callback-modal.active {
  display: flex;
}

.callback-modal-content {
  background: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  width: 90%;
  max-width: 480px;
  padding: 0;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.callback-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: color 0.2s;
}

.callback-close:hover {
  color: #000;
}

.callback-header {
  background: #ffc107;
  color: #000;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 20px;
  text-align: center;
  border-radius: 12px 12px 0 0;
}

.callback-form {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.callback-form input,
.callback-form select {
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.callback-form input::placeholder,
.callback-form select {
  color: #999;
}

.callback-form input:focus,
.callback-form select:focus {
  outline: none;
  border-color: #2563b8;
  box-shadow: 0 0 0 3px rgba(37, 99, 184, 0.1);
}

.phone-group {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
}

.country-code {
  padding: 12px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff;
  cursor: pointer;
}

.country-code:focus {
  outline: none;
  border-color: #2563b8;
  box-shadow: 0 0 0 3px rgba(37, 99, 184, 0.1);
}

.callback-form button[type="submit"] {
  background: #1a3a7a;
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-top: 8px;
}

.callback-form button[type="submit"]:hover {
  background: #0f2555;
  transform: translateY(-2px);
}

.form-success {
  background: #d4edda;
  color: #155724;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  border: 1px solid #c3e6cb;
  margin-bottom: 10px;
}

.form-error {
  background: #f8d7da;
  color: #721c24;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  border: 1px solid #f5c6cb;
  margin-bottom: 10px;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .callback-modal-content {
    width: 95%;
    max-width: 100%;
  }

  .callback-form {
    padding: 20px;
    gap: 12px;
  }

  .callback-header {
    font-size: 1rem;
    padding: 16px;
  }

  .phone-group {
    grid-template-columns: 80px 1fr;
    gap: 8px;
  }

  .callback-form input,
  .callback-form select {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

@media (max-width: 380px) {
  .callback-modal-content {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
  }

  .callback-form {
    padding: 16px;
    gap: 10px;
  }

  .phone-group {
    grid-template-columns: 70px 1fr;
  }

  .callback-close {
    top: 12px;
    right: 12px;
  }
}
